Class AbstractUMRootObject<T>
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
org.nuxeo.ecm.webengine.model.impl.DefaultObject
org.nuxeo.ecm.restapi.server.jaxrs.PaginableObject<T>
org.nuxeo.ecm.restapi.server.jaxrs.usermanager.AbstractUMRootObject<T>
- Direct Known Subclasses:
GroupRootObject,UserRootObject
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.restapi.server.jaxrs.PaginableObject
currentPageIndex, maxResults, offset, pageSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckCurrentUserCanCreateArtifact(T artifact) protected abstract voidcheckPrecondition(T artifact) Checks the precondition to create an artifact (for instance validity, duplicate detection, guards...).protected abstract TcreateArtifact(T artifact) Persist an artifact in the underlying persistence system.javax.ws.rs.core.Responseprotected abstract TgetArtifact(String id) Returns the artifact given its id.protected abstract StringReturns the type of the current artifact needed forAbstractResource.newObject(String, Object...).getArtifactWebObject(String artName) protected Object[]protected voidinitialize(Object... args) search()Methods inherited from class org.nuxeo.ecm.restapi.server.jaxrs.PaginableObject
extractLongParam, getPageProviderDefinition, getPaginableEntries, getPaginableEntries, getSearchDocumentMethods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapterMethods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
Field Details
-
query
-
um
-
-
Constructor Details
-
AbstractUMRootObject
public AbstractUMRootObject()
-
-
Method Details
-
initialize
- Overrides:
initializein classPaginableObject<T>
-
getArtifactWebObject
-
createNew
-
search
-
getParams
- Overrides:
getParamsin classPaginableObject<T>
-
getArtifact
Returns the artifact given its id. -
getArtifactType
Returns the type of the current artifact needed forAbstractResource.newObject(String, Object...). -
checkPrecondition
Checks the precondition to create an artifact (for instance validity, duplicate detection, guards...). -
createArtifact
Persist an artifact in the underlying persistence system. -
checkCurrentUserCanCreateArtifact
-