public class JCRNodeWrapperImpl extends JCRItemWrapperImpl implements JCRNodeWrapper
javax.jcr.Node to be able to inject
Jahia specific actions.JCRNodeWrapper.NodeNamingConflictResolutionStrategy| Modifier and Type | Field and Description |
|---|---|
protected Map<String,List<String[]>> |
aclEntries |
protected Boolean |
breakAcl |
static String |
EXTERNAL_IDENTIFIER_PROP_NAME_SEPARATOR |
static Pattern |
EXTERNAL_IDENTIFIER_PROP_NAME_SEPARATOR_PATTERN |
protected JCRFileContent |
fileContent |
protected Map<Locale,javax.jcr.Node> |
i18NobjectNodes |
protected javax.jcr.Node |
objectNode |
protected boolean |
parentAlreadyResolved |
protected JCRNodeWrapper |
resolvedParentNode |
protected JCRSiteNode |
site |
item, localPath, localPathInProvider, provider, sessionEMPTY| Modifier | Constructor and Description |
|---|---|
protected |
JCRNodeWrapperImpl(javax.jcr.Node objectNode,
String path,
JCRNodeWrapper parent,
JCRSessionWrapper session,
JCRStoreProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMixin(String s) |
JCRNodeWrapper |
addNode(String name) |
JCRNodeWrapper |
addNode(String name,
String type) |
JCRNodeWrapper |
addNode(String name,
String type,
String identifier,
Calendar created,
String createdBy,
Calendar lastModified,
String lastModifiedBy) |
protected String |
buildSubnodePath(String name) |
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> roles)
Change the permissions of a principal on the node.
|
boolean |
checkI18nAndMandatoryPropertiesForLocale(Locale locale) |
JCRVersion |
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 batchCount) |
boolean |
copy(JCRNodeWrapper dest,
String name,
boolean allowsExternalSharedNodes,
Map<String,List<String>> references,
List<String> ignoreNodeTypes,
int maxBatch,
org.apache.commons.lang.mutable.MutableInt batchCount,
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
|
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 |
flushLocalCaches() |
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 the given node or not
|
Map<String,Map<String,String>> |
getActualAclEntries()
get the active ACL entries
|
String[] |
getAllowedLifecycleTransistions() |
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() |
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
|
ExtendedNodeDefinition |
getDefinition() |
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)
Return the internationalization node, containing localized properties
|
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() |
List<Locale> |
getLockedLocalesForUserAndType(String type) |
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 namePattern) |
JCRNodeIteratorWrapper |
getNodes(String[] nameGlobs) |
protected JCRNodeIteratorWrapper |
getNodes(String namePattern,
String[] nameGlobs) |
List<String> |
getNodeTypes()
Returns a list holding the primary node type and all mixin node types for this node
|
javax.jcr.Node |
getOrCreateAcl()
Returns the ACL node of the given node or creates one
|
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) |
ExtendedNodeType[] |
getOriginalMixinNodeTypes() |
JCRNodeWrapper |
getParent() |
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 name) |
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() |
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()
Deprecated.
As of JCR 2.0,
getIdentifier() should be used instead. |
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 propertyName) |
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 batchCount,
boolean isTopObject) |
boolean |
internalCopy(JCRNodeWrapper dest,
String name,
boolean allowsExternalSharedNodes,
Map<String,List<String>> references,
List<String> ignoreNodeTypes,
int maxBatch,
org.apache.commons.lang.mutable.MutableInt batchCount,
boolean isTopObject,
JCRNodeWrapper.NodeNamingConflictResolutionStrategy namingConflictResolutionStrategy) |
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 |
isNodeType(String type) |
boolean |
isPortlet()
Checks whether the current node is a portlet node
|
boolean |
isVersioned()
Checks whether the current file node has a mix:versionable mixin type applied
|
javax.jcr.lock.Lock |
lock(boolean isDeep,
boolean isSessionScoped) |
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 |
remove() |
void |
removeMixin(String mixinName) |
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
|
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 name,
boolean value) |
JCRPropertyWrapper |
setProperty(String name,
Calendar value) |
JCRPropertyWrapper |
setProperty(String name,
double value) |
JCRPropertyWrapper |
setProperty(String name,
InputStream value) |
JCRPropertyWrapper |
setProperty(String name,
long value) |
JCRPropertyWrapper |
setProperty(String name,
javax.jcr.Node value) |
JCRPropertyWrapper |
setProperty(String name,
String value) |
JCRPropertyWrapper |
setProperty(String name,
String[] values) |
JCRPropertyWrapper |
setProperty(String name,
String[] values,
int type) |
JCRPropertyWrapper |
setProperty(String name,
String value,
int type) |
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 name,
javax.jcr.Value value) |
JCRPropertyWrapper |
setProperty(String name,
javax.jcr.Value[] values) |
JCRPropertyWrapper |
setProperty(String name,
javax.jcr.Value[] values,
int type) |
JCRPropertyWrapper |
setProperty(String name,
javax.jcr.Value value,
int type) |
void |
unlock() |
protected static void |
unlock(javax.jcr.Node objectNode,
String type,
String userID,
JCRSessionWrapper session) |
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 srcWorkspace) |
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
|
accept, getAncestor, getCanonicalPath, getDepth, getPath, getSession, isModified, isNew, isNode, isSame, refresh, save, saveSession, setItem, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPathgetAncestor, getCanonicalPath, getSession, saveSessionprotected javax.jcr.Node objectNode
protected JCRFileContent fileContent
protected JCRSiteNode site
protected boolean parentAlreadyResolved
protected JCRNodeWrapper resolvedParentNode
protected Boolean breakAcl
public static final String EXTERNAL_IDENTIFIER_PROP_NAME_SEPARATOR
public static final Pattern EXTERNAL_IDENTIFIER_PROP_NAME_SEPARATOR_PATTERN
protected JCRNodeWrapperImpl(javax.jcr.Node objectNode,
String path,
JCRNodeWrapper parent,
JCRSessionWrapper session,
JCRStoreProvider provider)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected static void unlock(javax.jcr.Node objectNode,
String type,
String userID,
JCRSessionWrapper session)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic javax.jcr.Node getRealNode()
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. Among other things:
getRealNode in interface JCRNodeWrapperNodepublic JCRNodeWrapper getParent() throws javax.jcr.ItemNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
getParent in interface javax.jcr.ItemgetParent in interface JCRItemWrappergetParent in class JCRItemWrapperImplItem.javax.jcr.ItemNotFoundExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.RepositoryExceptionpublic JCRUserNode getUser()
JahiaUser object of the current Session, which returned the nodegetUser in interface JCRNodeWrapperSessionpublic Map<String,List<String[]>> getAclEntries()
getAclEntries in interface JCRNodeWrapperpublic Map<String,Map<String,String>> getActualAclEntries()
getActualAclEntries in interface JCRNodeWrapperpublic Map<String,List<JCRNodeWrapper>> getAvailableRoles() throws javax.jcr.RepositoryException
getAvailableRoles in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic boolean hasPermission(String perm)
hasPermission in interface JCRNodeWrapperperm - The permission to checkpublic javax.jcr.security.AccessControlManager getAccessControlManager()
throws javax.jcr.RepositoryException
getAccessControlManager in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic Set<String> getPermissions()
getPermissions in interface JCRNodeWrapperpublic BitSet getPermissionsAsBitSet()
getPermissionsAsBitSet in interface JCRNodeWrapperpublic boolean grantRoles(String principalKey, Set<String> roles) throws javax.jcr.RepositoryException
grantRoles 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
denyRoles 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> roles) throws javax.jcr.RepositoryException
changeRoles in interface JCRNodeWrapperprincipalKey - the name of a principal with a prefix, such as "u:" for users, "g:" for groupsroles - 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
revokeRolesForPrincipal 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
revokeAllRoles in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic boolean setAclInheritanceBreak(boolean breakAclInheritance)
throws javax.jcr.RepositoryException
setAclInheritanceBreak in interface JCRNodeWrapperbreakAclInheritance - if true, no ACLs will be inherited from parent nodestrue if action was successful, or false if notjavax.jcr.RepositoryExceptionpublic boolean getAclInheritanceBreak()
throws javax.jcr.RepositoryException
getAclInheritanceBreak in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic javax.jcr.Node getOrCreateAcl()
throws javax.jcr.RepositoryException
Node for the given nodejavax.jcr.RepositoryException - in case of JCR-related errorspublic JCRNodeWrapper createCollection(String name) throws javax.jcr.RepositoryException
createCollection in interface JCRNodeWrappername - Name of the folder to createjavax.jcr.RepositoryException - in case of JCR-related errorsJCRNodeWrapper.addNode(String)public JCRNodeWrapper uploadFile(String name, InputStream is, String contentType) throws javax.jcr.RepositoryException
uploadFile 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 addNode(String name) throws javax.jcr.RepositoryException
addNode in interface javax.jcr.NodeaddNode in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic JCRNodeWrapper addNode(String name, String type) throws javax.jcr.RepositoryException
addNode in interface javax.jcr.NodeaddNode in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionNode.addNode(String, String)public JCRNodeWrapper addNode(String name, String type, 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
JCRPlaceholderNode based on the current nodegetPlaceholder in interface JCRNodeWrapperJCRPlaceholderNode based on the current nodejavax.jcr.RepositoryException - in case of JCR-related errorspublic String getUUID() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
getIdentifier() should be used instead.getUUID in interface javax.jcr.Nodejavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.RepositoryExceptionpublic String getAbsoluteUrl(javax.servlet.ServletRequest request)
getAbsoluteUrl in interface JCRNodeWrapperrequest - the current request.public String getUrl()
getUrl in interface JCRNodeWrapperpublic String getAbsoluteWebdavUrl(javax.servlet.http.HttpServletRequest request)
getAbsoluteWebdavUrl in interface JCRNodeWrapperpublic String getWebdavUrl()
getWebdavUrl in interface JCRNodeWrapperpublic List<String> getThumbnails()
getThumbnails in interface JCRNodeWrapperpublic String getThumbnailUrl(String name)
getThumbnailUrl in interface JCRNodeWrappername - The thumbnail namepublic Map<String,String> getThumbnailUrls()
getThumbnailUrls in interface JCRNodeWrapperpublic JCRNodeWrapper getNode(String s) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getNode 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 namePattern) 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.RepositoryExceptionprotected JCRNodeIteratorWrapper getNodes(String namePattern, String[] nameGlobs) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic 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 getName()
getName in interface javax.jcr.ItemgetName in interface JCRNodeWrappergetName in class JCRItemWrapperImplpublic ExtendedNodeType getPrimaryNodeType() throws javax.jcr.RepositoryException
getPrimaryNodeType in interface javax.jcr.NodegetPrimaryNodeType in interface JCRNodeWrapperExtendedNodeType object.javax.jcr.RepositoryExceptionpublic String getPrimaryNodeTypeName() throws javax.jcr.RepositoryException
getPrimaryNodeTypeName in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic ExtendedNodeType[] getMixinNodeTypes() throws javax.jcr.RepositoryException
getMixinNodeTypes in interface javax.jcr.NodegetMixinNodeTypes in interface JCRNodeWrapperExtendedNodeType objects.javax.jcr.RepositoryExceptionpublic ExtendedNodeType[] getOriginalMixinNodeTypes() throws javax.jcr.RepositoryException
javax.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 mixinName) 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
getDefinition in interface javax.jcr.NodegetDefinition in interface JCRNodeWrapperExtendedNodeDefinition object.javax.jcr.RepositoryExceptionpublic List<String> getNodeTypes() throws javax.jcr.RepositoryException
getNodeTypes in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean isNodeType(String type) throws javax.jcr.RepositoryException
isNodeType in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean isCollection()
isCollection in interface JCRNodeWrapperpublic boolean isFile()
isFile in interface JCRNodeWrapperpublic boolean isPortlet()
isPortlet in interface JCRNodeWrapperpublic Date getLastModifiedAsDate()
Date objectgetLastModifiedAsDate in interface JCRNodeWrapperDate objectpublic Date getContentLastModifiedAsDate()
Date objectgetContentLastModifiedAsDate in interface JCRNodeWrapperDate objectpublic Date getLastPublishedAsDate()
Date objectgetLastPublishedAsDate in interface JCRNodeWrapperDate objectpublic Date getContentLastPublishedAsDate()
Date objectgetContentLastPublishedAsDate in interface JCRNodeWrapperDate objectpublic Date getCreationDateAsDate()
Date objectgetCreationDateAsDate in interface JCRNodeWrapperDate objectpublic String getCreationUser()
getCreationUser in interface JCRNodeWrapperpublic String getModificationUser()
getModificationUser in interface JCRNodeWrapperpublic String getPublicationUser()
getPublicationUser in interface JCRNodeWrapperpublic String getLanguage()
getLanguage in interface JCRNodeWrapperpublic List<Locale> getExistingLocales() throws javax.jcr.RepositoryException
JCRNodeWrappergetExistingLocales in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic javax.jcr.Node getI18N(Locale locale) throws javax.jcr.RepositoryException
getI18N in interface JCRNodeWrapperlocale - javax.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 getI18N(Locale locale, boolean fallback) throws javax.jcr.RepositoryException
JCRNodeWrappergetI18N 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 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 JCRPropertyWrapper getProperty(String name) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getProperty 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 String getPropertyAsString(String name)
String at name relative to this
node.getPropertyAsString in interface JCRNodeWrappername - The relative path of the property to retrieve.Stringpublic JCRPropertyWrapper setProperty(String name, String value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setProperty 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.Value value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setProperty 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.Value value, int type) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setProperty 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 name, javax.jcr.Value[] values) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setProperty 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 namespace, String name, String value) throws javax.jcr.RepositoryException
setProperty 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 JCRPropertyWrapper setProperty(String name, javax.jcr.Value[] values, int type) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setProperty 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, String[] values) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setProperty 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, String[] values, int type) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setProperty 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, String value, int type) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setProperty 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 name, InputStream value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setProperty 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, boolean value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setProperty 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, double value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setProperty 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, long value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setProperty 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, Calendar value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setProperty 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.Node value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
setProperty in interface javax.jcr.NodesetProperty in interface JCRNodeWrapperProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.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
setProperty 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
setProperty 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 boolean hasProperty(String propertyName) throws javax.jcr.RepositoryException
hasProperty in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean hasProperties()
throws javax.jcr.RepositoryException
hasProperties in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic List<JCRItemWrapper> getAncestors() throws javax.jcr.RepositoryException
getAncestors in interface JCRNodeWrapperjavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean rename(String newName) throws javax.jcr.RepositoryException
rename in interface JCRNodeWrappernewName - The new namejavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean copy(String dest) throws javax.jcr.RepositoryException
copy 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
copy 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
copy 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
copy 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 batchCount) 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 batchCount, 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 batchCount, boolean isTopObject) throws javax.jcr.RepositoryException
javax.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 batchCount, boolean isTopObject, JCRNodeWrapper.NodeNamingConflictResolutionStrategy namingConflictResolutionStrategy) 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 void remove()
throws javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
remove in interface javax.jcr.Itemremove in class JCRItemWrapperImpljavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionpublic javax.jcr.lock.Lock lock(boolean isDeep,
boolean isSessionScoped)
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.lock.LockException,
javax.jcr.AccessDeniedException,
javax.jcr.InvalidItemStateException,
javax.jcr.RepositoryException
lock in interface javax.jcr.Nodelock in interface JCRNodeWrapperjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionpublic boolean lockAndStoreToken(String type) throws javax.jcr.RepositoryException
lockAndStoreToken in interface JCRNodeWrappertype - javax.jcr.RepositoryExceptionJCRNodeWrapper.lock(boolean, boolean)public boolean lockAndStoreToken(String type, String userID) throws javax.jcr.RepositoryException
lockAndStoreToken in interface JCRNodeWrappertype - javax.jcr.RepositoryExceptionpublic boolean isLocked()
isLocked in interface javax.jcr.NodeisLocked in interface JCRNodeWrapperpublic boolean isLockable()
isLockable in interface JCRNodeWrapperpublic List<Locale> getLockedLocales() throws javax.jcr.RepositoryException
getLockedLocales in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic List<Locale> getLockedLocalesForUserAndType(String type) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic javax.jcr.lock.Lock getLock()
getLock in interface javax.jcr.NodegetLock in interface JCRNodeWrapperpublic 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 String getLockOwner() throws javax.jcr.RepositoryException
getLockOwner in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic Map<String,List<String>> getLockInfos() throws javax.jcr.RepositoryException
getLockInfos in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic void versionFile()
versionFile in interface JCRNodeWrapperpublic boolean isVersioned()
isVersioned in interface JCRNodeWrapperpublic void checkpoint()
checkpoint in interface JCRNodeWrapperNode.checkin(),
Node.checkout()public List<String> getVersions()
getVersions in interface JCRNodeWrapperNode.getVersionHistory()public List<javax.jcr.version.Version> getVersionsAsVersion()
getVersionsAsVersion in interface JCRNodeWrapperpublic List<VersionInfo> getVersionInfos() throws javax.jcr.RepositoryException
getVersionInfos in interface JCRNodeWrapperjavax.jcr.RepositoryException - happens if there was a problem retrieving the list of versions.public List<VersionInfo> getLinearVersionInfos() throws javax.jcr.RepositoryException
getLinearVersionInfos in interface JCRNodeWrapperjavax.jcr.RepositoryException - happens if there was a problem retrieving the list of versions.public JCRStoreProvider getJCRProvider()
JCRStoreProvider which returned the current node.getJCRProvider in interface JCRNodeWrapperJCRStoreProvider for the current nodepublic JCRStoreProvider getProvider()
JCRStoreProvider which returned the current node.getProvider in interface JCRNodeWrapperJCRStoreProvider for the current nodepublic 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 JCRItemWrapper getPrimaryItem() throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getPrimaryItem in interface javax.jcr.NodegetPrimaryItem in interface JCRNodeWrapperjavax.jcr.ItemNotFoundExceptionjavax.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 boolean hasNode(String s) throws javax.jcr.RepositoryException
hasNode in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic boolean hasNodes()
throws javax.jcr.RepositoryException
hasNodes in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic JCRVersion 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 srcWorkspace) 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 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 JCRFileContent getFileContent()
JCRFileContent object of the current file nodegetFileContent in interface JCRNodeWrapperJCRFileContent object of the current file nodepublic ExtendedPropertyDefinition getApplicablePropertyDefinition(String propertyName) throws javax.jcr.RepositoryException
getApplicablePropertyDefinition 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
getApplicablePropertyDefinition 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 javax.jcr.PropertyIterator getProperties(String[] strings) throws javax.jcr.RepositoryException
getProperties in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionpublic String getIdentifier() throws javax.jcr.RepositoryException
getIdentifier 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.UnsupportedRepositoryOperationException - as long as Jahia doesn't support itjavax.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.UnsupportedRepositoryOperationException - as long as Jahia doesn't support itjavax.jcr.nodetype.NoSuchNodeTypeExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.lock.LockExceptionjavax.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 void followLifecycleTransition(String transition) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.InvalidLifecycleTransitionException, javax.jcr.RepositoryException
followLifecycleTransition in interface javax.jcr.Nodejavax.jcr.UnsupportedRepositoryOperationException - as long as Jahia doesn't support itjavax.jcr.InvalidLifecycleTransitionExceptionjavax.jcr.RepositoryExceptionpublic String[] getAllowedLifecycleTransistions() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
getAllowedLifecycleTransistions in interface javax.jcr.Nodejavax.jcr.UnsupportedRepositoryOperationExceptionjavax.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 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 JCRSiteNode getResolveSite() throws javax.jcr.RepositoryException
getResolveSite in interface JCRNodeWrapperjavax.jcr.RepositoryExceptionpublic String getDisplayableName()
getDisplayableName in interface JCRNodeWrapperpublic String getUnescapedName()
JCRNodeWrappergetUnescapedName in interface JCRNodeWrapperpublic void flushLocalCaches()
public 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 errorsCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.