public abstract class AbstractUMObject<T> extends DefaultObject
NuxeoPrincipal or NuxeoGroup.| Modifier and Type | Field and Description | 
|---|---|
| protected T | currentArtifact | 
| protected 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 UserManager um
public AbstractUMObject()
protected void initialize(Object... args)
initialize in class AbstractResource<ResourceTypeImpl>public T doGetArtifact()
public T doUpdateArtifact(T principal)
public javax.ws.rs.core.Response doDeleteArtifact()
protected void checkUpdateGuardPreconditions()
protected abstract boolean isAPowerUserEditableArtifact()
protected abstract T updateArtifact(T artifact)
artifact - the artifact that has been retrieved from request.protected abstract void deleteArtifact()
Copyright © 2016 Nuxeo SA. All rights reserved.