public abstract class AbstractUMObject<T>
extends org.nuxeo.ecm.webengine.model.impl.DefaultObject
NuxeoPrincipal or NuxeoGroup.| Modifier and Type | Field and Description |
|---|---|
protected T |
currentArtifact |
protected org.nuxeo.ecm.platform.usermanager.UserManager |
um |
| Constructor and Description |
|---|
AbstractUMObject() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkUpdateGuardPreconditions() |
protected abstract void |
deleteArtifact()
Deletes the current artifact in the underlying persistence system.
|
javax.ws.rs.core.Response |
doDeleteArtifact() |
T |
doGetArtifact() |
T |
doUpdateArtifact(T principal) |
protected void |
initialize(Object... args) |
protected abstract boolean |
isAPowerUserEditableArtifact()
Check that the current 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.
|
disptachAdapter, isAdaptercheckGuard, 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, toStringprotected T currentArtifact
protected org.nuxeo.ecm.platform.usermanager.UserManager um
protected void initialize(Object... args)
initialize in class org.nuxeo.ecm.webengine.model.impl.AbstractResource<org.nuxeo.ecm.webengine.model.impl.ResourceTypeImpl>public T doGetArtifact()
public javax.ws.rs.core.Response doDeleteArtifact()
protected void checkUpdateGuardPreconditions()
throws org.nuxeo.ecm.core.api.ClientException
org.nuxeo.ecm.core.api.ClientExceptionprotected abstract boolean isAPowerUserEditableArtifact()
protected abstract T updateArtifact(T artifact) throws org.nuxeo.ecm.core.api.ClientException
artifact - the artifact that has been retrieved from request.org.nuxeo.ecm.core.api.ClientExceptionprotected abstract void deleteArtifact()
throws org.nuxeo.ecm.core.api.ClientException
org.nuxeo.ecm.core.api.ClientExceptionCopyright © 2020 Nuxeo SA. All rights reserved.