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.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 |
---|---|
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 |
Workspace.createWorkspace(String name)
Creates a new
Workspace with the specified
name . |
void |
Workspace.createWorkspace(String name,
String srcWorkspace)
Creates a new
Workspace with the specified name
initialized with a clone of the content of the workspace
srcWorkspace . |
void |
Workspace.deleteWorkspace(String name)
Deletes the workspace with the specified
name from the
repository, deleting all content within it. |
Item |
Item.getAncestor(int depth)
Returns the ancestor of this
Item at the specified depth. |
String |
Node.getCorrespondingNodePath(String workspaceName)
Returns the absolute path of the node in the specified workspace that
corresponds to
this node. |
ContentHandler |
Workspace.getImportContentHandler(String parentAbsPath,
int uuidBehavior)
Returns an
org.xml.sax.ContentHandler which can be used to
push SAX events into the repository. |
Lock |
Node.getLock()
Deprecated.
As of JCR 2.0,
LockManager.getLock(String) should be
used instead. |
Node |
Item.getParent()
Returns the parent of this
Item . |
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 . |
Lock |
Node.lock(boolean isDeep,
boolean isSessionScoped)
Deprecated.
As of JCR 2.0,
LockManager.lock(String, boolean,
boolean, long, String) should be used instead. |
NodeIterator |
Node.merge(String srcWorkspace,
boolean bestEffort)
Deprecated.
As of JCR 2.0,
VersionManager.merge(java.lang.String, java.lang.String, boolean)
should be used instead. |
void |
Workspace.move(String srcAbsPath,
String destAbsPath)
Moves the node at
srcAbsPath (and its entire subgraph) to
the new location at destAbsPath . |
void |
NamespaceRegistry.registerNamespace(String prefix,
String uri)
Sets a one-to-one mapping between
prefix and
uri in the global namespace registry of this repository. |
void |
Item.remove()
Removes
this item (and its subgraph). |
void |
Session.removeItem(String absPath)
Removes the specified item and its subgraph.
|
void |
Item.save()
Validates all pending changes currently recorded in this
Session that apply to this Item or any of its
descendants (that is, the subgraph rooted at this Item). |
void |
Session.save()
Validates all pending changes currently recorded in this
Session . |
void |
Node.unlock()
Deprecated.
As of JCR 2.0,
LockManager.unlock(String) should be
used instead. |
void |
NamespaceRegistry.unregisterNamespace(String prefix)
Removes a namespace mapping from the registry.
|
void |
Node.update(String srcWorkspace)
If this node does have a corresponding node in the workspace
srcWorkspace , then this replaces this node and its subgraph
with a clone of the corresponding node and its subgraph. |
Modifier and Type | Method and Description |
---|---|
Lock |
LockManager.getLock(String absPath)
Returns the
Lock object that applies to the node at the
specified absPath . |
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 |
---|---|
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. |
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 |
---|---|
NodeIterator |
VersionManager.merge(Node activityNode)
This method merges the changes that were made under the specified
activity into the current workspace.
|
NodeIterator |
VersionManager.merge(String absPath,
String srcWorkspace,
boolean bestEffort)
This method recursively tests each versionable node in the subgraph of
the node at
absPath against its corresponding node in
srcWorkspace with respect to the relation between their
respective base versions and either updates the node in question or not,
depending on the outcome of the test. |
NodeIterator |
VersionManager.merge(String absPath,
String srcWorkspace,
boolean bestEffort,
boolean isShallow)
Same as
VersionManager.merge(String absPath, String srcWorkspace, boolean
bestEffort) except that an option exists to make the merge
shallow. |
void |
VersionHistory.removeVersion(String versionName)
Removes the named version from this version history and automatically
repairs the version graph.
|
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.