Class AbstractResource<T extends ResourceType>
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<T>
- Direct Known Subclasses:
AuthenticationTokensObject
,BatchUploadObject
,BinariesObject
,BlobsObject
,BulkObject
,ConfigurationObject
,DefaultAdapter
,DefaultObject
,DistributionObject
,ElasticsearchObject
,ExtractBinaryFulltextObject
,ManagementObject
,MigrationObject
,OAuth2Object
,PageProvidersObject
,PicturesObject
,ProbesObject
,QueryExecutor
,QueryObject
,SchedulerObject
,StreamObject
,ThumbnailsObject
,UIDSequencerObject
,VersionsObject
,VideosObject
,WorkflowsObject
,WorkManagerObject
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected WebContext
protected AbstractResource<?>
protected String
protected AbstractResource<?>
protected T
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkGuard
(String guard) Checks the given guard expression in the context of this resource.void
dispose()
Returns the active Adapter on this object if any in the current request.<A> A
getAdapter
(Class<A> adapter) Returns an object which is an instance of the given class associated with this object.getName()
getNext()
getPath()
getTemplate
(String fileName) getType()
getURL()
boolean
protected void
initialize
(Object... args) initialize
(WebContext ctx, ResourceType type, Object... args) boolean
boolean
isInstanceOf
(String type) boolean
isRoot()
newAdapter
(String type, Object... args) javax.ws.rs.core.Response
void
void
setPrevious
(Resource previous) void
setRoot
(boolean isRoot) toString()
-
Field Details
-
ctx
-
next
-
prev
-
path
-
type
-
-
Constructor Details
-
AbstractResource
public AbstractResource()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceResource
-
initialize
-
isAdapter
public boolean isAdapter() -
isRoot
public boolean isRoot() -
setRoot
public void setRoot(boolean isRoot) -
isInstanceOf
- Specified by:
isInstanceOf
in interfaceResource
-
redirect
-
getActiveAdapter
Description copied from interface:Resource
Returns the active Adapter on this object if any in the current request.- Specified by:
getActiveAdapter
in interfaceResource
- Returns:
- the service instance or null
-
dispose
public void dispose() -
getFacets
-
hasFacet
-
getType
-
getContext
- Specified by:
getContext
in interfaceResource
-
getModule
-
getNext
-
setNext
-
getPrevious
- Specified by:
getPrevious
in interfaceResource
-
setPrevious
- Specified by:
setPrevious
in interfaceResource
-
getName
-
getPath
-
getTrailingPath
- Specified by:
getTrailingPath
in interfaceResource
-
getNextSegment
- Specified by:
getNextSegment
in interfaceResource
-
getURL
-
getLinks
-
getAdapter
Description copied from interface:Adaptable
Returns an object which is an instance of the given class associated with this object. Returnsnull
if no such object can be found.- Specified by:
getAdapter
in interfaceAdaptable
- Parameters:
adapter
- the adapter class to look up- Returns:
- a object castable to the given class, or
null
if this object does not have an adapter for the given class
-
newObject
-
newAdapter
- Specified by:
newAdapter
in interfaceResource
-
getView
-
getTemplate
- Specified by:
getTemplate
in interfaceResource
-
checkGuard
Description copied from interface:Resource
Checks the given guard expression in the context of this resource.- Specified by:
checkGuard
in interfaceResource
- Throws:
ParseException
-
toString
-