|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.ItemValidator
org.apache.jackrabbit.core.BatchedItemOperations
public class BatchedItemOperations
BatchedItemOperations is an internal helper class that
provides both high- and low-level operations directly on the
ItemState level.
| Fields inherited from class org.apache.jackrabbit.core.ItemValidator |
|---|
hierMgr, ntReg, resolver |
| Constructor Summary | |
|---|---|
BatchedItemOperations(UpdatableItemStateManager stateMgr,
NodeTypeRegistry ntReg,
LockManager lockMgr,
SessionImpl session,
HierarchyManager hierMgr)
Creates a new BatchedItemOperations instance. |
|
| Method Summary | |
|---|---|
void |
cancel()
Cancel an update operation. |
void |
checkAddNode(NodeState parentState,
Name nodeName,
Name nodeTypeName,
int options)
Checks if adding a child node called nodeName of node type
nodeTypeName to the given parent node is allowed in the
current context. |
void |
checkRemoveNode(NodeState targetState,
int options)
Checks if removing the given target node is allowed in the current context. |
void |
checkRemoveNode(NodeState targetState,
NodeId parentId,
int options)
Checks if removing the given target node from the specifed parent is allowed in the current context. |
NodeId |
clone(NodeState srcState,
NodeState destParentState,
Name destName)
Implementation of clone(Path, Path) that has already determined
the affected NodeStates. |
NodeId |
clone(Path srcPath,
Path destPath)
Clones the subtree at the node srcAbsPath in to the new
location at destAbsPath. |
NodeId |
copy(Path srcPath,
ItemStateManager srcStateMgr,
HierarchyManager srcHierMgr,
AccessManager srcAccessMgr,
Path destPath,
int flag)
Copies the tree at srcPath retrieved using the specified
srcStateMgr to the new location at destPath. |
NodeId |
copy(Path srcPath,
Path destPath,
int flag)
Copies the tree at srcPath to the new location at
destPath. |
NodeState |
createNodeState(NodeState parent,
Name nodeName,
Name nodeTypeName,
Name[] mixinNames,
NodeId id)
Creates a new node. |
NodeState |
createNodeState(NodeState parent,
Name nodeName,
Name nodeTypeName,
Name[] mixinNames,
NodeId id,
NodeDef def)
Creates a new node based on the given definition. |
PropertyState |
createPropertyState(NodeState parent,
Name propName,
int type,
int numValues)
Creates a new property. |
PropertyState |
createPropertyState(NodeState parent,
Name propName,
int type,
PropDef def)
Creates a new property based on the given definition. |
void |
destroy(ItemState state)
Destroy an item state. |
void |
edit()
Starts an edit operation on the wrapped state manager. |
NodeDef |
findApplicableNodeDefinition(Name name,
Name nodeTypeName,
NodeState parentState)
Helper method that finds the applicable definition for a child node with the given name and node type in the parent node's node type and mixin types. |
PropDef |
findApplicablePropertyDefinition(Name name,
int type,
boolean multiValued,
NodeState parentState)
Helper method that finds the applicable definition for a property with the given name, type and multiValued characteristic in the parent node's node type and mixin types. |
PropDef |
findApplicablePropertyDefinition(Name name,
int type,
NodeState parentState)
Helper method that finds the applicable definition for a property with the given name, type in the parent node's node type and mixin types. |
ItemState |
getItemState(ItemId id)
Retrieves the state of the item with the given id. |
protected ItemState |
getItemState(ItemStateManager srcStateMgr,
ItemId id)
Retrieves the state of the item with the specified id using the given item state manager. |
protected NodeState |
getNodeState(ItemStateManager srcStateMgr,
HierarchyManager srcHierMgr,
Path nodePath)
Retrieves the state of the node at nodePath using the given
item state manager. |
NodeState |
getNodeState(NodeId id)
Retrieves the state of the node with the given id. |
NodeState |
getNodeState(Path nodePath)
Retrieves the state of the node at the given path. |
PropertyState |
getPropertyState(PropertyId id)
Retrieves the state of the property with the given id. |
NodeId |
move(Path srcPath,
Path destPath)
Moves the tree at srcPath to the new location at
destPath. |
void |
removeNode(Path nodePath)
Removes the specified node, recursively removing its properties and child nodes. |
void |
removeNodeState(NodeState target)
Unlinks the specified node state from its parent and recursively removes it including its properties and child nodes. |
void |
store(ItemState state)
Store an item state. |
void |
update()
End an update operation. |
void |
verifyCanRead(Path nodePath)
Verifies that the node at nodePath can be read. |
void |
verifyCanWrite(Path nodePath)
Verifies that the node at nodePath is writable. |
protected void |
verifyCheckedOut(Path nodePath)
Verifies that the node at nodePath is checked-out; throws a
VersionException if that's not the case. |
protected void |
verifyNotProtected(Path nodePath)
Verifies that the node at nodePath is not protected. |
protected void |
verifyUnlocked(Path nodePath)
Verifies that the node at nodePath is not locked by
somebody else than the current session. |
| Methods inherited from class org.apache.jackrabbit.core.ItemValidator |
|---|
getEffectiveNodeType, safeGetJCRPath, safeGetJCRPath, validate, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int COPY
protected static final int CLONE
protected static final int CLONE_REMOVE_EXISTING
public static final int CHECK_ACCESS
checkAddNode(org.apache.jackrabbit.core.state.NodeState, org.apache.jackrabbit.spi.Name, org.apache.jackrabbit.spi.Name, int) and
checkRemoveNode(org.apache.jackrabbit.core.state.NodeState, int) methods:
check access rights
public static final int CHECK_LOCK
checkAddNode(org.apache.jackrabbit.core.state.NodeState, org.apache.jackrabbit.spi.Name, org.apache.jackrabbit.spi.Name, int) and
checkRemoveNode(org.apache.jackrabbit.core.state.NodeState, int) methods:
check lock status
public static final int CHECK_VERSIONING
checkAddNode(org.apache.jackrabbit.core.state.NodeState, org.apache.jackrabbit.spi.Name, org.apache.jackrabbit.spi.Name, int) and
checkRemoveNode(org.apache.jackrabbit.core.state.NodeState, int) methods:
check checked-out status
public static final int CHECK_CONSTRAINTS
checkAddNode(org.apache.jackrabbit.core.state.NodeState, org.apache.jackrabbit.spi.Name, org.apache.jackrabbit.spi.Name, int) and
checkRemoveNode(org.apache.jackrabbit.core.state.NodeState, int) methods:
check constraints defined in node type
public static final int CHECK_REFERENCES
checkRemoveNode(org.apache.jackrabbit.core.state.NodeState, int) method:
check that target node is not being referenced
protected final UpdatableItemStateManager stateMgr
protected final LockManager lockMgr
protected final SessionImpl session
| Constructor Detail |
|---|
public BatchedItemOperations(UpdatableItemStateManager stateMgr,
NodeTypeRegistry ntReg,
LockManager lockMgr,
SessionImpl session,
HierarchyManager hierMgr)
BatchedItemOperations instance.
stateMgr - item state managerntReg - node type registrylockMgr - lock managersession - current sessionhierMgr - hierarchy manager| Method Detail |
|---|
public void edit()
throws java.lang.IllegalStateException
update() or cancel()
must be invoked.
java.lang.IllegalStateException - if the state manager is already in edit mode
public void store(ItemState state)
throws java.lang.IllegalStateException
state - item state that should be stored
java.lang.IllegalStateException - if the manager is not in edit mode.
public void destroy(ItemState state)
throws java.lang.IllegalStateException
state - item state that should be destroyed
java.lang.IllegalStateException - if the manager is not in edit mode.
public void update()
throws javax.jcr.RepositoryException,
java.lang.IllegalStateException
edit(). If this operation fails,
no item will have been saved.
javax.jcr.RepositoryException - if the update operation failed
java.lang.IllegalStateException - if the state manager is not in edit mode
public void cancel()
throws java.lang.IllegalStateException
edit().
java.lang.IllegalStateException - if the state manager is not in edit mode
public NodeId clone(Path srcPath,
Path destPath)
throws javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.AccessDeniedException,
javax.jcr.version.VersionException,
javax.jcr.PathNotFoundException,
javax.jcr.ItemExistsException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException,
java.lang.IllegalStateException
srcAbsPath in to the new
location at destAbsPath. This operation is only supported:
mix:shareable (or some
derived node type)destAbsPath has not already a shareable
node in the same shared set as the node at srcPath.
srcPath - source pathdestPath - destination path
javax.jcr.nodetype.ConstraintViolationException - if the operation would violate a
node-type or other implementation-specific constraint.
javax.jcr.version.VersionException - if the parent node of destAbsPath is
versionable and checked-in, or is non-versionable but its nearest versionable ancestor is
checked-in. This exception will also be thrown if removeExisting is true,
and a UUID conflict occurs that would require the moving and/or altering of a node that is checked-in.
javax.jcr.AccessDeniedException - if the current session does not have
sufficient access rights to complete the operation.
javax.jcr.PathNotFoundException - if the node at srcAbsPath in
srcWorkspace or the parent of destAbsPath in this workspace does not exist.
javax.jcr.ItemExistsException - if a property already exists at
destAbsPath or a node already exist there, and same name
siblings are not allowed or if removeExisting is false and a
UUID conflict occurs.
javax.jcr.lock.LockException - if a lock prevents the clone.
javax.jcr.RepositoryException - if the last element of destAbsPath
has an index or if another error occurs.
java.lang.IllegalStateException
public NodeId clone(NodeState srcState,
NodeState destParentState,
Name destName)
throws javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.AccessDeniedException,
javax.jcr.version.VersionException,
javax.jcr.PathNotFoundException,
javax.jcr.ItemExistsException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException,
java.lang.IllegalStateException
clone(Path, Path) that has already determined
the affected NodeStates.
srcState - source statedestParentState - destination parent statedestName - destination name
javax.jcr.nodetype.ConstraintViolationException - if the operation would violate a
node-type or other implementation-specific constraint.
javax.jcr.version.VersionException - if the parent node of destAbsPath is
versionable and checked-in, or is non-versionable but its nearest versionable ancestor is
checked-in. This exception will also be thrown if removeExisting is true,
and a UUID conflict occurs that would require the moving and/or altering of a node that is checked-in.
javax.jcr.AccessDeniedException - if the current session does not have
sufficient access rights to complete the operation.
javax.jcr.PathNotFoundException - if the node at srcAbsPath in
srcWorkspace or the parent of destAbsPath in this workspace does not exist.
javax.jcr.ItemExistsException - if a property already exists at
destAbsPath or a node already exist there, and same name
siblings are not allowed or if removeExisting is false and a
UUID conflict occurs.
javax.jcr.lock.LockException - if a lock prevents the clone.
javax.jcr.RepositoryException - if the last element of destAbsPath
has an index or if another error occurs.
java.lang.IllegalStateExceptionclone(Path, Path)
public NodeId copy(Path srcPath,
Path destPath,
int flag)
throws javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.AccessDeniedException,
javax.jcr.version.VersionException,
javax.jcr.PathNotFoundException,
javax.jcr.ItemExistsException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
srcPath to the new location at
destPath. Returns the id of the node at its new position.
Precondition: the state manager needs to be in edit mode.
srcPath - destPath - flag - one of
COPYCLONECLONE_REMOVE_EXISTINGjavax.jcr.nodetype.ConstraintViolationException
javax.jcr.AccessDeniedException
javax.jcr.version.VersionException
javax.jcr.PathNotFoundException
javax.jcr.ItemExistsException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
public NodeId copy(Path srcPath,
ItemStateManager srcStateMgr,
HierarchyManager srcHierMgr,
AccessManager srcAccessMgr,
Path destPath,
int flag)
throws javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.AccessDeniedException,
javax.jcr.version.VersionException,
javax.jcr.PathNotFoundException,
javax.jcr.ItemExistsException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException,
java.lang.IllegalStateException
srcPath retrieved using the specified
srcStateMgr to the new location at destPath.
Returns the id of the node at its new position.
Precondition: the state manager needs to be in edit mode.
srcPath - srcStateMgr - srcHierMgr - srcAccessMgr - destPath - flag - one of
COPYCLONECLONE_REMOVE_EXISTINGjavax.jcr.nodetype.ConstraintViolationException
javax.jcr.AccessDeniedException
javax.jcr.version.VersionException
javax.jcr.PathNotFoundException
javax.jcr.ItemExistsException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
java.lang.IllegalStateException - if the state mananger is not in edit mode
public NodeId move(Path srcPath,
Path destPath)
throws javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.version.VersionException,
javax.jcr.AccessDeniedException,
javax.jcr.PathNotFoundException,
javax.jcr.ItemExistsException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException,
java.lang.IllegalStateException
srcPath to the new location at
destPath. Returns the id of the moved node.
Precondition: the state manager needs to be in edit mode.
srcPath - destPath -
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.version.VersionException
javax.jcr.AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.ItemExistsException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
java.lang.IllegalStateException - if the state manager is not in edit mode
public void removeNode(Path nodePath)
throws javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.AccessDeniedException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.ItemNotFoundException,
javax.jcr.ReferentialIntegrityException,
javax.jcr.RepositoryException,
java.lang.IllegalStateException
nodePath -
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.AccessDeniedException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.ItemNotFoundException
javax.jcr.ReferentialIntegrityException
javax.jcr.RepositoryException
java.lang.IllegalStateException
public void checkAddNode(NodeState parentState,
Name nodeName,
Name nodeTypeName,
int options)
throws javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.AccessDeniedException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.ItemNotFoundException,
javax.jcr.ItemExistsException,
javax.jcr.RepositoryException
nodeName of node type
nodeTypeName to the given parent node is allowed in the
current context.
parentState - nodeName - nodeTypeName - options - bit-wise OR'ed flags specifying the checks that should be
performed; any combination of the following constants:
CHECK_ACCESS: make sure
current session is granted read & write access on
parent nodeCHECK_LOCK: make sure
there's no foreign lock on parent nodeCHECK_VERSIONING: make sure
parent node is checked-outCHECK_CONSTRAINTS:
make sure no node type constraints would be violatedCHECK_REFERENCESjavax.jcr.nodetype.ConstraintViolationException
javax.jcr.AccessDeniedException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.ItemNotFoundException
javax.jcr.ItemExistsException
javax.jcr.RepositoryException
public void checkRemoveNode(NodeState targetState,
int options)
throws javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.AccessDeniedException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.ItemNotFoundException,
javax.jcr.ReferentialIntegrityException,
javax.jcr.RepositoryException
targetState - options - bit-wise OR'ed flags specifying the checks that should be
performed; any combination of the following constants:
CHECK_ACCESS: make sure
current session is granted read access on parent
and remove privilege on target nodeCHECK_LOCK: make sure
there's no foreign lock on parent nodeCHECK_VERSIONING: make sure
parent node is checked-outCHECK_CONSTRAINTS:
make sure no node type constraints would be violatedCHECK_REFERENCES:
make sure no references exist on target nodejavax.jcr.nodetype.ConstraintViolationException
javax.jcr.AccessDeniedException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.ItemNotFoundException
javax.jcr.ReferentialIntegrityException
javax.jcr.RepositoryException
public void checkRemoveNode(NodeState targetState,
NodeId parentId,
int options)
throws javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.AccessDeniedException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.ItemNotFoundException,
javax.jcr.ReferentialIntegrityException,
javax.jcr.RepositoryException
targetState - parentId - options - bit-wise OR'ed flags specifying the checks that should be
performed; any combination of the following constants:
CHECK_ACCESS: make sure
current session is granted read access on parent
and remove privilege on target nodeCHECK_LOCK: make sure
there's no foreign lock on parent nodeCHECK_VERSIONING: make sure
parent node is checked-outCHECK_CONSTRAINTS:
make sure no node type constraints would be violatedCHECK_REFERENCES:
make sure no references exist on target nodejavax.jcr.nodetype.ConstraintViolationException
javax.jcr.AccessDeniedException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.ItemNotFoundException
javax.jcr.ReferentialIntegrityException
javax.jcr.RepositoryException
public void verifyCanWrite(Path nodePath)
throws javax.jcr.PathNotFoundException,
javax.jcr.AccessDeniedException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
nodePath is writable. The
following conditions must hold true:
nodePath - path of node to check
javax.jcr.PathNotFoundException - if no node exists at
nodePath of the current
session is not granted read access
to the specified path
javax.jcr.AccessDeniedException - if write access to the specified
path is not allowed
javax.jcr.nodetype.ConstraintViolationException - if the node at nodePath
is protected
javax.jcr.version.VersionException - if the node at nodePath
is checked-in
javax.jcr.lock.LockException - if the node at nodePath
is locked by another session
javax.jcr.RepositoryException - if another error occurs
public void verifyCanRead(Path nodePath)
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
nodePath can be read. The
following conditions must hold true:
nodePath - path of node to check
javax.jcr.PathNotFoundException - if no node exists at
nodePath of the current
session is not granted read access
to the specified path
javax.jcr.RepositoryException - if another error occurs
public NodeDef findApplicableNodeDefinition(Name name,
Name nodeTypeName,
NodeState parentState)
throws javax.jcr.RepositoryException,
javax.jcr.nodetype.ConstraintViolationException
name - nodeTypeName - parentState -
NodeDef
javax.jcr.nodetype.ConstraintViolationException - if no applicable child node definition
could be found
javax.jcr.RepositoryException - if another error occurs
public PropDef findApplicablePropertyDefinition(Name name,
int type,
boolean multiValued,
NodeState parentState)
throws javax.jcr.RepositoryException,
javax.jcr.nodetype.ConstraintViolationException
name - type - multiValued - parentState -
PropDef
javax.jcr.nodetype.ConstraintViolationException - if no applicable property definition
could be found
javax.jcr.RepositoryException - if another error occurs
public PropDef findApplicablePropertyDefinition(Name name,
int type,
NodeState parentState)
throws javax.jcr.RepositoryException,
javax.jcr.nodetype.ConstraintViolationException
findApplicablePropertyDefinition(Name, int, boolean, NodeState)
this method does not take the multiValued flag into account in the
selection algorithm. If there more than one applicable definitions then
the following rules are applied:
name - type - parentState -
PropDef
javax.jcr.nodetype.ConstraintViolationException - if no applicable property definition
could be found
javax.jcr.RepositoryException - if another error occurs
public NodeState createNodeState(NodeState parent,
Name nodeName,
Name nodeTypeName,
Name[] mixinNames,
NodeId id)
throws javax.jcr.ItemExistsException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException,
java.lang.IllegalStateException
parent - nodeName - nodeTypeName - mixinNames - id -
javax.jcr.ItemExistsException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
java.lang.IllegalStateException - if the state mananger is not in edit mode
public NodeState createNodeState(NodeState parent,
Name nodeName,
Name nodeTypeName,
Name[] mixinNames,
NodeId id,
NodeDef def)
throws javax.jcr.ItemExistsException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException,
java.lang.IllegalStateException
parent - nodeName - nodeTypeName - mixinNames - id - def -
javax.jcr.ItemExistsException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
java.lang.IllegalStateException
public PropertyState createPropertyState(NodeState parent,
Name propName,
int type,
int numValues)
throws javax.jcr.ItemExistsException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException,
java.lang.IllegalStateException
parent - propName - type - numValues -
javax.jcr.ItemExistsException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
java.lang.IllegalStateException - if the state mananger is not in edit mode
public PropertyState createPropertyState(NodeState parent,
Name propName,
int type,
PropDef def)
throws javax.jcr.ItemExistsException,
javax.jcr.RepositoryException
parent - propName - type - def -
javax.jcr.ItemExistsException
javax.jcr.RepositoryException
public void removeNodeState(NodeState target)
throws javax.jcr.RepositoryException
target -
javax.jcr.RepositoryException - if an error occurs
public NodeState getNodeState(Path nodePath)
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
nodePath -
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public NodeState getNodeState(NodeId id)
throws javax.jcr.ItemNotFoundException,
javax.jcr.RepositoryException
id -
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
public PropertyState getPropertyState(PropertyId id)
throws javax.jcr.ItemNotFoundException,
javax.jcr.RepositoryException
id -
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
public ItemState getItemState(ItemId id)
throws javax.jcr.ItemNotFoundException,
javax.jcr.RepositoryException
id -
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
protected void verifyCheckedOut(Path nodePath)
throws javax.jcr.PathNotFoundException,
javax.jcr.version.VersionException,
javax.jcr.RepositoryException
nodePath is checked-out; throws a
VersionException if that's not the case.
A node is considered checked-out if it is versionable and
checked-out, or is non-versionable but its nearest versionable ancestor
is checked-out, or is non-versionable and there are no versionable
ancestors.
nodePath -
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.RepositoryException
protected void verifyUnlocked(Path nodePath)
throws javax.jcr.lock.LockException,
javax.jcr.RepositoryException
nodePath is not locked by
somebody else than the current session.
nodePath - path of node to check
javax.jcr.PathNotFoundException
javax.jcr.lock.LockException - if write access to the specified path is not allowed
javax.jcr.RepositoryException - if another error occurs
protected void verifyNotProtected(Path nodePath)
throws javax.jcr.PathNotFoundException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
nodePath is not protected.
nodePath - path of node to check
javax.jcr.PathNotFoundException - if no node exists at nodePath
javax.jcr.nodetype.ConstraintViolationException - if write access to the specified
path is not allowed
javax.jcr.RepositoryException - if another error occurs
protected NodeState getNodeState(ItemStateManager srcStateMgr,
HierarchyManager srcHierMgr,
Path nodePath)
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
nodePath using the given
item state manager.
Note that access rights are not enforced!
srcStateMgr - srcHierMgr - nodePath -
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
protected ItemState getItemState(ItemStateManager srcStateMgr,
ItemId id)
throws javax.jcr.ItemNotFoundException,
javax.jcr.RepositoryException
srcStateMgr - id -
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||