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,ConnectObject,DefaultAdapter,DefaultObject,DistributionObject,ExtractBinaryFulltextObject,ManagementObject,MigrationObject,OAuth2Object,OAuth2Object,PageProvidersObject,PicturesObject,ProbesObject,QueryExecutor,QueryObject,SchedulerObject,SearchObject,StreamObject,ThumbnailsObject,UIDSequencerObject,VersionsObject,VideosObject,WorkflowsObject,WorkManagerObject
- Author:
- Bogdan Stefanescu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WebContextprotected AbstractResource<?> protected Stringprotected AbstractResource<?> protected T -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckGuard(String guard) Checks the given guard expression in the context of this resource.voiddispose()Returns the active Adapter on this object if any in the current request.<A> AgetAdapter(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()booleanprotected voidinitialize(Object... args) initialize(WebContext ctx, ResourceType type, Object... args) booleanbooleanisInstanceOf(String type) booleanisRoot()newAdapter(String type, Object... args) jakarta.ws.rs.core.ResponsevoidvoidsetPrevious(Resource previous) voidsetRoot(boolean isRoot) toString()
-
Field Details
-
ctx
-
next
-
prev
-
path
-
type
-
-
Constructor Details
-
AbstractResource
public AbstractResource()
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceResource
-
initialize
-
isAdapter
public boolean isAdapter() -
isRoot
public boolean isRoot() -
setRoot
public void setRoot(boolean isRoot) -
isInstanceOf
- Specified by:
isInstanceOfin interfaceResource
-
redirect
-
getActiveAdapter
Description copied from interface:ResourceReturns the active Adapter on this object if any in the current request.- Specified by:
getActiveAdapterin interfaceResource- Returns:
- the service instance or null
-
dispose
public void dispose() -
getFacets
-
hasFacet
-
getType
-
getContext
- Specified by:
getContextin interfaceResource
-
getModule
-
getNext
-
setNext
-
getPrevious
- Specified by:
getPreviousin interfaceResource
-
setPrevious
- Specified by:
setPreviousin interfaceResource
-
getName
-
getPath
-
getTrailingPath
- Specified by:
getTrailingPathin interfaceResource
-
getNextSegment
- Specified by:
getNextSegmentin interfaceResource
-
getURL
-
getLinks
-
getAdapter
Description copied from interface:AdaptableReturns an object which is an instance of the given class associated with this object. Returnsnullif no such object can be found.- Specified by:
getAdapterin interfaceAdaptable- Parameters:
adapter- the adapter class to look up- Returns:
- a object castable to the given class, or
nullif this object does not have an adapter for the given class
-
newObject
-
newAdapter
- Specified by:
newAdapterin interfaceResource
-
getView
-
getTemplate
- Specified by:
getTemplatein interfaceResource
-
checkGuard
Description copied from interface:ResourceChecks the given guard expression in the context of this resource.- Specified by:
checkGuardin interfaceResource- Throws:
ParseException
-
toString
-