Class FsNode
java.lang.Object
org.apache.sling.fsprovider.internal.mapper.jcr.FsNode
- All Implemented Interfaces:
javax.jcr.Item
,javax.jcr.Node
Simplified implementation of read-only content access via the JCR API.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ContentFile
protected final ValueMap
protected final ResourceResolver
Fields inherited from interface javax.jcr.Node
JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(javax.jcr.ItemVisitor visitor) void
javax.jcr.Node
javax.jcr.Node
boolean
canAddMixin
(String mixinName) void
cancelMerge
(javax.jcr.version.Version version) javax.jcr.version.Version
checkin()
void
checkout()
void
doneMerge
(javax.jcr.version.Version version) void
followLifecycleTransition
(String transition) String[]
javax.jcr.Item
getAncestor
(int depth) javax.jcr.version.Version
getCorrespondingNodePath
(String workspaceName) javax.jcr.nodetype.NodeDefinition
int
getDepth()
int
getIndex()
javax.jcr.lock.Lock
getLock()
javax.jcr.nodetype.NodeType[]
getName()
javax.jcr.Node
javax.jcr.NodeIterator
getNodes()
javax.jcr.NodeIterator
javax.jcr.NodeIterator
javax.jcr.Node
getPath()
javax.jcr.Item
javax.jcr.nodetype.NodeType
javax.jcr.PropertyIterator
javax.jcr.PropertyIterator
getProperties
(String namePattern) javax.jcr.PropertyIterator
getProperties
(String[] nameGlobs) javax.jcr.Property
getProperty
(String relPath) javax.jcr.PropertyIterator
javax.jcr.PropertyIterator
getReferences
(String name) javax.jcr.Session
javax.jcr.NodeIterator
getUUID()
javax.jcr.version.VersionHistory
javax.jcr.PropertyIterator
javax.jcr.PropertyIterator
getWeakReferences
(String name) boolean
boolean
hasNodes()
boolean
boolean
hasProperty
(String relPath) boolean
boolean
boolean
isLocked()
boolean
boolean
isNew()
boolean
isNode()
boolean
isNodeType
(String nodeTypeName) boolean
isSame
(javax.jcr.Item otherItem) javax.jcr.lock.Lock
lock
(boolean isDeep, boolean isSessionScoped) javax.jcr.NodeIterator
void
orderBefore
(String srcChildRelPath, String destChildRelPath) void
refresh
(boolean keepChanges) void
remove()
void
removeMixin
(String mixinName) void
void
void
void
restore
(javax.jcr.version.Version version, boolean removeExisting) void
void
restoreByLabel
(String versionLabel, boolean removeExisting) void
save()
void
setPrimaryType
(String nodeTypeName) javax.jcr.Property
setProperty
(String name, boolean value) javax.jcr.Property
setProperty
(String name, double value) javax.jcr.Property
setProperty
(String name, long value) javax.jcr.Property
setProperty
(String name, InputStream value) javax.jcr.Property
setProperty
(String name, String value) javax.jcr.Property
setProperty
(String name, String[] values) javax.jcr.Property
setProperty
(String name, String[] values, int type) javax.jcr.Property
setProperty
(String name, String value, int type) javax.jcr.Property
setProperty
(String name, BigDecimal value) javax.jcr.Property
setProperty
(String name, Calendar value) javax.jcr.Property
setProperty
(String name, javax.jcr.Binary value) javax.jcr.Property
setProperty
(String name, javax.jcr.Node value) javax.jcr.Property
setProperty
(String name, javax.jcr.Value value) javax.jcr.Property
setProperty
(String name, javax.jcr.Value[] values) javax.jcr.Property
setProperty
(String name, javax.jcr.Value[] values, int type) javax.jcr.Property
setProperty
(String name, javax.jcr.Value value, int type) toString()
void
unlock()
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.jcr.Item
accept, getAncestor, getDepth, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save
-
Field Details
-
contentFile
-
resolver
-
props
-
-
Constructor Details
-
FsNode
-
-
Method Details
-
getName
- Specified by:
getName
in interfacejavax.jcr.Item
- Throws:
javax.jcr.RepositoryException
-
getParent
public javax.jcr.Node getParent() throws javax.jcr.ItemNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException- Specified by:
getParent
in interfacejavax.jcr.Item
- Throws:
javax.jcr.ItemNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
-
getNode
public javax.jcr.Node getNode(String relPath) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException - Specified by:
getNode
in interfacejavax.jcr.Node
- Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
-
getNodes
public javax.jcr.NodeIterator getNodes() throws javax.jcr.RepositoryException- Specified by:
getNodes
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
getProperty
public javax.jcr.Property getProperty(String relPath) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException - Specified by:
getProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
-
getProperties
public javax.jcr.PropertyIterator getProperties() throws javax.jcr.RepositoryException- Specified by:
getProperties
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
getUUID
public String getUUID() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException- Specified by:
getUUID
in interfacejavax.jcr.Node
- Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
-
hasNode
- Specified by:
hasNode
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
hasProperty
- Specified by:
hasProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
hasNodes
public boolean hasNodes() throws javax.jcr.RepositoryException- Specified by:
hasNodes
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
hasProperties
public boolean hasProperties() throws javax.jcr.RepositoryException- Specified by:
hasProperties
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
isNodeType
- Specified by:
isNodeType
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
canAddMixin
public boolean canAddMixin(String mixinName) throws javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.RepositoryException - Specified by:
canAddMixin
in interfacejavax.jcr.Node
- Throws:
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.RepositoryException
-
isCheckedOut
public boolean isCheckedOut() throws javax.jcr.RepositoryException- Specified by:
isCheckedOut
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
holdsLock
public boolean holdsLock() throws javax.jcr.RepositoryException- Specified by:
holdsLock
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
isLocked
public boolean isLocked() throws javax.jcr.RepositoryException- Specified by:
isLocked
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
getPrimaryNodeType
public javax.jcr.nodetype.NodeType getPrimaryNodeType() throws javax.jcr.RepositoryException- Specified by:
getPrimaryNodeType
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
getMixinNodeTypes
public javax.jcr.nodetype.NodeType[] getMixinNodeTypes() throws javax.jcr.RepositoryException- Specified by:
getMixinNodeTypes
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
addNode
public javax.jcr.Node addNode(String relPath) throws javax.jcr.ItemExistsException, javax.jcr.PathNotFoundException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException - Specified by:
addNode
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
-
addNode
public javax.jcr.Node addNode(String relPath, String primaryNodeTypeName) throws javax.jcr.ItemExistsException, javax.jcr.PathNotFoundException, javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.lock.LockException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
addNode
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.lock.LockException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
orderBefore
public void orderBefore(String srcChildRelPath, String destChildRelPath) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.ItemNotFoundException, javax.jcr.lock.LockException, javax.jcr.RepositoryException - Specified by:
orderBefore
in interfacejavax.jcr.Node
- Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.ItemNotFoundException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, javax.jcr.Value value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, javax.jcr.Value value, int type) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, javax.jcr.Value[] values) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, javax.jcr.Value[] values, int type) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, String[] values) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, String[] values, int type) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, String value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, String value, int type) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, InputStream value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, javax.jcr.Binary value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, boolean value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, double value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, BigDecimal value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, long value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, Calendar value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
setProperty
public javax.jcr.Property setProperty(String name, javax.jcr.Node value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException - Specified by:
setProperty
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
-
getReferences
public javax.jcr.PropertyIterator getReferences() throws javax.jcr.RepositoryException- Specified by:
getReferences
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
getReferences
- Specified by:
getReferences
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
getWeakReferences
public javax.jcr.PropertyIterator getWeakReferences() throws javax.jcr.RepositoryException- Specified by:
getWeakReferences
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
getWeakReferences
public javax.jcr.PropertyIterator getWeakReferences(String name) throws javax.jcr.RepositoryException - Specified by:
getWeakReferences
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
setPrimaryType
public void setPrimaryType(String nodeTypeName) throws javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException - Specified by:
setPrimaryType
in interfacejavax.jcr.Node
- Throws:
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
-
addMixin
public void addMixin(String mixinName) throws javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException - Specified by:
addMixin
in interfacejavax.jcr.Node
- Throws:
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
-
removeMixin
public void removeMixin(String mixinName) throws javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException - Specified by:
removeMixin
in interfacejavax.jcr.Node
- Throws:
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
-
getDefinition
public javax.jcr.nodetype.NodeDefinition getDefinition() throws javax.jcr.RepositoryException- Specified by:
getDefinition
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
checkin
public javax.jcr.version.Version checkin() throws javax.jcr.version.VersionException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.InvalidItemStateException, javax.jcr.lock.LockException, javax.jcr.RepositoryException- Specified by:
checkin
in interfacejavax.jcr.Node
- Throws:
javax.jcr.version.VersionException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.InvalidItemStateException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
-
checkout
public void checkout() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.version.ActivityViolationException, javax.jcr.RepositoryException- Specified by:
checkout
in interfacejavax.jcr.Node
- Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.version.ActivityViolationException
javax.jcr.RepositoryException
-
doneMerge
public void doneMerge(javax.jcr.version.Version version) throws javax.jcr.version.VersionException, javax.jcr.InvalidItemStateException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException - Specified by:
doneMerge
in interfacejavax.jcr.Node
- Throws:
javax.jcr.version.VersionException
javax.jcr.InvalidItemStateException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
-
cancelMerge
public void cancelMerge(javax.jcr.version.Version version) throws javax.jcr.version.VersionException, javax.jcr.InvalidItemStateException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException - Specified by:
cancelMerge
in interfacejavax.jcr.Node
- Throws:
javax.jcr.version.VersionException
javax.jcr.InvalidItemStateException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
-
update
public void update(String srcWorkspace) throws javax.jcr.NoSuchWorkspaceException, javax.jcr.AccessDeniedException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException - Specified by:
update
in interfacejavax.jcr.Node
- Throws:
javax.jcr.NoSuchWorkspaceException
javax.jcr.AccessDeniedException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
-
merge
public javax.jcr.NodeIterator merge(String srcWorkspace, boolean bestEffort) throws javax.jcr.NoSuchWorkspaceException, javax.jcr.AccessDeniedException, javax.jcr.MergeException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException - Specified by:
merge
in interfacejavax.jcr.Node
- Throws:
javax.jcr.NoSuchWorkspaceException
javax.jcr.AccessDeniedException
javax.jcr.MergeException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
-
getCorrespondingNodePath
public String getCorrespondingNodePath(String workspaceName) throws javax.jcr.ItemNotFoundException, javax.jcr.NoSuchWorkspaceException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException - Specified by:
getCorrespondingNodePath
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ItemNotFoundException
javax.jcr.NoSuchWorkspaceException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
-
restore
public void restore(String versionName, boolean removeExisting) throws javax.jcr.version.VersionException, javax.jcr.ItemExistsException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException - Specified by:
restore
in interfacejavax.jcr.Node
- Throws:
javax.jcr.version.VersionException
javax.jcr.ItemExistsException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
-
restore
public void restore(javax.jcr.version.Version version, boolean removeExisting) throws javax.jcr.version.VersionException, javax.jcr.ItemExistsException, javax.jcr.InvalidItemStateException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException - Specified by:
restore
in interfacejavax.jcr.Node
- Throws:
javax.jcr.version.VersionException
javax.jcr.ItemExistsException
javax.jcr.InvalidItemStateException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
-
restore
public void restore(javax.jcr.version.Version version, String relPath, boolean removeExisting) throws javax.jcr.PathNotFoundException, javax.jcr.ItemExistsException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException - Specified by:
restore
in interfacejavax.jcr.Node
- Throws:
javax.jcr.PathNotFoundException
javax.jcr.ItemExistsException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
-
restoreByLabel
public void restoreByLabel(String versionLabel, boolean removeExisting) throws javax.jcr.version.VersionException, javax.jcr.ItemExistsException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException - Specified by:
restoreByLabel
in interfacejavax.jcr.Node
- Throws:
javax.jcr.version.VersionException
javax.jcr.ItemExistsException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
-
getVersionHistory
public javax.jcr.version.VersionHistory getVersionHistory() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException- Specified by:
getVersionHistory
in interfacejavax.jcr.Node
- Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
-
getBaseVersion
public javax.jcr.version.Version getBaseVersion() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException- Specified by:
getBaseVersion
in interfacejavax.jcr.Node
- Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
-
lock
public javax.jcr.lock.Lock lock(boolean isDeep, boolean isSessionScoped) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.AccessDeniedException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException - Specified by:
lock
in interfacejavax.jcr.Node
- Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.AccessDeniedException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
-
getLock
public javax.jcr.lock.Lock getLock() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException- Specified by:
getLock
in interfacejavax.jcr.Node
- Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
-
unlock
public void unlock() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.AccessDeniedException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException- Specified by:
unlock
in interfacejavax.jcr.Node
- Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.AccessDeniedException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
-
followLifecycleTransition
public void followLifecycleTransition(String transition) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.InvalidLifecycleTransitionException, javax.jcr.RepositoryException - Specified by:
followLifecycleTransition
in interfacejavax.jcr.Node
- Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.InvalidLifecycleTransitionException
javax.jcr.RepositoryException
-
getAllowedLifecycleTransistions
public String[] getAllowedLifecycleTransistions() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException- Specified by:
getAllowedLifecycleTransistions
in interfacejavax.jcr.Node
- Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
-
getNodes
- Specified by:
getNodes
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
getNodes
- Specified by:
getNodes
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
getIdentifier
- Specified by:
getIdentifier
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
getIndex
public int getIndex() throws javax.jcr.RepositoryException- Specified by:
getIndex
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
getPrimaryItem
public javax.jcr.Item getPrimaryItem() throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException- Specified by:
getPrimaryItem
in interfacejavax.jcr.Node
- Throws:
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
-
getProperties
public javax.jcr.PropertyIterator getProperties(String namePattern) throws javax.jcr.RepositoryException - Specified by:
getProperties
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
getProperties
public javax.jcr.PropertyIterator getProperties(String[] nameGlobs) throws javax.jcr.RepositoryException - Specified by:
getProperties
in interfacejavax.jcr.Node
- Throws:
javax.jcr.RepositoryException
-
getPath
- Specified by:
getPath
in interfacejavax.jcr.Item
- Throws:
javax.jcr.RepositoryException
-
getAncestor
public javax.jcr.Item getAncestor(int depth) throws javax.jcr.ItemNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException - Specified by:
getAncestor
in interfacejavax.jcr.Item
- Throws:
javax.jcr.ItemNotFoundException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
-
getDepth
public int getDepth() throws javax.jcr.RepositoryException- Specified by:
getDepth
in interfacejavax.jcr.Item
- Throws:
javax.jcr.RepositoryException
-
getSession
public javax.jcr.Session getSession() throws javax.jcr.RepositoryException- Specified by:
getSession
in interfacejavax.jcr.Item
- Throws:
javax.jcr.RepositoryException
-
isNode
public boolean isNode()- Specified by:
isNode
in interfacejavax.jcr.Item
-
isNew
public boolean isNew()- Specified by:
isNew
in interfacejavax.jcr.Item
-
isModified
public boolean isModified()- Specified by:
isModified
in interfacejavax.jcr.Item
-
isSame
public boolean isSame(javax.jcr.Item otherItem) throws javax.jcr.RepositoryException - Specified by:
isSame
in interfacejavax.jcr.Item
- Throws:
javax.jcr.RepositoryException
-
accept
public void accept(javax.jcr.ItemVisitor visitor) throws javax.jcr.RepositoryException - Specified by:
accept
in interfacejavax.jcr.Item
- Throws:
javax.jcr.RepositoryException
-
toString
-
save
public void save() throws javax.jcr.AccessDeniedException, javax.jcr.ItemExistsException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.InvalidItemStateException, javax.jcr.ReferentialIntegrityException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.RepositoryException- Specified by:
save
in interfacejavax.jcr.Item
- Throws:
javax.jcr.AccessDeniedException
javax.jcr.ItemExistsException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.InvalidItemStateException
javax.jcr.ReferentialIntegrityException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.RepositoryException
-
refresh
public void refresh(boolean keepChanges) throws javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException - Specified by:
refresh
in interfacejavax.jcr.Item
- Throws:
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
-
remove
public void remove() throws javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException- Specified by:
remove
in interfacejavax.jcr.Item
- Throws:
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
-