Class AbstractUMObject<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.usermanager.AbstractUMObject<T>
- Direct Known Subclasses:
GroupObject
,UserObject
Abstract WebObject class that handle retrieve, deletion and update of
NuxeoPrincipal
or NuxeoGroup
.- Since:
- 5.7.3
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
checkUpdateGuardPreconditions
(T artifact) protected abstract void
Deletes the current artifact in the underlying persistence system.javax.ws.rs.core.Response
doUpdateArtifact
(T artifact) protected void
initialize
(Object... args) protected boolean
Deprecated.protected boolean
isAPowerUserEditableArtifact
(T artifact) Check the given artifact is editable by a power user.protected abstract T
updateArtifact
(T artifact) Updates the current artifact by the one given in parameters in the underlying persistence system.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
-
currentArtifact
-
um
-
-
Constructor Details
-
AbstractUMObject
public AbstractUMObject()
-
-
Method Details
-
initialize
- Overrides:
initialize
in classAbstractResource<ResourceTypeImpl>
-
doGetArtifact
-
doUpdateArtifact
-
doDeleteArtifact
public javax.ws.rs.core.Response doDeleteArtifact() -
checkUpdateGuardPreconditions
protected void checkUpdateGuardPreconditions() -
checkUpdateGuardPreconditions
-
isAPowerUserEditableArtifact
Deprecated.since 11.1, useisAPowerUserEditableArtifact(Object)
instead.Check that the current artifact is editable by a power user. Basically this means not an admin user or not an admin group. -
isAPowerUserEditableArtifact
Check the given artifact is editable by a power user. Basically this means not an admin user or not an admin group. -
updateArtifact
Updates the current artifact by the one given in parameters in the underlying persistence system.- Parameters:
artifact
- the artifact that has been retrieved from request.- Returns:
- the updated artifact.
-
deleteArtifact
protected abstract void deleteArtifact()Deletes the current artifact in the underlying persistence system.
-
isAPowerUserEditableArtifact(Object)
instead.