public abstract class AbstractUMRootObject<T> extends PaginableObject<T>
Modifier and Type | Field and Description |
---|---|
protected String |
query |
protected UserManager |
um |
currentPageIndex, maxResults, pageSize
Constructor and Description |
---|
AbstractUMRootObject() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkCurrentUserCanCreateArtifact(T artifact) |
protected abstract void |
checkPrecondition(T artifact)
Checks the precondition to create an artifact (for instance validity, duplicate detection, guards...).
|
protected abstract T |
createArtifact(T artifact)
Persist an artifact in the underlying persistence system.
|
javax.ws.rs.core.Response |
createNew(T artifact) |
protected abstract T |
getArtifact(String id)
Returns the artifact given its id.
|
protected abstract String |
getArtifactType()
Returns the type of the current artifact needed for
AbstractResource.newObject(String, Object...) . |
Object |
getArtifactWebObject(String artName) |
protected Object[] |
getParams() |
protected void |
initialize(Object... args) |
List<T> |
search() |
extractLongParam, getPageProviderDefinition, getPaginableEntries, getPaginableEntries, getSearchDocument
disptachAdapter, isAdapter
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
protected UserManager um
public AbstractUMRootObject()
protected void initialize(Object... args)
initialize
in class PaginableObject<T>
public Object getArtifactWebObject(String artName)
protected Object[] getParams()
getParams
in class PaginableObject<T>
protected abstract T getArtifact(String id)
protected abstract String getArtifactType()
AbstractResource.newObject(String, Object...)
.protected abstract void checkPrecondition(T artifact)
protected abstract T createArtifact(T artifact)
protected void checkCurrentUserCanCreateArtifact(T artifact)
Copyright © 2018 Nuxeo. All rights reserved.