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 Stringqueryprotected UserManagerum-
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 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.ResponsecreateNew(T artifact)protected abstract TgetArtifact(String id)Returns the artifact given its id.protected abstract StringgetArtifactType()Returns the type of the current artifact needed forAbstractResource.newObject(String, Object...).ObjectgetArtifactWebObject(String artName)protected Object[]getParams()protected voidinitialize(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
-
query
protected String query
-
um
protected UserManager um
-
-
Method Detail
-
initialize
protected void initialize(Object... args)
- Overrides:
initializein classPaginableObject<T>
-
createNew
public javax.ws.rs.core.Response createNew(T artifact)
-
getParams
protected Object[] getParams()
- Overrides:
getParamsin classPaginableObject<T>
-
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)
-
-