|
Ontimize Document Management 0.035EN | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JcrNode
Wrappers a Node node. Supported node structure:
BASE
KEYS
NODES
| Field Summary | |
|---|---|
static java.lang.String |
AUTO_NAMES
|
static java.lang.String |
BASE
|
static java.lang.String |
CHILDREN
|
static java.lang.String |
DATA
|
static java.lang.String |
DATE_INSERT
|
static java.lang.String |
DATE_UPDATE
|
static java.lang.String |
DEEP
|
static java.lang.String |
DESCRIPTION
|
static java.lang.String |
DOCUMENT
|
static java.lang.String |
FIELDS
|
static java.lang.String |
FILE
|
static java.lang.String |
JCR_CONTENT
|
static java.lang.String |
KEYS
|
static java.lang.String |
LAST_MODIFIED
|
static java.lang.String |
LINK
|
static java.lang.String |
LINK_TARGET
|
static java.lang.String |
MIME_TYPE
|
static java.lang.String |
NAME
|
static java.lang.String |
NODE_FIELDS
|
static java.lang.String |
NODE_FILE
|
static java.lang.String |
NODE_FOLDER
|
static java.lang.String |
NODE_LINK
|
static java.lang.String |
NODE_STATUS
|
static java.lang.String |
NODE_STATUS_DATE
|
static java.lang.String |
NODE_STATUS_USER
|
static java.lang.String |
NT_UNSTRUCTURED
|
static java.lang.String |
PARENT_FIELDS
|
static java.lang.String |
PATH
|
static java.lang.String |
PROPERTY_STATUS
|
static java.lang.String |
PROPERTY_STATUS_DATE
|
static java.lang.String |
PROPERTY_STATUS_USER
|
static java.lang.String |
STREAM
|
static java.lang.String |
STREAM_DATE
|
static java.lang.String |
STREAM_LENGTH
|
static java.lang.String |
STREAM_OPENED
|
static java.lang.String |
STREAM_STATUS
|
static java.lang.String |
STREAM_STATUS_DATE
|
static java.lang.String |
STREAM_STATUS_USER
|
static java.lang.String |
STREAM_VERSION
|
static java.lang.String |
THUMBNAIL
|
static java.lang.String |
TITLE
|
static java.lang.String |
TYPE
|
static java.lang.String |
TYPE_BASE
|
static java.lang.String |
TYPE_DIR
|
static java.lang.String |
TYPE_FILE
|
static java.lang.String |
TYPE_KEYS
|
static java.lang.String |
TYPE_LINK
|
static java.lang.String |
USER_INSERT
|
static java.lang.String |
USER_UPDATE
|
| Method Summary | |
|---|---|
void |
checkEditable()
|
JcrNode |
clone(Node node)
|
Node |
getBase()
Returns the node base for the node and the current session request. |
JcrNodeIterator |
getChildren(java.util.Map fields,
boolean recursive)
Return a iterator with the children filtered with the given Map. |
long |
getChildrenSize()
Returns the children node list size. |
java.lang.String |
getFile()
Returns the attached file name. |
java.lang.String |
getName()
Returns the node name. |
Node |
getNode()
Returns the internal JCR node interface. |
Type |
getNodeType()
|
java.lang.String |
getPath()
Returns the path of the current node. |
java.util.Map |
getPathTypes()
Returns the path types of the current node path. |
java.util.Map |
getPathTypes(java.util.List types,
java.util.Map alias)
Returns the path types of the current node path. |
JcrProperty |
getProperty()
Returns a property handler for the current node. |
JcrStream |
getStream()
Returns the saved stream in the node. |
JcrStream |
getStream(boolean data)
Returns the saved stream in the node and / or its properties. |
JcrVersion |
getVersion()
Returns a version handle for the current node. |
boolean |
hasNodeType()
|
JcrNode |
insert(java.util.Map info,
java.util.Map properties)
Insert a new child node to current node. |
boolean |
isBase()
Check if the current node is in the base path of the repository. |
boolean |
isEditable()
Check if the current node can be changed. |
boolean |
isKeys()
Check if the current node is a key node. |
boolean |
isLeaf()
Checks if there is a ending node. |
boolean |
isLink()
Check if the current node is a link to another. |
boolean |
isRoot()
|
JcrNode |
paste(java.util.Map info,
java.util.Map properties,
boolean copy)
Moves the current node to the desired target. |
JcrNode |
remove()
Removes the current node. |
JcrNode |
rename(java.lang.String name)
Changes the name of the current node. |
JcrNode |
update(java.util.Map info,
boolean version)
Set new information to the base version of the current node. |
| Methods inherited from interface com.ontimize.dms.jcr.JcrWrapper |
|---|
getInnerSession, getInternal, getSession, getWrapper, save |
| Methods inherited from interface com.ontimize.dms.jcr.JcrLockable |
|---|
isLocked, lock, unlock, unlock, unlock, unlock |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
static final java.lang.String NODE_FOLDER
static final java.lang.String NODE_FILE
static final java.lang.String NODE_LINK
static final java.lang.String NODE_FIELDS
static final java.lang.String DOCUMENT
static final java.lang.String FIELDS
static final java.lang.String CHILDREN
static final java.lang.String DEEP
static final java.lang.String BASE
static final java.lang.String KEYS
static final java.lang.String PATH
static final java.lang.String NAME
static final java.lang.String FILE
static final java.lang.String LINK
static final java.lang.String LINK_TARGET
static final java.lang.String TITLE
static final java.lang.String DESCRIPTION
static final java.lang.String TYPE
static final java.lang.String STREAM
static final java.lang.String STREAM_LENGTH
static final java.lang.String STREAM_DATE
static final java.lang.String STREAM_VERSION
static final java.lang.String THUMBNAIL
static final java.lang.String NODE_STATUS
static final java.lang.String NODE_STATUS_USER
static final java.lang.String NODE_STATUS_DATE
static final java.lang.String STREAM_STATUS
static final java.lang.String STREAM_STATUS_USER
static final java.lang.String STREAM_STATUS_DATE
static final java.lang.String STREAM_OPENED
static final java.lang.String USER_INSERT
static final java.lang.String DATE_INSERT
static final java.lang.String USER_UPDATE
static final java.lang.String DATE_UPDATE
static final java.lang.String PROPERTY_STATUS
static final java.lang.String PROPERTY_STATUS_USER
static final java.lang.String PROPERTY_STATUS_DATE
static final java.lang.String DATA
static final java.lang.String LAST_MODIFIED
static final java.lang.String MIME_TYPE
static final java.lang.String AUTO_NAMES
static final java.lang.String PARENT_FIELDS
static final java.lang.String TYPE_BASE
static final java.lang.String TYPE_KEYS
static final java.lang.String TYPE_FILE
static final java.lang.String TYPE_LINK
static final java.lang.String TYPE_DIR
static final java.lang.String JCR_CONTENT
static final java.lang.String NT_UNSTRUCTURED
| Method Detail |
|---|
Node getBase()
Returns the node base for the node and the current session request.
Node getNode()
Returns the internal JCR node interface.
java.lang.String getName()
throws RepositoryException
Returns the node name.
RepositoryException - if JCR exception is thrown.
java.lang.String getFile()
throws RepositoryException
Returns the attached file name.
Note: File name can be different of current node name.
RepositoryException - if JCR exception is thrown.
java.lang.String getPath()
throws RepositoryException
Returns the path of the current node.
RepositoryException - if JCR exception is thrown.
java.util.Map getPathTypes()
throws RepositoryException
Returns the path types of the current node path.
Parse: base, keys, path, name and file of the current node.
RepositoryException - if JCR exception is thrown.
java.util.Map getPathTypes(java.util.List types,
java.util.Map alias)
throws RepositoryException
Returns the path types of the current node path.
Parse: base, keys, path, name and file of the current node.
types - Path types to return.alias - map with alternative keys.
RepositoryException - if JCR exception is thrown.
Type getNodeType()
throws RepositoryException
RepositoryException
long getChildrenSize()
throws RepositoryException
Returns the children node list size.
RepositoryException - if JCR exception ocurrs.
boolean isLeaf()
throws LockException,
RepositoryException
Checks if there is a ending node.
LockException - if the current node is locked.
RepositoryException - if JCR exception ocurrs.
boolean isRoot()
throws RepositoryException
RepositoryException
boolean isBase()
throws RepositoryException
Check if the current node is in the base path of the repository.
RepositoryException - if JCR exception ocurrs.
boolean isKeys()
throws RepositoryException
Check if the current node is a key node.
RepositoryException - if JCR exception ocurrs.
boolean isLink()
throws RepositoryException
Check if the current node is a link to another.
RepositoryException - if JCR exception ocurrs.
boolean isEditable()
throws RepositoryException
Check if the current node can be changed. (System nodes root, keys and base can be changed.)
RepositoryException
void checkEditable()
throws RepositoryException
RepositoryException
boolean hasNodeType()
throws RepositoryException
RepositoryException
JcrStream getStream()
throws LockException,
RepositoryException
Returns the saved stream in the node.
LockException - if the current node is locked.
RepositoryException - if JCR exception ocurrs.
JcrStream getStream(boolean data)
throws LockException,
RepositoryException
Returns the saved stream in the node and / or its properties.
data - True returns the stream data and related properties.
LockException - if the current node is locked.
RepositoryException - if JCR exception ocurrs.
JcrProperty getProperty()
throws RepositoryException
Returns a property handler for the current node.
RepositoryException - if JCR exception ocurrs.
JcrVersion getVersion()
throws RepositoryException
Returns a version handle for the current node.
RepositoryException - if JCR exception ocurrs.
JcrNodeIterator getChildren(java.util.Map fields,
boolean recursive)
throws RepositoryException
Return a iterator with the children filtered with the given Map.
fields - List only the nodes with the current keys/values.recursive - Search child nodes recursive.
RepositoryException - if JCR exception ocurrs.
JcrNode insert(java.util.Map info,
java.util.Map properties)
throws RepositoryException
Insert a new child node to current node.
Support to insert complete directories path.
info - New node informationproperties - Additional properties to new nodes.
RepositoryException - if JCR exception ocurrs.
java.lang.IllegalArgumentException - if any information parameter is missing.
JcrNode update(java.util.Map info,
boolean version)
throws LockException,
RepositoryException
Set new information to the base version of the current node.
info - Node information
LockException - if the current node is locked.
java.lang.IllegalArgumentException - if any information parameter is missing.
RepositoryException - if JCR exception ocurrs.
JcrNode paste(java.util.Map info,
java.util.Map properties,
boolean copy)
throws LockException,
RepositoryException
Moves the current node to the desired target.
Recursive
The target must exists.
info - Node to paste informationproperties - Additional properties to the target node.
LockException - if the current node is locked.
RepositoryException - if JCR exception ocurrs.
JcrNode rename(java.lang.String name)
throws LockException,
RepositoryException
Changes the name of the current node.
name - New node name
LockException - if the current node is locked.
RepositoryException - if JCR exception ocurrs.
JcrNode remove()
throws LockException,
RepositoryException
Removes the current node.
If the current node is a file, remove all links to current node.
LockException - if the current node is locked.
RepositoryException - if JCR exception ocurrs.
JcrNode clone(Node node)
throws RepositoryException
RepositoryException
|
Ontimize Document Management | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||