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.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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidcheckUpdateGuardPreconditions(T artifact) protected abstract voidDeletes the current artifact in the underlying persistence system.jakarta.ws.rs.core.ResponsedoUpdateArtifact(T artifact) protected voidinitialize(Object... args) protected booleanDeprecated.protected booleanisAPowerUserEditableArtifact(T artifact) Check the given artifact is editable by a power user.protected abstract TupdateArtifact(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, isAdapterMethods 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:
initializein classAbstractResource<ResourceTypeImpl>
-
doGetArtifact
-
doUpdateArtifact
-
doDeleteArtifact
@DELETE public jakarta.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.