Class GroupRootObject
- 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<NuxeoGroup>
-
- org.nuxeo.ecm.restapi.server.jaxrs.usermanager.GroupRootObject
-
public class GroupRootObject extends AbstractUMRootObject<NuxeoGroup>
- Since:
- 5.7.3
-
-
Field Summary
Fields Modifier and Type Field Description static String
PAGE_PROVIDER_NAME
-
Fields inherited from class org.nuxeo.ecm.restapi.server.jaxrs.usermanager.AbstractUMRootObject
query, um
-
Fields inherited from class org.nuxeo.ecm.restapi.server.jaxrs.PaginableObject
currentPageIndex, maxResults, offset, pageSize
-
-
Constructor Summary
Constructors Constructor Description GroupRootObject()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkPrecondition(NuxeoGroup group)
Checks the precondition to create an artifact (for instance validity, duplicate detection, guards...).protected static Set<String>
computeAllGroups(UserManager um, NuxeoGroup group)
protected NuxeoGroup
createArtifact(NuxeoGroup group)
Persist an artifact in the underlying persistence system.protected NuxeoGroup
getArtifact(String id)
Returns the artifact given its id.protected String
getArtifactType()
Returns the type of the current artifact needed forAbstractResource.newObject(String, Object...)
.protected PageProviderDefinition
getPageProviderDefinition()
-
Methods inherited from class org.nuxeo.ecm.restapi.server.jaxrs.usermanager.AbstractUMRootObject
checkCurrentUserCanCreateArtifact, createNew, getArtifactWebObject, getParams, initialize, search
-
Methods inherited from class org.nuxeo.ecm.restapi.server.jaxrs.PaginableObject
extractLongParam, 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
-
PAGE_PROVIDER_NAME
public static final String PAGE_PROVIDER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getArtifact
protected NuxeoGroup getArtifact(String id)
Description copied from class:AbstractUMRootObject
Returns the artifact given its id.- Specified by:
getArtifact
in classAbstractUMRootObject<NuxeoGroup>
-
getArtifactType
protected String getArtifactType()
Description copied from class:AbstractUMRootObject
Returns the type of the current artifact needed forAbstractResource.newObject(String, Object...)
.- Specified by:
getArtifactType
in classAbstractUMRootObject<NuxeoGroup>
-
checkPrecondition
protected void checkPrecondition(NuxeoGroup group)
Description copied from class:AbstractUMRootObject
Checks the precondition to create an artifact (for instance validity, duplicate detection, guards...).- Specified by:
checkPrecondition
in classAbstractUMRootObject<NuxeoGroup>
-
createArtifact
protected NuxeoGroup createArtifact(NuxeoGroup group)
Description copied from class:AbstractUMRootObject
Persist an artifact in the underlying persistence system.- Specified by:
createArtifact
in classAbstractUMRootObject<NuxeoGroup>
-
computeAllGroups
protected static Set<String> computeAllGroups(UserManager um, NuxeoGroup group)
-
getPageProviderDefinition
protected PageProviderDefinition getPageProviderDefinition()
- Specified by:
getPageProviderDefinition
in classPaginableObject<NuxeoGroup>
-
-