public abstract class AbstractDocument extends Object implements Document
The Document implementors MUST extend this class and not directly implement the Document interface.
Constructor and Description |
---|
AbstractDocument() |
Modifier and Type | Method and Description |
---|---|
boolean |
followTransition(String transition)
Follows a given life cycle transition.
|
Collection<String> |
getAllowedStateTransitions()
Returns the allowed state transitions for this document.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFacet, getAllFacets, getFacets, getLastModified, getLifeCyclePolicy, getLifeCycleState, getName, getParent, getPath, getRepository, getSession, getSystemProp, getType, getUUID, hasFacet, isFolder, isProxy, readDocumentPart, remove, removeFacet, save, setCurrentLifeCycleState, setLifeCyclePolicy, setSystemProp, writeDocumentPart
addChild, getChild, getChildren, getChildren, getChildrenIds, hasChild, hasChildren, orderBefore, removeChild, resolvePath
exportFlatMap, exportMap, exportMap, getBoolean, getContent, getDate, getDirtyFields, getDouble, getLong, getProperties, getProperty, getPropertyIterator, getPropertyValue, getString, importFlatMap, importMap, isPropertySet, removeProperty, setBoolean, setContent, setDate, setDouble, setLong, setPropertyValue, setString
checkIn, checkOut, getBaseVersion, getCheckinComment, getLastVersion, getSourceDocument, getVersion, getVersionCreationDate, getVersionLabel, getVersions, getVersionSeriesId, getVersionsIds, getWorkingCopy, hasVersions, isCheckedOut, isLatestMajorVersion, isLatestVersion, isMajorVersion, isVersion, isVersionSeriesCheckedOut, restore
getLock, removeLock, setLock
public boolean followTransition(String transition) throws LifeCycleException
Document
This will update the current life cycle of the document.
followTransition
in interface Document
transition
- the name of the transition to followLifeCycleException
public Collection<String> getAllowedStateTransitions() throws LifeCycleException
Document
getAllowedStateTransitions
in interface Document
LifeCycleException
Copyright © 2013 Nuxeo SA. All Rights Reserved.