|
Ontimize Document Management 0.035EN | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ontimize.dms.jcr.JcrWrapperAbstract
com.ontimize.dms.jcr.JcrWrapperPropertyAbstract
com.ontimize.dms.jcr.JcrVersionBase
public abstract class JcrVersionBase
| Field Summary | |
|---|---|
static java.lang.Number |
BASE
|
static java.util.List |
DEFAULT_PROPERTIES
|
| Fields inherited from class com.ontimize.dms.jcr.JcrWrapperAbstract |
|---|
MSG_CREATE_NM |
| Constructor Summary | |
|---|---|
JcrVersionBase(JcrNode node)
|
|
| Method Summary | |
|---|---|
protected abstract Node |
createInternalNode(JcrNode node)
|
protected NodeManager |
createNodeManager(Node node)
Creates a NodeManager with the current configuration. |
protected JcrStream |
createStream(java.lang.Number version)
|
protected java.lang.String |
createStreamClassName()
|
Node |
getNode(java.lang.Number version)
Searchs in current node the version node in the
version history. |
JcrStream |
getStream(java.lang.Number version)
Returns the saved stream in the version node. |
JcrStream |
getStream(java.lang.Number version,
boolean data)
Returns the saved stream in the version node. |
protected boolean |
hasVersionHistory()
|
protected abstract boolean |
isSkipFirstEnabled()
|
java.lang.Number |
last()
Searchs in node version history the last version ID. |
EntityResult |
list(java.lang.Number version,
java.util.List keys,
java.util.Map alias)
Version information on the current node. |
java.lang.Number |
next()
Calculates the next version ID. |
JcrNode |
remove(java.lang.Number version)
Removes a existing version of the current node, or current node if version is null. |
java.lang.Number |
size()
Count saved versions on this node. |
| Methods inherited from class com.ontimize.dms.jcr.JcrWrapperPropertyAbstract |
|---|
getProperty, hasProperty, setProperty |
| Methods inherited from class com.ontimize.dms.jcr.JcrWrapperAbstract |
|---|
createNodeManager, getConverter, getInnerSession, getInternal, getSession, getWrapper, isSaveInSessionEnabled, save, save, setConverter, setInnerSession, setInternal, setSaveInSession, setSession, setWrapper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ontimize.dms.jcr.JcrWrapperProperty |
|---|
getProperty, hasProperty, setProperty |
| Methods inherited from interface com.ontimize.dms.jcr.JcrWrapper |
|---|
getInnerSession, getInternal, getSession, getWrapper, save |
| Field Detail |
|---|
public static final java.lang.Number BASE
public static final java.util.List DEFAULT_PROPERTIES
| Constructor Detail |
|---|
public JcrVersionBase(JcrNode node)
throws RepositoryException
RepositoryException| Method Detail |
|---|
protected abstract boolean isSkipFirstEnabled()
protected abstract Node createInternalNode(JcrNode node)
throws RepositoryException
RepositoryException
public Node getNode(java.lang.Number version)
throws RepositoryException
JcrVersionSearchs in current node the version node in the
version history.
getNode in interface JcrVersionversion - Version number ID
RepositoryException - if JCR exception ocurrs.
public JcrStream getStream(java.lang.Number version)
throws RepositoryException
JcrVersionReturns the saved stream in the version node.
getStream in interface JcrVersionversion - Version number ID.
version is null.
RepositoryException - if JCR exception ocurrs.
public JcrStream getStream(java.lang.Number version,
boolean data)
throws RepositoryException
JcrVersionReturns the saved stream in the version node.
getStream in interface JcrVersionversion - Version number ID.data - True returns the stream data and related properties.version is null.
RepositoryException - if JCR exception ocurrs.protected java.lang.String createStreamClassName()
protected JcrStream createStream(java.lang.Number version)
throws RepositoryException
RepositoryException
public EntityResult list(java.lang.Number version,
java.util.List keys,
java.util.Map alias)
throws RepositoryException
JcrVersionVersion information on the current node.
alias Map can be null.
list in interface JcrVersionversion - Version number ID.keys - List with keys to return.alias - Map with keys conversion rules.
RepositoryException - if JCR exception ocurrs.
public java.lang.Number last()
throws RepositoryException
JcrVersionSearchs in node version history the last version ID.
last in interface JcrVersionRepositoryException - if JCR exception ocurrs.
public java.lang.Number next()
throws RepositoryException
JcrVersionCalculates the next version ID. Searchs the last saved ID and increments a unit.
next in interface JcrVersionRepositoryException
public java.lang.Number size()
throws RepositoryException
JcrVersionCount saved versions on this node.
size in interface JcrVersionRepositoryException - if JCR exception ocurrs.
public JcrNode remove(java.lang.Number version)
throws LockException,
RepositoryException
JcrVersionRemoves a existing version of the current node, or current node if version is null.
remove in interface JcrVersionversion - To delete.
LockException - if the current node is locked.
RepositoryException - if JCR exception ocurrs.
protected boolean hasVersionHistory()
throws RepositoryException
RepositoryException
protected NodeManager createNodeManager(Node node)
throws RepositoryException
JcrWrapperAbstractNodeManager with the current configuration.
createNodeManager in class JcrWrapperAbstractnode - Wrappered node.
NodeManager with the current configuration
RepositoryException
|
Ontimize Document Management | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||