Copyright© 2008-2018 SiteVision AB, all rights reserved.
Package | Description |
---|---|
javax.jcr |
Provides interfaces and classes for the Content Repository for Java Technology.
|
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 |
---|---|
void |
Node.addMixin(String mixinName)
Adds the mixin node type named
mixinName to this node. |
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 |
Node.cancelMerge(Version version)
Deprecated.
As of JCR 2.0,
VersionManager.cancelMerge(java.lang.String, javax.jcr.version.Version)
should be used instead. |
Version |
Node.checkin()
Deprecated.
As of JCR 2.0,
VersionManager.checkin(java.lang.String)
should be used instead. |
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 |
Node.doneMerge(Version version)
Deprecated.
As of JCR 2.0,
VersionManager.doneMerge(java.lang.String, javax.jcr.version.Version)
should be used instead. |
org.xml.sax.ContentHandler |
Workspace.getImportContentHandler(String parentAbsPath,
int uuidBehavior)
Returns an
org.xml.sax.ContentHandler which can be used to
push SAX events into the repository. |
org.xml.sax.ContentHandler |
Session.getImportContentHandler(String parentAbsPath,
int uuidBehavior)
Returns an
org.xml.sax.ContentHandler which is used to push
SAX events to the repository. |
void |
Workspace.importXML(String parentAbsPath,
java.io.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,
java.io.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.orderBefore(String srcChildRelPath,
String destChildRelPath)
If this node supports child node ordering, this method inserts the child
node at
srcChildRelPath into the child node list at the
position immediately the child node at destChildRelPath . |
void |
Item.remove()
Removes
this item (and its subgraph). |
void |
Session.removeItem(String absPath)
Removes the specified item and its subgraph.
|
void |
Node.removeMixin(String mixinName)
Removes the specified mixin node type from this node and removes
mixinName from this node's jcr:mixinTypes
property. |
void |
Node.removeShare()
Removes this node, but does not remove any other node in the shared set
of this node.
|
void |
Node.removeSharedSet()
Removes this node and every other node in the shared set of this node.
|
void |
Node.restore(String versionName,
boolean removeExisting)
Deprecated.
As of JCR 2.0,
VersionManager.restore(javax.jcr.version.Version[], boolean)
should be used instead. |
void |
Workspace.restore(Version[] versions,
boolean removeExisting)
Deprecated.
As of JCR 2.0,
VersionManager.restore(javax.jcr.version.Version[], boolean)
should be used instead. |
void |
Node.restore(Version version,
boolean removeExisting)
Deprecated.
As of JCR 2.0,
VersionManager.restore(javax.jcr.version.Version[], boolean)
should be used instead. |
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. |
void |
Node.restoreByLabel(String versionLabel,
boolean removeExisting)
Deprecated.
As of JCR 2.0,
VersionManager.restoreByLabel(java.lang.String, java.lang.String, boolean)
should be used instead. |
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.setPrimaryType(String nodeTypeName)
Changes the primary node type of this node to
nodeTypeName . |
Property |
Node.setProperty(String name,
java.math.BigDecimal value)
The behavior of this method is identical to that of
Node.setProperty(String name, Value value) except that the value is
specified as a BigDecimal and, if possible, the type assigned to
the property is DECIMAL , otherwise a best-effort conversion
is attempted. |
Property |
Node.setProperty(String name,
Binary value)
The behavior of this method is identical to that of
Node.setProperty(String name, Value value) except that the value is
specified as a Binary and, if possible, the type assigned to the
property is BINARY , otherwise a best-effort conversion is
attempted. |
Property |
Node.setProperty(String name,
boolean value)
The behavior of this method is identical to that of
Node.setProperty(String name, Value value) except that the value is
specified as a boolean and, if possible, the type assigned
to the property is BOOLEAN , otherwise a best-effort
conversion is attempted. |
Property |
Node.setProperty(String name,
java.util.Calendar value)
The behavior of this method is identical to that of
Node.setProperty(String name, Value value) except that the value is
specified as a Calendar and, if possible, the type assigned to
the property is DATE , otherwise a best-effort conversion is
attempted. |
Property |
Node.setProperty(String name,
double value)
The behavior of this method is identical to that of
Node.setProperty(String name, Value value) except that the value is
specified as a double and, if possible, the type assigned to
the property is DOUBLE , otherwise a best-effort conversion
is attempted. |
Property |
Node.setProperty(String name,
java.io.InputStream value)
Deprecated.
As of JCR 2.0,
Node.setProperty(String, Binary) should be
used instead. |
Property |
Node.setProperty(String name,
long value)
The behavior of this method is identical to that of
Node.setProperty(String name, Value value) except that the value is
specified as a long and, if possible, the type assigned to
the property is LONG , otherwise a best-effort conversion is
attempted. |
Property |
Node.setProperty(String name,
Node value)
The behavior of this method is identical to that of
Node.setProperty(String name, Value value) except that the value is
specified as a Node and, if possible, the type assigned to the
property is REFERENCE or WEAKREFERENCE ,
otherwise a best-effort conversion is attempted. |
Property |
Node.setProperty(String name,
String value)
Sets the specified single-value property to the specified value.
|
Property |
Node.setProperty(String name,
String[] values)
Sets the specified property to the specified array of values.
|
Property |
Node.setProperty(String name,
String[] values,
int type)
Sets the specified property to the specified array of values and to the
specified type.
|
Property |
Node.setProperty(String name,
String value,
int type)
Sets the specified single-value property to the specified value.
|
Property |
Node.setProperty(String name,
Value value)
Sets the single-value property of this node called
name to
the specified value . |
Property |
Node.setProperty(String name,
Value[] values)
Sets the multi-value property of this node called
name to
the specified array of values. |
Property |
Node.setProperty(String name,
Value[] values,
int type)
Sets the multi-value property of this node called
name to
the specified array of values. |
Property |
Node.setProperty(String name,
Value value,
int type)
Sets the single-value property of this node called
name to
the specified value and the specified type . |
void |
Property.setValue(java.math.BigDecimal value)
Sets the value of this property to
value . |
void |
Property.setValue(Binary value)
Sets the value of this property to
value . |
void |
Property.setValue(boolean value)
Sets the value of this property to
value . |
void |
Property.setValue(java.util.Calendar value)
Sets the value of this property to
value . |
void |
Property.setValue(double value)
Sets the value of this property to
value . |
void |
Property.setValue(java.io.InputStream value)
Deprecated.
As of JCR 2.0,
Property.setValue(Binary) should be used
instead. |
void |
Property.setValue(long value)
Sets the value of this property to
value . |
void |
Property.setValue(Node value)
Sets this
REFERENCE or WEAKREFERNCE property to
refer to the specified node. |
void |
Property.setValue(String value)
Sets the value of this property to
value . |
void |
Property.setValue(String[] values)
Sets the value of this property to the
values array. |
void |
Property.setValue(Value value)
Sets the value of this property to
value . |
void |
Property.setValue(Value[] values)
Sets the value of this property to the
values array. |
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 . |
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 |
---|---|
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 | Class and Description |
---|---|
class |
ActivityViolationException
Exception will be thrown by
Node.checkout and
Node.checkpoint if an activity A is present on the current
session and any of the following conditions is met: There already is
a node in another workspace that has a checked-out node for the version
history of N whose jcr:activity references A. |
class |
LabelExistsVersionException
Exception thrown by
VersionHistory.addVersionLabel if
moveLabel is set to false and an attempt is made to
add a label that already exists in the VersionHistory . |
Modifier and Type | Method and Description |
---|---|
void |
VersionHistory.addVersionLabel(String versionName,
String label,
boolean moveLabel)
Adds the specified label to the specified version.
|
void |
VersionManager.cancelMerge(String absPath,
Version version)
Cancels the merge process with respect to the node at
absPath and the specified version . |
Version |
VersionManager.checkin(String absPath)
Creates for the versionable node at
absPath a new version
with a system generated version name and returns that version (which will
be the new base version of this node). |
Version |
VersionManager.checkpoint(String absPath)
Performs a
checkin() followed by a checkout()
on the versionable node at absPath . |
void |
VersionManager.doneMerge(String absPath,
Version version)
Completes the merge process with respect to the node at
absPath and the specified version . |
Version |
VersionHistory.getVersion(String versionName)
Retrieves a particular version from this version history by version
name.
|
Version |
VersionHistory.getVersionByLabel(String label)
Retrieves a particular version from this version history by version
label.
|
String[] |
VersionHistory.getVersionLabels(Version version)
Returns all version labels of the given
version - empty
array if none. |
boolean |
VersionHistory.hasVersionLabel(Version version,
String label)
Returns true if the given version has the given
label . |
NodeIterator |
VersionManager.merge(Node activityNode)
This method merges the changes that were made under the specified
activity into the current workspace.
|
void |
VersionManager.removeActivity(Node activityNode)
This method removes the given
activityNode and all REFERENCE properties
within all workspaces that refer to the activityNode . |
void |
VersionHistory.removeVersion(String versionName)
Removes the named version from this version history and automatically
repairs the version graph.
|
void |
VersionHistory.removeVersionLabel(String label)
Removes the specified label from among the labels of this version
history.
|
void |
VersionManager.restore(String absPath,
String versionName,
boolean removeExisting)
Restores the node at
absPath to the state defined by the
version with the specified versionName . |
void |
VersionManager.restore(String absPath,
Version version,
boolean removeExisting)
Restores the specified version to
absPath . |
void |
VersionManager.restore(Version[] versions,
boolean removeExisting)
Restores a set of versions at once.
|
void |
VersionManager.restore(Version version,
boolean removeExisting)
Restores the node in the current workspace that is the versionable node of the
specified
version to the state reflected in that version. |
void |
VersionManager.restoreByLabel(String absPath,
String versionLabel,
boolean removeExisting)
Restores the version of the node at
absPath with the
specified version label. |
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-2018 SiteVision AB, all rights reserved.