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
public abstract class AbstractUMRootObject<T> extends PaginableObject<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected String
query
protected UserManager
um
-
Fields inherited from class org.nuxeo.ecm.restapi.server.jaxrs.PaginableObject
currentPageIndex, maxResults, offset, pageSize
-
-
Constructor Summary
Constructors Constructor Description AbstractUMRootObject()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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
createNew(T artifact)
protected abstract T
getArtifact(String id)
Returns the artifact given its id.protected abstract String
getArtifactType()
Returns the type of the current artifact needed forAbstractResource.newObject(String, Object...)
.Object
getArtifactWebObject(String artName)
protected Object[]
getParams()
protected void
initialize(Object... args)
List<T>
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 Detail
-
um
protected UserManager um
-
-
Constructor Detail
-
AbstractUMRootObject
public AbstractUMRootObject()
-
-
Method Detail
-
initialize
protected void initialize(Object... args)
- Overrides:
initialize
in classPaginableObject<T>
-
getArtifactWebObject
public Object getArtifactWebObject(String artName)
-
getParams
protected Object[] getParams()
- Overrides:
getParams
in classPaginableObject<T>
-
getArtifact
protected abstract T getArtifact(String id)
Returns the artifact given its id.
-
getArtifactType
protected abstract String getArtifactType()
Returns the type of the current artifact needed forAbstractResource.newObject(String, Object...)
.
-
checkPrecondition
protected abstract void checkPrecondition(T artifact)
Checks the precondition to create an artifact (for instance validity, duplicate detection, guards...).
-
createArtifact
protected abstract T createArtifact(T artifact)
Persist an artifact in the underlying persistence system.
-
checkCurrentUserCanCreateArtifact
protected void checkCurrentUserCanCreateArtifact(T artifact)
-
-