Copyright© 2008-2022 Sitevision AB, all rights reserved.
Package | Description |
---|---|
javax.jcr |
Provides interfaces and classes for the Content Repository for Java Technology.
|
javax.jcr.lock |
Provides interfaces and classes for content repository locking functionality.
|
javax.jcr.query |
Provides interfaces and classes for content repository searching functionality.
|
javax.jcr.retention |
Provides interfaces and classes for content repository retention management
functionality.
|
javax.jcr.security |
Provides interfaces and classes for content repository access control management
functionality.
|
javax.jcr.version |
Provides interfaces and classes for content repository versioning functionality.
|
Modifier and Type | Method and Description |
---|---|
Node |
Node.addNode(String relPath)
Creates a new node at
relPath . |
Node |
Node.addNode(String relPath,
String primaryNodeTypeName)
Creates a new node at
relPath of the specified node type. |
void |
Workspace.clone(String srcWorkspace,
String srcAbsPath,
String destAbsPath,
boolean removeExisting)
Clones the subgraph at the node
srcAbsPath in
srcWorkspace to the new location at destAbsPath
in this workspace. |
void |
Workspace.copy(String srcAbsPath,
String destAbsPath)
This method copies the subgraph rooted at, and including, the node at
srcAbsPath to the new location at destAbsPath . |
void |
Workspace.copy(String srcWorkspace,
String srcAbsPath,
String destAbsPath)
This method copies the subgraph at
srcAbsPath in
srcWorkspace to destAbsPath in
this workspace. |
void |
Session.exportDocumentView(String absPath,
ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse)
Serializes the node (and if
noRecurse is false ,
the whole subgraph) at absPath into a series of SAX events
by calling the methods of the supplied org.xml.sax.ContentHandler . |
void |
Session.exportDocumentView(String absPath,
OutputStream out,
boolean skipBinary,
boolean noRecurse)
Serializes the node (and if
noRecurse is false ,
the whole subgraph) at absPath as an XML stream and outputs
it to the supplied OutputStream . |
void |
Session.exportSystemView(String absPath,
ContentHandler contentHandler,
boolean skipBinary,
boolean noRecurse)
Serializes the node (and if
noRecurse is false ,
the whole subgraph) at absPath into a series of SAX events
by calling the methods of the supplied org.xml.sax.ContentHandler . |
void |
Session.exportSystemView(String absPath,
OutputStream out,
boolean skipBinary,
boolean noRecurse)
Serializes the node (and if
noRecurse is false ,
the whole subgraph) at absPath as an XML stream and outputs
it to the supplied OutputStream . |
ContentHandler |
Workspace.getImportContentHandler(String parentAbsPath,
int uuidBehavior)
Returns an
org.xml.sax.ContentHandler which can be used to
push SAX events into the repository. |
ContentHandler |
Session.getImportContentHandler(String parentAbsPath,
int uuidBehavior)
Returns an
org.xml.sax.ContentHandler which is used to push
SAX events to the repository. |
Item |
Session.getItem(String absPath)
Returns the node at the specified absolute path in the workspace.
|
Node |
Session.getNode(String absPath)
Returns the node at the specified absolute path in the workspace.
|
Node |
Node.getNode(String relPath)
Returns the node at
relPath relative to this node. |
Property |
Session.getProperty(String absPath)
Returns the property at the specified absolute path in the workspace.
|
Property |
Node.getProperty(String relPath)
Returns the property at
relPath relative to
this node. |
void |
Workspace.importXML(String parentAbsPath,
InputStream in,
int uuidBehavior)
Deserializes an XML document and adds the resulting item subgraph as a
child of the node at
parentAbsPath . |
void |
Session.importXML(String parentAbsPath,
InputStream in,
int uuidBehavior)
Deserializes an XML document and adds the resulting item subgraph as a
child of the node at
parentAbsPath . |
void |
Workspace.move(String srcAbsPath,
String destAbsPath)
Moves the node at
srcAbsPath (and its entire subgraph) to
the new location at destAbsPath . |
void |
Session.move(String srcAbsPath,
String destAbsPath)
Moves the node at
srcAbsPath (and its entire subgraph) to
the new location at destAbsPath . |
void |
Node.restore(Version version,
String relPath,
boolean removeExisting)
Deprecated.
As of JCR 2.0,
VersionManager.restore(javax.jcr.version.Version[], boolean)
should be used instead. |
Modifier and Type | Method and Description |
---|---|
Lock |
LockManager.getLock(String absPath)
Returns the
Lock object that applies to the node at the
specified absPath . |
boolean |
LockManager.holdsLock(String absPath)
Returns
true if the node at absPath holds a
lock; otherwise returns false . |
boolean |
LockManager.isLocked(String absPath)
Returns
true if the node at absPath is locked
either as a result of a lock held by that node or by a deep lock on a
node above that node; otherwise returns false . |
Lock |
LockManager.lock(String absPath,
boolean isDeep,
boolean isSessionScoped,
long timeoutHint,
String ownerInfo)
Places a lock on the node at
absPath . |
void |
LockManager.unlock(String absPath)
Removes the lock on the node at
absPath . |
Modifier and Type | Method and Description |
---|---|
Node |
Query.storeAsNode(String absPath)
Creates a node of type
nt:query holding this query at
absPath and returns that node. |
Modifier and Type | Method and Description |
---|---|
Hold |
RetentionManager.addHold(String absPath,
String name,
boolean isDeep)
Places a hold on the existing node at
absPath . |
Hold[] |
RetentionManager.getHolds(String absPath)
Returns all hold objects that have been added through this API to the
existing node at
absPath . |
RetentionPolicy |
RetentionManager.getRetentionPolicy(String absPath)
Returns the retention policy that has been set using
RetentionManager.setRetentionPolicy(java.lang.String, javax.jcr.retention.RetentionPolicy) on the node at absPath or
null if no policy has been set. |
void |
RetentionManager.removeHold(String absPath,
Hold hold)
Removes the specified
hold from the node at
absPath . |
void |
RetentionManager.removeRetentionPolicy(String absPath)
Causes the current retention policy on the node at
absPath
to no longer apply. |
void |
RetentionManager.setRetentionPolicy(String absPath,
RetentionPolicy retentionPolicy)
Sets the retention policy of the node at
absPath to that
defined in the specified policy node. |
Modifier and Type | Method and Description |
---|---|
AccessControlPolicyIterator |
AccessControlManager.getApplicablePolicies(String absPath)
Returns the access control policies that are capable of being applied to
the node at
absPath . |
AccessControlPolicy[] |
AccessControlManager.getEffectivePolicies(String absPath)
Returns the
AccessControlPolicy objects that currently are
in effect at the node at absPath . |
AccessControlPolicy[] |
AccessControlManager.getPolicies(String absPath)
Returns the
AccessControlPolicy objects that have been set
to the node at absPath or an empty array if no policy has
been set. |
Privilege[] |
AccessControlManager.getPrivileges(String absPath)
Returns the privileges the session has for absolute path absPath, which
must be an existing node.
|
Privilege[] |
AccessControlManager.getSupportedPrivileges(String absPath)
Returns the privileges supported for absolute path
absPath ,
which must be an existing node. |
boolean |
AccessControlManager.hasPrivileges(String absPath,
Privilege[] privileges)
Returns whether the session has the specified privileges for absolute
path
absPath , which must be an existing node. |
void |
AccessControlManager.removePolicy(String absPath,
AccessControlPolicy policy)
Removes the specified
AccessControlPolicy from the node at
absPath . |
void |
AccessControlManager.setPolicy(String absPath,
AccessControlPolicy policy)
Binds the
policy to the node at absPath . |
Modifier and Type | Method and Description |
---|---|
void |
VersionManager.restore(String absPath,
Version version,
boolean removeExisting)
Restores the specified version to
absPath . |
Sitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.