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
Fields inherited from class org.nuxeo.ecm.restapi.server.jaxrs.PaginableObject
currentPageIndex, maxResults, offset, pageSize
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkCurrentUserCanCreateArtifact
(T artifact) protected abstract void
checkPrecondition
(T artifact) Checks the precondition to create an artifact (for instance validity, duplicate detection, guards...).protected abstract T
createArtifact
(T artifact) Persist an artifact in the underlying persistence system.javax.ws.rs.core.Response
protected abstract T
getArtifact
(String id) Returns the artifact given its id.protected abstract String
Returns the type of the current artifact needed forAbstractResource.newObject(String, Object...)
.getArtifactWebObject
(String artName) protected Object[]
protected void
initialize
(Object... args) search()
Methods inherited from class org.nuxeo.ecm.restapi.server.jaxrs.PaginableObject
extractLongParam, getPageProviderDefinition, getPaginableEntries, getPaginableEntries, getSearchDocument
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapter
Methods 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:
initialize
in classPaginableObject<T>
-
getArtifactWebObject
-
createNew
-
search
-
getParams
- Overrides:
getParams
in 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
-