public class JCRNodeDecorator extends Object implements JCRNodeWrapper
JCRNodeWrapper.NodeNamingConflictResolutionStrategy| Modifier and Type | Field and Description |
|---|---|
protected JCRNodeWrapper |
node |
EMPTY| Constructor and Description |
|---|
JCRNodeDecorator(JCRNodeWrapper node) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(javax.jcr.ItemVisitor itemVisitor) |
void |
addMixin(String s) |
JCRNodeWrapper |
addNode(String s) |
JCRNodeWrapper |
addNode(String s,
String s1) |
JCRNodeWrapper |
addNode(String relPath,
String primaryNodeTypeName,
String identifier,
Calendar created,
String createdBy,
Calendar lastModified,
String lastModifiedBy) |
boolean |
canAddMixin(String s) |
void |
cancelMerge(javax.jcr.version.Version version) |
boolean |
canMarkForDeletion()
Checks if this node can be marked for deletion.
|
boolean |
changeRoles(String principalKey,
Map<String,String> perm)
Change the permissions of a principal on the node.
|
boolean |
checkI18nAndMandatoryPropertiesForLocale(Locale locale) |
javax.jcr.version.Version |
checkin() |
boolean |
checkLanguageValidity(Set<String> languages) |
void |
checkLock() |
void |
checkout() |
void |
checkpoint()
Performs a checkin and a checkout.
|
boolean |
checkValidity() |
void |
clearAllLocks() |
JCRNodeWrapper |
clone(JCRNodeWrapper sharedNode,
String name) |
boolean |
copy(JCRNodeWrapper dest,
String name,
boolean allowsExternalSharedNodes)
Copy the current file node to another destination node supplying it given name
|
boolean |
copy(JCRNodeWrapper dest,
String name,
boolean allowsExternalSharedNodes,
JCRNodeWrapper.NodeNamingConflictResolutionStrategy namingConflictResolutionStrategy)
Copy the current file node to another destination node supplying it given name
|
boolean |
copy(JCRNodeWrapper dest,
String name,
boolean allowsExternalSharedNodes,
List<String> ignoreNodeTypes,
int maxBatch) |
boolean |
copy(JCRNodeWrapper dest,
String name,
boolean allowsExternalSharedNodes,
Map<String,List<String>> references) |
boolean |
copy(JCRNodeWrapper dest,
String name,
boolean allowsExternalSharedNodes,
Map<String,List<String>> references,
List<String> ignoreNodeTypes,
int maxBatch,
org.apache.commons.lang.mutable.MutableInt batch) |
boolean |
copy(JCRNodeWrapper dest,
String name,
boolean allowsExternalSharedNodes,
Map<String,List<String>> references,
List<String> ignoreNodeTypes,
int maxBatch,
org.apache.commons.lang.mutable.MutableInt batch,
JCRNodeWrapper.NodeNamingConflictResolutionStrategy namingConflictResolutionStrategy) |
boolean |
copy(String dest)
Copy the current file node to another destination
|
boolean |
copy(String dest,
String name)
Copy the current file node to another destination supplying it given name
|
boolean |
copy(String dest,
String name,
JCRNodeWrapper.NodeNamingConflictResolutionStrategy namingConflictResolutionStrategy)
Copy the current file node to another destination supplying it given name
|
void |
copyProperties(JCRNodeWrapper destinationNode,
Map<String,List<String>> references) |
JCRNodeWrapper |
createCollection(String name)
Create a sub folder of type jnt:folder
|
JCRPropertyWrapper |
decorateProperty(javax.jcr.Property property) |
boolean |
denyRoles(String principalKey,
Set<String> roles)
Deny roles to a principal on this node.
|
void |
doneMerge(javax.jcr.version.Version version) |
boolean |
equals(Object o) |
void |
followLifecycleTransition(String transition) |
String |
getAbsoluteUrl(javax.servlet.ServletRequest request)
Get the absolute file content url
|
String |
getAbsoluteWebdavUrl(javax.servlet.http.HttpServletRequest request)
Get the absolute webdav url
|
javax.jcr.security.AccessControlManager |
getAccessControlManager() |
Map<String,List<String[]>> |
getAclEntries()
get all the ACL entries including inherited ones
|
boolean |
getAclInheritanceBreak()
Check if acl inheritance is broken on this node or not
|
Map<String,Map<String,String>> |
getActualAclEntries()
get the active ACL entries
|
String[] |
getAllowedLifecycleTransistions() |
JCRItemWrapper |
getAncestor(int i) |
List<JCRItemWrapper> |
getAncestors()
Returns a list of all the ancestor of this item.
|
ExtendedNodeDefinition |
getApplicableChildNodeDefinition(String childName,
String nodeType)
Get the child node definition object applicable to the given child name
|
ExtendedPropertyDefinition |
getApplicablePropertyDefinition(String propertyName)
Get the property definition object applicable to the given property name
|
ExtendedPropertyDefinition |
getApplicablePropertyDefinition(String propertyName,
int requiredPropertyType,
boolean isMultiple)
Get the property definition object applicable to the given property name
|
Map<String,List<JCRNodeWrapper>> |
getAvailableRoles()
Return the list of permission applicable to this node.
|
javax.jcr.version.Version |
getBaseVersion() |
String |
getCanonicalPath() |
Date |
getContentLastModifiedAsDate()
Returns the last content modification date as
Date object |
Date |
getContentLastPublishedAsDate()
Returns the last content published date as
Date object |
String |
getCorrespondingNodePath(String s) |
Date |
getCreationDateAsDate()
Returns the node creation date as
Date object |
String |
getCreationUser()
Returns the user name who created this node
|
JCRNodeWrapper |
getDecoratedNode() |
ExtendedNodeDefinition |
getDefinition() |
int |
getDepth() |
String |
getDisplayableName() |
List<Locale> |
getExistingLocales()
Retrieves the list of locales available on a node.
|
JCRFileContent |
getFileContent()
The
JCRFileContent object of the current file node |
javax.jcr.Node |
getI18N(Locale locale)
Get the translation node
Use only in un-localized session
|
javax.jcr.Node |
getI18N(Locale locale,
boolean fallback)
Get the translation node
Use only in un-localized session
|
javax.jcr.NodeIterator |
getI18Ns()
Returns available translation sub-nodes of this node.
|
String |
getIdentifier() |
int |
getIndex() |
JCRStoreProvider |
getJCRProvider()
The
JCRStoreProvider which returned the current node. |
String |
getLanguage()
Returns the language code of this node
|
Date |
getLastModifiedAsDate()
Returns the last node modification date as
Date object |
Date |
getLastPublishedAsDate()
Returns the last node published date as
Date object |
List<VersionInfo> |
getLinearVersionInfos()
Retrieves the list of versions, ignoring internal version created in the publication process.
|
javax.jcr.lock.Lock |
getLock() |
List<Locale> |
getLockedLocales() |
Map<String,List<String>> |
getLockInfos() |
String |
getLockOwner()
Get the name of the user who locked the node
|
ExtendedNodeType[] |
getMixinNodeTypes() |
String |
getModificationUser()
Returns the user name who last modified this node
|
String |
getName() |
JCRNodeWrapper |
getNode(String s) |
JCRNodeIteratorWrapper |
getNodes() |
JCRNodeIteratorWrapper |
getNodes(String s) |
JCRNodeIteratorWrapper |
getNodes(String[] nameGlobs) |
List<String> |
getNodeTypes()
Returns a list holding the primary node type and all mixin node types for this node
|
javax.jcr.Node |
getOrCreateI18N(Locale locale)
Get or create the translation node
Use only in un-localized session
|
javax.jcr.Node |
getOrCreateI18N(Locale locale,
Calendar created,
String createdBy,
Calendar lastModified,
String lastModifiedBy) |
JCRNodeWrapper |
getParent() |
String |
getPath() |
Set<String> |
getPermissions() |
BitSet |
getPermissionsAsBitSet() |
JCRPlaceholderNode |
getPlaceholder()
Return the
JCRPlaceholderNode based on the current node |
JCRItemWrapper |
getPrimaryItem() |
ExtendedNodeType |
getPrimaryNodeType() |
String |
getPrimaryNodeTypeName()
Returns the name of the primary node type in effect for this node.
|
javax.jcr.PropertyIterator |
getProperties() |
javax.jcr.PropertyIterator |
getProperties(String s) |
javax.jcr.PropertyIterator |
getProperties(String[] strings) |
Map<String,String> |
getPropertiesAsString()
Returns a map of all property names of this node accessible through the current
Session with the value as String. |
JCRPropertyWrapper |
getProperty(String s) |
String |
getPropertyAsString(String name)
Returns the property value as
String at name relative to this
node. |
JCRStoreProvider |
getProvider()
The
JCRStoreProvider which returned the current node. |
String |
getPublicationUser()
Returns the user name who last published this node
|
javax.jcr.Node |
getRealNode()
Gets the real
Node wrapped by this JCRNodeWrapper
This gives a direct access to the underlying implementation node, all operations done here will bypass the
JCRSessionWrapper / JCRNodeWrapper layer. |
List<ExtendedPropertyDefinition> |
getReferenceProperties() |
javax.jcr.PropertyIterator |
getReferences() |
javax.jcr.PropertyIterator |
getReferences(String name) |
JCRSiteNode |
getResolveSite() |
JCRSessionWrapper |
getSession() |
JCRNodeIteratorWrapper |
getSharedSet() |
List<String> |
getThumbnails()
Get the list of all available thumbnails.
|
String |
getThumbnailUrl(String name)
Get the file content url for a specific thumbnail
|
Map<String,String> |
getThumbnailUrls()
Get a map of all available thumbnails and its URLs.
|
String |
getUnescapedName()
Returns an unescaped node local name for displaying.
|
String |
getUrl()
Get the file content url
|
JCRUserNode |
getUser()
Obtains the
JahiaUser object of the current Session, which returned the node |
String |
getUUID() |
javax.jcr.version.VersionHistory |
getVersionHistory() |
List<VersionInfo> |
getVersionInfos()
Retrieves the list of versions, in all workspaces, ignoring internal version created in the publication process.
|
List<String> |
getVersions()
Gets a list of all versions of this node
|
List<javax.jcr.version.Version> |
getVersionsAsVersion()
Gets a list of all versions for this node as Version object
|
javax.jcr.PropertyIterator |
getWeakReferences() |
javax.jcr.PropertyIterator |
getWeakReferences(String name) |
String |
getWebdavUrl()
Get the webdav url
|
boolean |
grantRoles(String principalKey,
Set<String> roles)
Grant roles to a principal on this node.
|
int |
hashCode() |
boolean |
hasI18N(Locale locale)
Checks if the translation node exists
Use only in un-localized session
|
boolean |
hasI18N(Locale locale,
boolean fallback)
Checks if the translation node exists
Use only in un-localized session
|
boolean |
hasNode(String s) |
boolean |
hasNodes() |
boolean |
hasPermission(String perm)
Checks if the current user has a permission or not
|
boolean |
hasProperties() |
boolean |
hasProperty(String s) |
boolean |
hasTranslations() |
boolean |
holdsLock() |
boolean |
internalCopy(JCRNodeWrapper dest,
String name,
boolean allowsExternalSharedNodes,
Map<String,List<String>> references,
List<String> ignoreNodeTypes,
int maxBatch,
org.apache.commons.lang.mutable.MutableInt batch,
boolean isTopObject) |
boolean |
isCheckedOut() |
boolean |
isCollection()
Checks whether the current node is a collection node
|
boolean |
isFile()
Checks whether the current node is a file node
|
boolean |
isLockable()
Check whether the current node is of mixin type mix:lockable
|
boolean |
isLocked() |
boolean |
isMarkedForDeletion()
Returns true if this node is marked for deletion.
|
boolean |
isModified() |
boolean |
isNew() |
boolean |
isNode() |
boolean |
isNodeType(String s) |
boolean |
isPortlet()
Checks whether the current node is a portlet node
|
boolean |
isSame(javax.jcr.Item item) |
boolean |
isVersioned()
Checks whether the current file node has a mix:versionable mixin type applied
|
javax.jcr.lock.Lock |
lock(boolean b,
boolean b1) |
boolean |
lockAndStoreToken(String type)
Get a lock on this node and store the lock token
|
boolean |
lockAndStoreToken(String type,
String userID) |
void |
markForDeletion(String comment)
Marks this node and all the sub-nodes for deletion.
|
JCRNodeIteratorWrapper |
merge(String s,
boolean b) |
void |
orderBefore(String s,
String s1) |
void |
refresh(boolean b) |
void |
remove() |
void |
removeMixin(String s) |
void |
removeShare() |
void |
removeSharedSet() |
boolean |
rename(String newName)
Rename the current file node
|
void |
restore(String s,
boolean b) |
void |
restore(javax.jcr.version.Version version,
boolean b) |
void |
restore(javax.jcr.version.Version version,
String s,
boolean b) |
void |
restoreByLabel(String s,
boolean b) |
boolean |
revokeAllRoles()
Revoke all permissions for all users
|
boolean |
revokeRolesForPrincipal(String principalKey)
Revoke all permissions for the specified principal
|
void |
save() |
void |
saveSession()
Validates all pending changes currently recorded in this
Session that apply to this Item
or any of its descendants (that is, the subtree rooted at this Item). |
boolean |
setAclInheritanceBreak(boolean breakAclInheritance)
Set acl break inheritance - if true, no ACLs will be inherited from parent nodes.
|
void |
setPrimaryType(String nodeTypeName) |
JCRPropertyWrapper |
setProperty(String name,
BigDecimal value) |
JCRPropertyWrapper |
setProperty(String name,
javax.jcr.Binary value) |
JCRPropertyWrapper |
setProperty(String s,
boolean b) |
JCRPropertyWrapper |
setProperty(String s,
Calendar calendar) |
JCRPropertyWrapper |
setProperty(String s,
double v) |
JCRPropertyWrapper |
setProperty(String s,
InputStream inputStream) |
JCRPropertyWrapper |
setProperty(String s,
long l) |
JCRPropertyWrapper |
setProperty(String s,
javax.jcr.Node node) |
JCRPropertyWrapper |
setProperty(String s,
String s1) |
JCRPropertyWrapper |
setProperty(String s,
String[] strings) |
JCRPropertyWrapper |
setProperty(String s,
String[] strings,
int i) |
JCRPropertyWrapper |
setProperty(String s,
String s1,
int i) |
JCRPropertyWrapper |
setProperty(String namespace,
String name,
String value)
Adds the namespace prefix to the specified property name and sets the property to the specified value.
|
JCRPropertyWrapper |
setProperty(String s,
javax.jcr.Value value) |
JCRPropertyWrapper |
setProperty(String s,
javax.jcr.Value[] values) |
JCRPropertyWrapper |
setProperty(String s,
javax.jcr.Value[] values,
int i) |
JCRPropertyWrapper |
setProperty(String s,
javax.jcr.Value value,
int i) |
String |
toString() |
void |
unlock() |
void |
unlock(String type) |
void |
unlock(String type,
String userID) |
void |
unmarkForDeletion()
Unmarks this node and all the sub-nodes for deletion.
|
void |
update(String s) |
JCRNodeWrapper |
uploadFile(String name,
InputStream is,
String contentType)
Upload a new file under this node
|
void |
versionFile()
Adds the mix:versionable mixin type to a file node
|
protected JCRNodeWrapper node
public JCRNodeDecorator(JCRNodeWrapper node)
public javax.jcr.Node getRealNode()
JCRNodeWrapperNode wrapped by this JCRNodeWrapper
This gives a direct access to the underlying implementation node, all operations done here will bypass the
JCRSessionWrapper / JCRNodeWrapper layer. Among other things:
getRealNode in interface JCRNodeWrapperNodepublic JCRUserNode getUser()
JCRNodeWrapperJahiaUser object of the current Session, which returned the nodegetUser in interface JCRNodeWrapperSessionpublic boolean hasTranslations()
throws javax.jcr.RepositoryException
hasTranslations in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic boolean checkI18nAndMandatoryPropertiesForLocale(Locale locale) throws javax.jcr.RepositoryException
checkI18nAndMandatoryPropertiesForLocale in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic Map<String,List<String[]>> getAclEntries()
JCRNodeWrappergetAclEntries in interface JCRNodeWrapperpublic Map<String,Map<String,String>> getActualAclEntries()
JCRNodeWrappergetActualAclEntries in interface JCRNodeWrapperpublic Map<String,List<JCRNodeWrapper>> getAvailableRoles() throws javax.jcr.RepositoryException
JCRNodeWrappergetAvailableRoles in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic boolean hasPermission(String perm)
JCRNodeWrapperhasPermission in interface JCRNodeWrapperperm - The permission to checkpublic Set<String> getPermissions()
getPermissions in interface JCRNodeWrapperpublic BitSet getPermissionsAsBitSet()
getPermissionsAsBitSet in interface JCRNodeWrapperpublic boolean grantRoles(String principalKey, Set<String> roles) throws javax.jcr.RepositoryException
JCRNodeWrappergrantRoles in interface JCRNodeWrapperprincipalKey - the name of a principal with a prefix, such as "u:" for users, "g:" for groupsroles - the names of roles that this principal should be granted.javax.jcr.RepositoryException - in case of JCR-related errorspublic boolean denyRoles(String principalKey, Set<String> roles) throws javax.jcr.RepositoryException
JCRNodeWrapperdenyRoles in interface JCRNodeWrapperprincipalKey - the name of a principal with a prefix, such as "u:" for users, "g:" for groupsroles - the names of roles that this principal should be denied.javax.jcr.RepositoryException - in case of JCR-related errorspublic boolean changeRoles(String principalKey, Map<String,String> perm) throws javax.jcr.RepositoryException
JCRNodeWrapperchangeRoles in interface JCRNodeWrapperprincipalKey - the name of a principal with a prefix, such as "u:" for users, "g:" for groupsperm - A map with the name of the permission, and "GRANT" or "DENY" as a valuejavax.jcr.RepositoryExceptionpublic boolean revokeRolesForPrincipal(String principalKey) throws javax.jcr.RepositoryException
JCRNodeWrapperrevokeRolesForPrincipal in interface JCRNodeWrapperprincipalKey - the name of a principal with a prefix, such as "u:" for users, "g:" for groupsjavax.jcr.RepositoryExceptionpublic boolean revokeAllRoles()
throws javax.jcr.RepositoryException
JCRNodeWrapperrevokeAllRoles in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic boolean getAclInheritanceBreak()
throws javax.jcr.RepositoryException
JCRNodeWrappergetAclInheritanceBreak in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic boolean setAclInheritanceBreak(boolean breakAclInheritance)
throws javax.jcr.RepositoryException
JCRNodeWrappersetAclInheritanceBreak in interface JCRNodeWrapperbreakAclInheritance - if true, no ACLs will be inherited from parent nodestrue if action was successful, or false if notjavax.jcr.RepositoryExceptionpublic JCRNodeWrapper uploadFile(String name, InputStream is, String contentType) throws javax.jcr.RepositoryException
JCRNodeWrapperuploadFile in interface JCRNodeWrappername - Name of the file nodeis - The input stream with the file's contentcontentType - The MIME content typejavax.jcr.RepositoryException - in case of JCR-related errorspublic JCRNodeWrapper createCollection(String name) throws javax.jcr.RepositoryException
JCRNodeWrappercreateCollection in interface JCRNodeWrappername - Name of the folder to createjavax.jcr.RepositoryException - in case of JCR-related errorsJCRNodeWrapper.addNode(String)public String getAbsoluteUrl(javax.servlet.ServletRequest request)
JCRNodeWrappergetAbsoluteUrl in interface JCRNodeWrapperrequest - the current request.public String getUrl()
JCRNodeWrappergetUrl in interface JCRNodeWrapperpublic String getAbsoluteWebdavUrl(javax.servlet.http.HttpServletRequest request)
JCRNodeWrappergetAbsoluteWebdavUrl in interface JCRNodeWrapperpublic String getWebdavUrl()
JCRNodeWrappergetWebdavUrl in interface JCRNodeWrapperpublic List<String> getThumbnails()
JCRNodeWrappergetThumbnails in interface JCRNodeWrapperpublic String getThumbnailUrl(String name)
JCRNodeWrappergetThumbnailUrl in interface JCRNodeWrappername - The thumbnail namepublic Map<String,String> getThumbnailUrls()
JCRNodeWrappergetThumbnailUrls in interface JCRNodeWrapperpublic Map<String,String> getPropertiesAsString() throws javax.jcr.RepositoryException
JCRNodeWrapperSession with the value as String.getPropertiesAsString in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic String getPrimaryNodeTypeName() throws javax.jcr.RepositoryException
JCRNodeWrappergetPrimaryNodeTypeName in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic List<String> getNodeTypes() throws javax.jcr.RepositoryException
JCRNodeWrappergetNodeTypes in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean isCollection()
JCRNodeWrapperisCollection in interface JCRNodeWrapperpublic boolean isFile()
JCRNodeWrapperisFile in interface JCRNodeWrapperpublic boolean isPortlet()
JCRNodeWrapperisPortlet in interface JCRNodeWrapperpublic Date getLastModifiedAsDate()
JCRNodeWrapperDate objectgetLastModifiedAsDate in interface JCRNodeWrapperDate objectpublic Date getLastPublishedAsDate()
JCRNodeWrapperDate objectgetLastPublishedAsDate in interface JCRNodeWrapperDate objectpublic Date getContentLastModifiedAsDate()
JCRNodeWrapperDate objectgetContentLastModifiedAsDate in interface JCRNodeWrapperDate objectpublic Date getContentLastPublishedAsDate()
JCRNodeWrapperDate objectgetContentLastPublishedAsDate in interface JCRNodeWrapperDate objectpublic Date getCreationDateAsDate()
JCRNodeWrapperDate objectgetCreationDateAsDate in interface JCRNodeWrapperDate objectpublic String getCreationUser()
JCRNodeWrappergetCreationUser in interface JCRNodeWrapperpublic String getModificationUser()
JCRNodeWrappergetModificationUser in interface JCRNodeWrapperpublic String getPublicationUser()
JCRNodeWrappergetPublicationUser in interface JCRNodeWrapperpublic String getLanguage()
JCRNodeWrappergetLanguage in interface JCRNodeWrapperpublic String getPropertyAsString(String name)
JCRNodeWrapperString at name relative to this
node.getPropertyAsString in interface JCRNodeWrappername - The relative path of the property to retrieve.Stringpublic JCRPropertyWrapper setProperty(String namespace, String name, String value) throws javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface JCRNodeWrappername - The name of a property of this nodevalue - The value to assignedProperty object wrapped in JCRPropertywWrapperjavax.jcr.RepositoryException - If an error occurs.JCRNodeWrapper.setProperty(String, String)public List<JCRItemWrapper> getAncestors() throws javax.jcr.RepositoryException
JCRNodeWrappergetAncestors in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean rename(String newName) throws javax.jcr.RepositoryException
JCRNodeWrapperrename in interface JCRNodeWrappernewName - The new namejavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean copy(String dest) throws javax.jcr.RepositoryException
JCRNodeWrappercopy in interface JCRNodeWrapperdest - The destination name for the file nodejavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean copy(String dest, String name) throws javax.jcr.RepositoryException
JCRNodeWrappercopy in interface JCRNodeWrapperdest - The destination name for the file nodename - The new name of the copied file nodejavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean copy(String dest, String name, JCRNodeWrapper.NodeNamingConflictResolutionStrategy namingConflictResolutionStrategy) throws javax.jcr.RepositoryException
JCRNodeWrappercopy in interface JCRNodeWrapperdest - The destination name for the file nodename - The new name of the copied file nodenamingConflictResolutionStrategy - The way to deal with possible node naming conflict when node with given name already exists while same sibling names are not allowedjavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean copy(JCRNodeWrapper dest, String name, boolean allowsExternalSharedNodes) throws javax.jcr.RepositoryException
JCRNodeWrappercopy in interface JCRNodeWrapperdest - The destination nodename - The new name of the copied file nodejavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean copy(JCRNodeWrapper dest, String name, boolean allowsExternalSharedNodes, JCRNodeWrapper.NodeNamingConflictResolutionStrategy namingConflictResolutionStrategy) throws javax.jcr.RepositoryException
JCRNodeWrappercopy in interface JCRNodeWrapperdest - The destination nodename - The new name of the copied file nodenamingConflictResolutionStrategy - The way to deal with possible node naming conflict when node with given name already exists while same sibling names are not allowedjavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean copy(JCRNodeWrapper dest, String name, boolean allowsExternalSharedNodes, Map<String,List<String>> references) throws javax.jcr.RepositoryException
copy in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic boolean copy(JCRNodeWrapper dest, String name, boolean allowsExternalSharedNodes, List<String> ignoreNodeTypes, int maxBatch) throws javax.jcr.RepositoryException
copy in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic boolean copy(JCRNodeWrapper dest, String name, boolean allowsExternalSharedNodes, Map<String,List<String>> references, List<String> ignoreNodeTypes, int maxBatch, org.apache.commons.lang.mutable.MutableInt batch) throws javax.jcr.RepositoryException
copy in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic boolean copy(JCRNodeWrapper dest, String name, boolean allowsExternalSharedNodes, Map<String,List<String>> references, List<String> ignoreNodeTypes, int maxBatch, org.apache.commons.lang.mutable.MutableInt batch, JCRNodeWrapper.NodeNamingConflictResolutionStrategy namingConflictResolutionStrategy) throws javax.jcr.RepositoryException
copy in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic boolean internalCopy(JCRNodeWrapper dest, String name, boolean allowsExternalSharedNodes, Map<String,List<String>> references, List<String> ignoreNodeTypes, int maxBatch, org.apache.commons.lang.mutable.MutableInt batch, boolean isTopObject) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void copyProperties(JCRNodeWrapper destinationNode, Map<String,List<String>> references) throws javax.jcr.RepositoryException
copyProperties in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic boolean lockAndStoreToken(String type, String userID) throws javax.jcr.RepositoryException
lockAndStoreToken in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic boolean lockAndStoreToken(String type) throws javax.jcr.RepositoryException
JCRNodeWrapperlockAndStoreToken in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionJCRNodeWrapper.lock(boolean, boolean)public String getLockOwner() throws javax.jcr.RepositoryException
JCRNodeWrappergetLockOwner in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic Map<String,List<String>> getLockInfos() throws javax.jcr.RepositoryException
getLockInfos in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic void versionFile()
JCRNodeWrapperversionFile in interface JCRNodeWrapperpublic boolean isVersioned()
JCRNodeWrapperisVersioned in interface JCRNodeWrapperpublic void checkpoint()
JCRNodeWrappercheckpoint in interface JCRNodeWrapperNode.checkin(),
Node.checkout()public List<String> getVersions()
JCRNodeWrappergetVersions in interface JCRNodeWrapperNode.getVersionHistory()public JCRStoreProvider getJCRProvider()
JCRNodeWrapperJCRStoreProvider which returned the current node.getJCRProvider in interface JCRNodeWrapperJCRStoreProvider for the current nodepublic JCRStoreProvider getProvider()
JCRNodeWrapperJCRStoreProvider which returned the current node.getProvider in interface JCRNodeWrapperJCRStoreProvider for the current nodepublic JCRFileContent getFileContent()
JCRNodeWrapperJCRFileContent object of the current file nodegetFileContent in interface JCRNodeWrapperJCRFileContent object of the current file nodepublic ExtendedPropertyDefinition getApplicablePropertyDefinition(String propertyName) throws javax.jcr.RepositoryException
JCRNodeWrappergetApplicablePropertyDefinition in interface JCRNodeWrapperpropertyName - the name of the property to find the corresponding definitionExtendedPropertyDefinition for the given propertyjavax.jcr.RepositoryException - in case of JCR-related errorspublic ExtendedPropertyDefinition getApplicablePropertyDefinition(String propertyName, int requiredPropertyType, boolean isMultiple) throws javax.jcr.RepositoryException
JCRNodeWrappergetApplicablePropertyDefinition in interface JCRNodeWrapperpropertyName - the name of the property to find the corresponding definitionrequiredPropertyType - the type of the property to find the corresponding definitionisMultiple - is the property multipleExtendedPropertyDefinition for the given propertyjavax.jcr.RepositoryException - in case of JCR-related errorspublic List<ExtendedPropertyDefinition> getReferenceProperties() throws javax.jcr.RepositoryException
getReferenceProperties in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic ExtendedNodeDefinition getApplicableChildNodeDefinition(String childName, String nodeType) throws javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappergetApplicableChildNodeDefinition in interface JCRNodeWrapperchildName - the name of the property to find the corresponding definitionExtendedPropertyDefinition for the given propertyjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryException - in case of JCR-related errorspublic JCRNodeWrapper addNode(String s) throws javax.jcr.ItemExistsException, javax.jcr.PathNotFoundException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
JCRNodeWrapperaddNode in interface javax.jcr.NodeaddNode in interface JCRNodeWrapperjavax.jcr.ItemExistsExceptionjavax.jcr.PathNotFoundExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionpublic JCRNodeWrapper addNode(String s, String s1) 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
addNode in interface javax.jcr.NodeaddNode in interface JCRNodeWrapperjavax.jcr.ItemExistsExceptionjavax.jcr.PathNotFoundExceptionjavax.jcr.nodetype.NoSuchNodeTypeExceptionjavax.jcr.lock.LockExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionNode.addNode(String, String)public JCRNodeWrapper addNode(String relPath, String primaryNodeTypeName, String identifier, Calendar created, String createdBy, Calendar lastModified, String lastModifiedBy) 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
addNode in interface JCRNodeWrapperjavax.jcr.ItemExistsExceptionjavax.jcr.PathNotFoundExceptionjavax.jcr.nodetype.NoSuchNodeTypeExceptionjavax.jcr.lock.LockExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionNode.addNode(String, String)public JCRPlaceholderNode getPlaceholder() throws javax.jcr.RepositoryException
JCRNodeWrapperJCRPlaceholderNode based on the current nodegetPlaceholder in interface JCRNodeWrapperJCRPlaceholderNode based on the current nodejavax.jcr.RepositoryException - in case of JCR-related errorspublic void orderBefore(String s, String s1) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.ItemNotFoundException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
orderBefore in interface javax.jcr.Nodejavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.ItemNotFoundExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String s, javax.jcr.Value value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String s, javax.jcr.Value value, int i) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapper set, or null
if this method was used to remove a property (by setting its value to null).javax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String s, javax.jcr.Value[] values) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String s, javax.jcr.Value[] values, int i) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String s, String[] strings) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String s, String[] strings, int i) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String s, String s1) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String s, String s1, int i) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapper set, or null
if this method was used to remove a property (by setting its value to null).javax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String s, InputStream inputStream) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper 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
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String s, boolean b) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String s, double v) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String name, BigDecimal value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String s, long l) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String s, Calendar calendar) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper setProperty(String s, javax.jcr.Node node) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
JCRNodeWrappersetProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic JCRNodeWrapper getNode(String s) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
JCRNodeWrappergetNode in interface javax.jcr.NodegetNode in interface JCRNodeWrapperrelPath.javax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionpublic JCRNodeIteratorWrapper getNodes() throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.NodegetNodes in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic JCRNodeIteratorWrapper getNodes(String s) throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.NodegetNodes in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic JCRNodeIteratorWrapper getNodes(String[] nameGlobs) throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.NodegetNodes in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic JCRPropertyWrapper getProperty(String s) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
JCRNodeWrappergetProperty in interface javax.jcr.NodegetProperty in interface JCRNodeWrapperrelPath.javax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getProperties()
throws javax.jcr.RepositoryException
getProperties in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getProperties(String s) throws javax.jcr.RepositoryException
getProperties in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getProperties(String[] strings) throws javax.jcr.RepositoryException
getProperties in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic JCRItemWrapper getPrimaryItem() throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
JCRNodeWrappergetPrimaryItem in interface javax.jcr.NodegetPrimaryItem in interface JCRNodeWrapperjavax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionpublic String getUUID() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
getUUID in interface javax.jcr.Nodejavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.RepositoryExceptionpublic String getIdentifier() throws javax.jcr.RepositoryException
getIdentifier in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic int getIndex()
throws javax.jcr.RepositoryException
getIndex in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getReferences()
throws javax.jcr.RepositoryException
getReferences in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getReferences(String name) throws javax.jcr.RepositoryException
getReferences in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getWeakReferences()
throws javax.jcr.RepositoryException
getWeakReferences in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic javax.jcr.PropertyIterator getWeakReferences(String name) throws javax.jcr.RepositoryException
getWeakReferences in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean hasNode(String s) throws javax.jcr.RepositoryException
hasNode in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean hasProperty(String s) throws javax.jcr.RepositoryException
hasProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean hasNodes()
throws javax.jcr.RepositoryException
hasNodes in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean hasProperties()
throws javax.jcr.RepositoryException
hasProperties in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic ExtendedNodeType getPrimaryNodeType() throws javax.jcr.RepositoryException
JCRNodeWrappergetPrimaryNodeType in interface javax.jcr.NodegetPrimaryNodeType in interface JCRNodeWrapperExtendedNodeType object.javax.jcr.RepositoryExceptionpublic ExtendedNodeType[] getMixinNodeTypes() throws javax.jcr.RepositoryException
JCRNodeWrappergetMixinNodeTypes in interface javax.jcr.NodegetMixinNodeTypes in interface JCRNodeWrapperExtendedNodeType objects.javax.jcr.RepositoryExceptionpublic boolean isNodeType(String s) throws javax.jcr.RepositoryException
isNodeType in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void setPrimaryType(String nodeTypeName) throws javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
setPrimaryType in interface javax.jcr.Nodejavax.jcr.nodetype.NoSuchNodeTypeExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionpublic void addMixin(String s) throws javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
addMixin in interface javax.jcr.Nodejavax.jcr.nodetype.NoSuchNodeTypeExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionpublic void removeMixin(String s) throws javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
removeMixin in interface javax.jcr.Nodejavax.jcr.nodetype.NoSuchNodeTypeExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionpublic boolean canAddMixin(String s) throws javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.RepositoryException
canAddMixin in interface javax.jcr.Nodejavax.jcr.nodetype.NoSuchNodeTypeExceptionjavax.jcr.RepositoryExceptionpublic ExtendedNodeDefinition getDefinition() throws javax.jcr.RepositoryException
JCRNodeWrappergetDefinition in interface javax.jcr.NodegetDefinition in interface JCRNodeWrapperExtendedNodeDefinition object.javax.jcr.RepositoryExceptionpublic javax.jcr.version.Version checkin()
throws javax.jcr.version.VersionException,
javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.InvalidItemStateException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
checkin in interface javax.jcr.Nodejavax.jcr.version.VersionExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionpublic void checkout()
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
checkout in interface javax.jcr.Nodejavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionpublic void doneMerge(javax.jcr.version.Version version)
throws javax.jcr.version.VersionException,
javax.jcr.InvalidItemStateException,
javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.RepositoryException
doneMerge in interface javax.jcr.Nodejavax.jcr.version.VersionExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.RepositoryExceptionpublic void cancelMerge(javax.jcr.version.Version version)
throws javax.jcr.version.VersionException,
javax.jcr.InvalidItemStateException,
javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.RepositoryException
cancelMerge in interface javax.jcr.Nodejavax.jcr.version.VersionExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.RepositoryExceptionpublic void update(String s) throws javax.jcr.NoSuchWorkspaceException, javax.jcr.AccessDeniedException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
update in interface javax.jcr.Nodejavax.jcr.NoSuchWorkspaceExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.lock.LockExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionpublic JCRNodeIteratorWrapper merge(String s, boolean b) throws javax.jcr.NoSuchWorkspaceException, javax.jcr.AccessDeniedException, javax.jcr.MergeException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
merge in interface javax.jcr.Nodemerge in interface JCRNodeWrapperjavax.jcr.NoSuchWorkspaceExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.MergeExceptionjavax.jcr.lock.LockExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionpublic String getCorrespondingNodePath(String s) throws javax.jcr.ItemNotFoundException, javax.jcr.NoSuchWorkspaceException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
getCorrespondingNodePath in interface javax.jcr.Nodejavax.jcr.ItemNotFoundExceptionjavax.jcr.NoSuchWorkspaceExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.RepositoryExceptionpublic JCRNodeIteratorWrapper getSharedSet() throws javax.jcr.RepositoryException
getSharedSet in interface javax.jcr.NodegetSharedSet in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic void removeSharedSet()
throws javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
removeSharedSet in interface javax.jcr.Nodejavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic void removeShare()
throws javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
removeShare in interface javax.jcr.Nodejavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic boolean isCheckedOut()
throws javax.jcr.RepositoryException
isCheckedOut in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic void restore(String s, boolean b) throws javax.jcr.version.VersionException, javax.jcr.ItemExistsException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
restore in interface javax.jcr.Nodejavax.jcr.version.VersionExceptionjavax.jcr.ItemExistsExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionpublic void restore(javax.jcr.version.Version version,
boolean b)
throws javax.jcr.version.VersionException,
javax.jcr.ItemExistsException,
javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
restore in interface javax.jcr.Nodejavax.jcr.version.VersionExceptionjavax.jcr.ItemExistsExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionpublic void restore(javax.jcr.version.Version version,
String s,
boolean b)
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
restore in interface javax.jcr.Nodejavax.jcr.PathNotFoundExceptionjavax.jcr.ItemExistsExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionpublic void restoreByLabel(String s, boolean b) throws javax.jcr.version.VersionException, javax.jcr.ItemExistsException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
restoreByLabel in interface javax.jcr.Nodejavax.jcr.version.VersionExceptionjavax.jcr.ItemExistsExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionpublic javax.jcr.version.VersionHistory getVersionHistory()
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.RepositoryException
getVersionHistory in interface javax.jcr.Nodejavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.RepositoryExceptionpublic javax.jcr.version.Version getBaseVersion()
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.RepositoryException
getBaseVersion in interface javax.jcr.Nodejavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.RepositoryExceptionpublic javax.jcr.lock.Lock lock(boolean b,
boolean b1)
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.lock.LockException,
javax.jcr.AccessDeniedException,
javax.jcr.InvalidItemStateException,
javax.jcr.RepositoryException
lock in interface javax.jcr.Nodelock in interface JCRNodeWrapperjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionpublic javax.jcr.lock.Lock getLock()
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.lock.LockException,
javax.jcr.AccessDeniedException,
javax.jcr.RepositoryException
getLock in interface javax.jcr.NodegetLock in interface JCRNodeWrapperjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.RepositoryExceptionpublic void unlock()
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.lock.LockException,
javax.jcr.AccessDeniedException,
javax.jcr.InvalidItemStateException,
javax.jcr.RepositoryException
unlock in interface javax.jcr.Nodeunlock in interface JCRNodeWrapperjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionpublic void unlock(String type) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.AccessDeniedException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
unlock in interface JCRNodeWrapperjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionpublic void unlock(String type, String userID) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.AccessDeniedException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
unlock in interface JCRNodeWrapperjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionpublic void clearAllLocks()
throws javax.jcr.RepositoryException
clearAllLocks in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic void checkLock()
throws javax.jcr.RepositoryException
checkLock in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic boolean holdsLock()
throws javax.jcr.RepositoryException
holdsLock in interface javax.jcr.NodeholdsLock in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic void followLifecycleTransition(String transition) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.InvalidLifecycleTransitionException, javax.jcr.RepositoryException
followLifecycleTransition in interface javax.jcr.Nodejavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.InvalidLifecycleTransitionExceptionjavax.jcr.RepositoryExceptionpublic String[] getAllowedLifecycleTransistions() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
getAllowedLifecycleTransistions in interface javax.jcr.Nodejavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.RepositoryExceptionpublic boolean isLocked()
JCRNodeWrapperisLocked in interface javax.jcr.NodeisLocked in interface JCRNodeWrapperpublic boolean isLockable()
JCRNodeWrapperisLockable in interface JCRNodeWrapperpublic List<Locale> getLockedLocales() throws javax.jcr.RepositoryException
getLockedLocales in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic String getPath()
JCRNodeWrappergetPath in interface javax.jcr.ItemgetPath in interface JCRNodeWrapperpublic String getName()
JCRNodeWrappergetName in interface javax.jcr.ItemgetName in interface JCRNodeWrapperpublic JCRItemWrapper getAncestor(int i) throws javax.jcr.ItemNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
JCRItemWrappergetAncestor in interface javax.jcr.ItemgetAncestor in interface JCRItemWrapperItem at the specified depth.javax.jcr.ItemNotFoundExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.RepositoryExceptionpublic JCRNodeWrapper getParent() throws javax.jcr.ItemNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
JCRItemWrappergetParent in interface javax.jcr.ItemgetParent in interface JCRItemWrapperItem.javax.jcr.ItemNotFoundExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.RepositoryExceptionpublic int getDepth()
throws javax.jcr.RepositoryException
getDepth in interface javax.jcr.Itemjavax.jcr.RepositoryExceptionpublic JCRSessionWrapper getSession() throws javax.jcr.RepositoryException
JCRItemWrappergetSession in interface javax.jcr.ItemgetSession in interface JCRItemWrapperJCRSessionWrapper through which this Item was
acquired.javax.jcr.RepositoryExceptionpublic boolean isNode()
isNode in interface javax.jcr.Itempublic boolean isNew()
isNew in interface javax.jcr.Itempublic boolean isModified()
isModified in interface javax.jcr.Itempublic boolean isSame(javax.jcr.Item item)
throws javax.jcr.RepositoryException
isSame in interface javax.jcr.Itemjavax.jcr.RepositoryExceptionpublic void accept(javax.jcr.ItemVisitor itemVisitor)
throws javax.jcr.RepositoryException
accept in interface javax.jcr.Itemjavax.jcr.RepositoryExceptionpublic 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
save in interface javax.jcr.Itemjavax.jcr.AccessDeniedExceptionjavax.jcr.ItemExistsExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.ReferentialIntegrityExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.NoSuchNodeTypeExceptionjavax.jcr.RepositoryExceptionpublic void saveSession()
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
JCRItemWrapperSession that apply to this Item
or any of its descendants (that is, the subtree rooted at this Item). If validation of all
pending changes succeeds, then this change information is cleared from the Session.
If the save occurs outside a transaction, the changes are persisted and thus
made visible to other Sessions. If the save occurs within a transaction,
the changes are not persisted until the transaction is committed.
If validation fails, then no pending changes are saved and they remain recorded on the Session.
There is no best-effort or partial save.
The item in persistent storage to which a transient item is saved is
determined by matching identifiers and paths.
An AccessDeniedException will be thrown if any of the changes
to be persisted would violate the access privileges of this
Session.
If any of the changes to be persisted would cause the removal of a node
that is currently the target of a REFERENCE property then a
ReferentialIntegrityException is thrown, provided that this Session has
read access to that REFERENCE property. If, on the other hand, this
Session does not have read access to the REFERENCE property in question,
then an AccessDeniedException is thrown instead.
An ItemExistsException will be thrown if any of the changes
to be persisted would be prevented by the presence of an already existing
item in the workspace.
A ConstraintViolationException will be thrown if any of the
changes to be persisted would violate a node type restriction.
Additionally, a repository may use this exception to enforce
implementation- or configuration-dependant restrictions.
An InvalidItemStateException is thrown if any of the
changes to be persisted conflicts with a change already persisted
through another session and the implementation is such that this
conflict can only be detected at save-time and therefore was not
detected earlier, at change-time.
A VersionException is thrown if the save would make a result in
a change to persistent storage that would violate the read-only status of a
checked-in node.
A LockException is thrown if the save would result
in a change to persistent storage that would violate a lock.
A NoSuchNodeTypeException is thrown if the save would result in the
addition of a node with an unrecognized node type.
A RepositoryException will be thrown if another error
occurs.saveSession in interface JCRItemWrapperjavax.jcr.AccessDeniedException - if any of the changes to be persisted would violate
the access privileges of the this Session. Also thrown if any of the
changes to be persisted would cause the removal of a node that is currently
referenced by a REFERENCE property that this Session
does not have read access to.javax.jcr.ItemExistsException - if any of the changes
to be persisted would be prevented by the presence of an already existing
item in the workspace.javax.jcr.nodetype.ConstraintViolationException - if any of the changes to be persisted would
violate a node type or restriction. Additionally, a repository may use this
exception to enforce implementation- or configuration-dependent restrictions.javax.jcr.InvalidItemStateException - if any of the
changes to be persisted conflicts with a change already persisted
through another session and the implementation is such that this
conflict can only be detected at save-time and therefore was not
detected earlier, at change-time.javax.jcr.ReferentialIntegrityException - if any of the
changes to be persisted would cause the removal of a node that is currently
referenced by a REFERENCE property that this Session
has read access to.javax.jcr.version.VersionException - if the save would make a result in
a change to persistent storage that would violate the read-only status of a
checked-in node.javax.jcr.lock.LockException - if the save would result in a
change to persistent storage that would violate a lock.javax.jcr.nodetype.NoSuchNodeTypeException - if the save would result in the
addition of a node with an unrecognized node type.javax.jcr.RepositoryException - if another error occurs.public void refresh(boolean b)
throws javax.jcr.InvalidItemStateException,
javax.jcr.RepositoryException
refresh in interface javax.jcr.Itemjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionpublic void remove()
throws javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
remove in interface javax.jcr.Itemjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic List<Locale> getExistingLocales() throws javax.jcr.RepositoryException
JCRNodeWrappergetExistingLocales in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic javax.jcr.NodeIterator getI18Ns()
throws javax.jcr.RepositoryException
JCRNodeWrappergetI18Ns in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of a JCR exceptionpublic javax.jcr.Node getI18N(Locale locale) throws javax.jcr.RepositoryException
JCRNodeWrappergetI18N in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic javax.jcr.Node getI18N(Locale locale, boolean fallback) throws javax.jcr.RepositoryException
JCRNodeWrappergetI18N in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean hasI18N(Locale locale) throws javax.jcr.RepositoryException
JCRNodeWrapperhasI18N in interface JCRNodeWrappertrue if the translation node existsjavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean hasI18N(Locale locale, boolean fallback) throws javax.jcr.RepositoryException
JCRNodeWrapperhasI18N in interface JCRNodeWrapperlocale - the locale for which we want to check if a translation existsfallback - whether or not we should fallback on the default locale if we didn't find an exact translationtrue if the translation node existsjavax.jcr.RepositoryException - in case of JCR-related errorspublic javax.jcr.Node getOrCreateI18N(Locale locale) throws javax.jcr.RepositoryException
JCRNodeWrappergetOrCreateI18N in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic javax.jcr.Node getOrCreateI18N(Locale locale, Calendar created, String createdBy, Calendar lastModified, String lastModifiedBy) throws javax.jcr.RepositoryException
getOrCreateI18N in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic JCRNodeWrapper clone(JCRNodeWrapper sharedNode, String name) throws javax.jcr.ItemExistsException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
clone in interface JCRNodeWrapperjavax.jcr.ItemExistsExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionpublic boolean checkValidity()
checkValidity in interface JCRNodeWrapperpublic boolean checkLanguageValidity(Set<String> languages)
checkLanguageValidity in interface JCRNodeWrapperpublic JCRSiteNode getResolveSite() throws javax.jcr.RepositoryException
getResolveSite in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic List<VersionInfo> getVersionInfos() throws javax.jcr.RepositoryException
JCRNodeWrappergetVersionInfos in interface JCRNodeWrapperjavax.jcr.RepositoryException - happens if there was a problem retrieving the list of versions.public List<VersionInfo> getLinearVersionInfos() throws javax.jcr.RepositoryException
JCRNodeWrappergetLinearVersionInfos in interface JCRNodeWrapperjavax.jcr.RepositoryException - happens if there was a problem retrieving the list of versions.public List<javax.jcr.version.Version> getVersionsAsVersion()
getVersionsAsVersion in interface JCRNodeWrapperpublic String getDisplayableName()
getDisplayableName in interface JCRNodeWrapperpublic String getUnescapedName()
JCRNodeWrappergetUnescapedName in interface JCRNodeWrapperpublic javax.jcr.security.AccessControlManager getAccessControlManager()
throws javax.jcr.RepositoryException
getAccessControlManager in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic boolean canMarkForDeletion()
throws javax.jcr.RepositoryException
JCRNodeWrappercanMarkForDeletion in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean isMarkedForDeletion()
throws javax.jcr.RepositoryException
JCRNodeWrapperisMarkedForDeletion in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of a repository access errorpublic void markForDeletion(String comment) throws javax.jcr.RepositoryException
JCRNodeWrappermarkForDeletion in interface JCRNodeWrappercomment - the deletion commentjavax.jcr.RepositoryException - in case of repository access errorspublic void unmarkForDeletion()
throws javax.jcr.RepositoryException
JCRNodeWrapperunmarkForDeletion in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of repository access errorspublic String getCanonicalPath()
getCanonicalPath in interface JCRItemWrapperpublic JCRNodeWrapper getDecoratedNode()
public JCRPropertyWrapper decorateProperty(javax.jcr.Property property) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.