Class GroupObject
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
-
- org.nuxeo.ecm.webengine.model.impl.DefaultObject
-
- org.nuxeo.ecm.restapi.server.jaxrs.usermanager.AbstractUMObject<NuxeoGroup>
-
- org.nuxeo.ecm.restapi.server.jaxrs.usermanager.GroupObject
-
public class GroupObject extends AbstractUMObject<NuxeoGroup>
- Since:
- 5.7.3
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.restapi.server.jaxrs.usermanager.AbstractUMObject
currentArtifact, um
-
-
Constructor Summary
Constructors Constructor Description GroupObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deleteArtifact()
Deletes the current artifact in the underlying persistence system.Object
doGetUserToGroup(String username)
protected boolean
isAPowerUserEditableArtifact(NuxeoGroup artifact)
Check the given artifact is editable by a power user.protected NuxeoGroup
updateArtifact(NuxeoGroup updateGroup)
Updates the current artifact by the one given in parameters in the underlying persistence system.-
Methods inherited from class org.nuxeo.ecm.restapi.server.jaxrs.usermanager.AbstractUMObject
checkUpdateGuardPreconditions, checkUpdateGuardPreconditions, doDeleteArtifact, doGetArtifact, doUpdateArtifact, initialize, isAPowerUserEditableArtifact
-
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
-
-
-
-
Constructor Detail
-
GroupObject
public GroupObject()
-
-
Method Detail
-
doGetUserToGroup
public Object doGetUserToGroup(String username)
-
updateArtifact
protected NuxeoGroup updateArtifact(NuxeoGroup updateGroup)
Description copied from class:AbstractUMObject
Updates the current artifact by the one given in parameters in the underlying persistence system.- Specified by:
updateArtifact
in classAbstractUMObject<NuxeoGroup>
- Parameters:
updateGroup
- the artifact that has been retrieved from request.- Returns:
- the updated artifact.
-
deleteArtifact
protected void deleteArtifact()
Description copied from class:AbstractUMObject
Deletes the current artifact in the underlying persistence system.- Specified by:
deleteArtifact
in classAbstractUMObject<NuxeoGroup>
-
isAPowerUserEditableArtifact
protected boolean isAPowerUserEditableArtifact(NuxeoGroup artifact)
Description copied from class:AbstractUMObject
Check the given artifact is editable by a power user. Basically this means not an admin user or not an admin group.- Overrides:
isAPowerUserEditableArtifact
in classAbstractUMObject<NuxeoGroup>
-
-