public interface JCRNodeWrapper extends javax.jcr.Node, JCRItemWrapper
javax.jcr.Node to be able to inject
Jahia specific actions.
Jahia services should use this interface rather than the original to ensure that
we manipulate wrapped nodes and not the ones from the underlying implementation| Modifier and Type | Interface and Description |
|---|---|
static class |
JCRNodeWrapper.NodeNamingConflictResolutionStrategy
Defines ways to deal with duplicate node names when copying a node to a different parent
that already contains a node with the same name and same name siblings are not allowed.
|
| Modifier and Type | Field and Description |
|---|---|
static Iterator<JCRNodeWrapper> |
EMPTY |
| Modifier and Type | Method and Description |
|---|---|
JCRNodeWrapper |
addNode(String s) |
JCRNodeWrapper |
addNode(String relPath,
String primaryNodeTypeName) |
JCRNodeWrapper |
addNode(String relPath,
String primaryNodeTypeName,
String identifier,
Calendar created,
String createdBy,
Calendar lastModified,
String lastModifiedBy) |
boolean |
canMarkForDeletion()
Checks if this node can be marked for deletion.
|
boolean |
changeRoles(String principalKey,
Map<String,String> perms)
Change the permissions of a principal on the node.
|
boolean |
checkI18nAndMandatoryPropertiesForLocale(Locale locale) |
boolean |
checkLanguageValidity(Set<String> languages) |
void |
checkLock() |
void |
checkpoint()
Performs a checkin and a checkout.
|
boolean |
checkValidity() |
void |
clearAllLocks() |
JCRNodeWrapper |
clone(JCRNodeWrapper sharedNode,
String name) |
boolean |
copy(JCRNodeWrapper node,
String name,
boolean allowsExternalSharedNodes)
Copy the current file node to another destination node supplying it given name
|
boolean |
copy(JCRNodeWrapper node,
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
|
boolean |
denyRoles(String principalKey,
Set<String> roles)
Deny roles to a principal on this node.
|
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
|
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.
|
Date |
getContentLastModifiedAsDate()
Returns the last content modification date as
Date object |
Date |
getContentLastPublishedAsDate()
Returns the last content published date as
Date object |
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)
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.
|
JCRStoreProvider |
getJCRProvider()
Deprecated.
use
getProvider() instead |
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 relPath) |
JCRNodeIteratorWrapper |
getNodes() |
JCRNodeIteratorWrapper |
getNodes(String namePattern) |
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) |
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.
|
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 relPath) |
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() |
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 |
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
|
String |
getWebdavUrl()
Get the webdav url
|
boolean |
grantRoles(String principalKey,
Set<String> roles)
Grant roles to a principal on this node.
|
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 |
hasPermission(String perm)
Checks if the current user has a permission or not
|
boolean |
hasTranslations() |
boolean |
holdsLock() |
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 |
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 srcWorkspace,
boolean bestEffort) |
boolean |
rename(String newName)
Rename the current file node
|
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.
|
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)
Deprecated.
As of JCR 2.0,
setProperty(String, javax.jcr.Binary) should
be used instead. |
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() |
void |
unlock(String type) |
void |
unlock(String type,
String userID) |
void |
unmarkForDeletion()
Unmarks this node and all the sub-nodes for deletion.
|
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
|
addMixin, canAddMixin, cancelMerge, checkin, checkout, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getIdentifier, getIndex, getProperties, getProperties, getProperties, getReferences, getReferences, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNodes, hasProperties, hasProperty, isCheckedOut, isNodeType, orderBefore, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, setPrimaryType, updategetAncestor, getCanonicalPath, getParent, getSession, saveSessionstatic final Iterator<JCRNodeWrapper> EMPTY
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:
NodeJCRUserNode getUser()
JahiaUser object of the current Session, which returned the nodeSessionJCRPropertyWrapper 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.NodeProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionJCRPropertyWrapper 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.NodeProperty 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.RepositoryExceptionJCRPropertyWrapper 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.NodeProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionJCRPropertyWrapper 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.NodeProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionJCRPropertyWrapper 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.NodeProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionJCRPropertyWrapper 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.NodeProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionJCRPropertyWrapper 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.NodeProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionJCRPropertyWrapper 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.NodeProperty 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.RepositoryExceptionJCRPropertyWrapper 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(String, javax.jcr.Binary) should
be used instead.setProperty in interface javax.jcr.NodeProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionJCRPropertyWrapper 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.NodeProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionJCRPropertyWrapper 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.NodeProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionJCRPropertyWrapper 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.NodeProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionJCRPropertyWrapper 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.NodeProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionJCRPropertyWrapper 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.NodeProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionJCRPropertyWrapper 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.NodeProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionJCRPropertyWrapper setProperty(String name, javax.jcr.Node value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setProperty in interface javax.jcr.NodeProperty object wrapped in JCRPropertywWrapperjavax.jcr.ValueFormatExceptionjavax.jcr.version.VersionExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionJCRNodeWrapper getNode(String relPath) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getNode in interface javax.jcr.NoderelPath.javax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionJCRPropertyWrapper setProperty(String namespace, String name, String value) throws javax.jcr.RepositoryException
namespace - name - The name of a property of this nodevalue - The value to assignedProperty object wrapped in JCRPropertywWrapperjavax.jcr.RepositoryException - If an error occurs.setProperty(String, String)JCRPropertyWrapper getProperty(String relPath) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getProperty in interface javax.jcr.NoderelPath.javax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionJCRItemWrapper getPrimaryItem() throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
getPrimaryItem in interface javax.jcr.Nodejavax.jcr.ItemNotFoundExceptionjavax.jcr.RepositoryExceptionExtendedNodeType getPrimaryNodeType() throws javax.jcr.RepositoryException
getPrimaryNodeType in interface javax.jcr.NodeExtendedNodeType object.javax.jcr.RepositoryExceptionExtendedNodeType[] getMixinNodeTypes() throws javax.jcr.RepositoryException
getMixinNodeTypes in interface javax.jcr.NodeExtendedNodeType objects.javax.jcr.RepositoryExceptionExtendedNodeDefinition getDefinition() throws javax.jcr.RepositoryException
getDefinition in interface javax.jcr.NodeExtendedNodeDefinition object.javax.jcr.RepositoryExceptionMap<String,List<String[]>> getAclEntries()
Map<String,Map<String,String>> getActualAclEntries()
Map<String,List<JCRNodeWrapper>> getAvailableRoles() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionboolean hasPermission(String perm)
perm - The permission to checkBitSet getPermissionsAsBitSet()
boolean grantRoles(String principalKey, Set<String> roles) throws javax.jcr.RepositoryException
principalKey - 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 errorsboolean denyRoles(String principalKey, Set<String> roles) throws javax.jcr.RepositoryException
principalKey - 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 errorsboolean changeRoles(String principalKey, Map<String,String> perms) throws javax.jcr.RepositoryException
principalKey - the name of a principal with a prefix, such as "u:" for users, "g:" for groupsperms - A map with the name of the permission, and "GRANT" or "DENY" as a valuejavax.jcr.RepositoryExceptionboolean revokeRolesForPrincipal(String principalKey) throws javax.jcr.RepositoryException
principalKey - the name of a principal with a prefix, such as "u:" for users, "g:" for groupsjavax.jcr.RepositoryExceptionboolean revokeAllRoles()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionboolean getAclInheritanceBreak()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionboolean setAclInheritanceBreak(boolean breakAclInheritance)
throws javax.jcr.RepositoryException
breakAclInheritance - if true, no ACLs will be inherited from parent nodestrue if action was successful, or false if notjavax.jcr.RepositoryExceptionJCRNodeWrapper createCollection(String name) throws javax.jcr.RepositoryException
name - Name of the folder to createjavax.jcr.RepositoryException - in case of JCR-related errorsaddNode(String)JCRNodeWrapper uploadFile(String name, InputStream is, String contentType) throws javax.jcr.RepositoryException
name - Name of the file nodeis - The input stream with the file's contentcontentType - The MIME content typejavax.jcr.RepositoryException - in case of JCR-related errorsString getAbsoluteUrl(javax.servlet.ServletRequest request)
request - the current request.String getUrl()
String getAbsoluteWebdavUrl(javax.servlet.http.HttpServletRequest request)
String getWebdavUrl()
List<String> getThumbnails()
String getThumbnailUrl(String name)
name - The thumbnail nameMap<String,String> getThumbnailUrls()
Map<String,String> getPropertiesAsString() throws javax.jcr.RepositoryException
Session with the value as String.javax.jcr.RepositoryException - in case of JCR-related errorsString getPrimaryNodeTypeName() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - in case of JCR-related errorsList<String> getNodeTypes() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - in case of JCR-related errorsboolean isCollection()
boolean isFile()
boolean isPortlet()
Date getLastModifiedAsDate()
Date objectDate objectDate getLastPublishedAsDate()
Date objectDate objectDate getContentLastModifiedAsDate()
Date objectDate objectDate getContentLastPublishedAsDate()
Date objectDate objectDate getCreationDateAsDate()
Date objectDate objectString getCreationUser()
String getModificationUser()
String getPublicationUser()
String getLanguage()
String getPropertyAsString(String name)
String at name relative to this
node.name - The relative path of the property to retrieve.StringList<JCRItemWrapper> getAncestors() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - in case of JCR-related errorsboolean rename(String newName) throws javax.jcr.RepositoryException
newName - The new namejavax.jcr.RepositoryException - in case of JCR-related errorsboolean copy(String dest) throws javax.jcr.RepositoryException
dest - The destination name for the file nodejavax.jcr.RepositoryException - in case of JCR-related errorsboolean copy(String dest, String name) throws javax.jcr.RepositoryException
dest - The destination name for the file nodename - The new name of the copied file nodejavax.jcr.RepositoryException - in case of JCR-related errorsboolean copy(String dest, String name, JCRNodeWrapper.NodeNamingConflictResolutionStrategy namingConflictResolutionStrategy) throws javax.jcr.RepositoryException
dest - 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 errorsboolean copy(JCRNodeWrapper node, String name, boolean allowsExternalSharedNodes) throws javax.jcr.RepositoryException
node - The destination nodename - The new name of the copied file nodeallowsExternalSharedNodes - javax.jcr.RepositoryException - in case of JCR-related errorsboolean copy(JCRNodeWrapper node, String name, boolean allowsExternalSharedNodes, JCRNodeWrapper.NodeNamingConflictResolutionStrategy namingConflictResolutionStrategy) throws javax.jcr.RepositoryException
node - The destination nodename - The new name of the copied file nodeallowsExternalSharedNodes - namingConflictResolutionStrategy - 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 errorsboolean copy(JCRNodeWrapper dest, String name, boolean allowsExternalSharedNodes, Map<String,List<String>> references) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionboolean copy(JCRNodeWrapper dest, String name, boolean allowsExternalSharedNodes, List<String> ignoreNodeTypes, int maxBatch) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionboolean 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
javax.jcr.RepositoryExceptionboolean 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
javax.jcr.RepositoryExceptionvoid copyProperties(JCRNodeWrapper destinationNode, Map<String,List<String>> references) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionboolean lockAndStoreToken(String type) throws javax.jcr.RepositoryException
type - javax.jcr.RepositoryExceptionlock(boolean, boolean)boolean lockAndStoreToken(String type, String userID) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionString getLockOwner() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionMap<String,List<String>> getLockInfos() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionboolean isLocked()
isLocked in interface javax.jcr.Nodejavax.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.Nodejavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionjavax.jcr.lock.Lock getLock()
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.lock.LockException,
javax.jcr.AccessDeniedException,
javax.jcr.RepositoryException
getLock in interface javax.jcr.Nodejavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.RepositoryExceptionboolean holdsLock()
throws javax.jcr.RepositoryException
holdsLock in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionvoid unlock()
throws javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.lock.LockException,
javax.jcr.AccessDeniedException,
javax.jcr.InvalidItemStateException,
javax.jcr.RepositoryException
unlock in interface javax.jcr.Nodejavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionvoid unlock(String type) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.AccessDeniedException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
javax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionvoid unlock(String type, String userID) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.AccessDeniedException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
javax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionvoid clearAllLocks()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionvoid checkLock()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionvoid versionFile()
boolean isVersioned()
void checkpoint()
Node.checkin(),
Node.checkout()List<VersionInfo> getVersionInfos() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - happens if there was a problem retrieving the list of versions.List<VersionInfo> getLinearVersionInfos() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - happens if there was a problem retrieving the list of versions.List<String> getVersions()
Node.getVersionHistory()List<javax.jcr.version.Version> getVersionsAsVersion()
@Deprecated JCRStoreProvider getJCRProvider()
getProvider() insteadJCRStoreProvider which returned the current node.JCRStoreProvider for the current nodeJCRStoreProvider getProvider()
JCRStoreProvider which returned the current node.JCRStoreProvider for the current nodeJCRFileContent getFileContent()
JCRFileContent object of the current file nodeJCRFileContent object of the current file nodeExtendedPropertyDefinition getApplicablePropertyDefinition(String propertyName) throws javax.jcr.RepositoryException
propertyName - the name of the property to find the corresponding definitionExtendedPropertyDefinition for the given propertyjavax.jcr.RepositoryException - in case of JCR-related errorsExtendedPropertyDefinition getApplicablePropertyDefinition(String propertyName, int requiredPropertyType, boolean isMultiple) throws javax.jcr.RepositoryException
propertyName - 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 errorsList<ExtendedPropertyDefinition> getReferenceProperties() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionExtendedNodeDefinition getApplicableChildNodeDefinition(String childName, String nodeType) throws javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
childName - the name of the property to find the corresponding definitionnodeType - ExtendedPropertyDefinition for the given propertyjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryException - in case of JCR-related errorsboolean isLockable()
List<Locale> getLockedLocales() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionJCRNodeWrapper 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
addNode in interface javax.jcr.Nodejavax.jcr.ItemExistsExceptionjavax.jcr.PathNotFoundExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionJCRNodeWrapper addNode(String relPath, String primaryNodeTypeName) throws javax.jcr.ItemExistsException, javax.jcr.PathNotFoundException, javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.lock.LockException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
addNode in interface javax.jcr.Nodejavax.jcr.ItemExistsExceptionjavax.jcr.PathNotFoundExceptionjavax.jcr.nodetype.NoSuchNodeTypeExceptionjavax.jcr.lock.LockExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionNode.addNode(String, String)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
javax.jcr.ItemExistsExceptionjavax.jcr.PathNotFoundExceptionjavax.jcr.nodetype.NoSuchNodeTypeExceptionjavax.jcr.lock.LockExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionNode.addNode(String, String)JCRPlaceholderNode getPlaceholder() throws javax.jcr.RepositoryException
JCRPlaceholderNode based on the current nodeJCRPlaceholderNode based on the current nodejavax.jcr.RepositoryException - in case of JCR-related errorsString getName()
getName in interface javax.jcr.ItemString getPath()
getPath in interface javax.jcr.Itemjavax.jcr.Node getI18N(Locale locale) throws javax.jcr.RepositoryException
locale - javax.jcr.RepositoryException - in case of JCR-related errorsjavax.jcr.Node getI18N(Locale locale, boolean fallback) throws javax.jcr.RepositoryException
locale - javax.jcr.RepositoryException - in case of JCR-related errorsjavax.jcr.NodeIterator getI18Ns()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - in case of a JCR exceptionboolean hasI18N(Locale locale) throws javax.jcr.RepositoryException
locale - true if the translation node existsjavax.jcr.RepositoryException - in case of JCR-related errorsboolean hasI18N(Locale locale, boolean fallback) throws javax.jcr.RepositoryException
locale - 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 errorsjavax.jcr.Node getOrCreateI18N(Locale locale) throws javax.jcr.RepositoryException
locale - javax.jcr.RepositoryException - in case of JCR-related errorsjavax.jcr.Node getOrCreateI18N(Locale locale, Calendar created, String createdBy, Calendar lastModified, String lastModifiedBy) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionList<Locale> getExistingLocales() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - in case of JCR-related errorsJCRNodeWrapper clone(JCRNodeWrapper sharedNode, String name) throws javax.jcr.ItemExistsException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
javax.jcr.ItemExistsExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.RepositoryExceptionboolean checkValidity()
JCRSiteNode getResolveSite() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionboolean hasTranslations()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionboolean checkI18nAndMandatoryPropertiesForLocale(Locale locale) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionString getDisplayableName()
String getUnescapedName()
javax.jcr.security.AccessControlManager getAccessControlManager()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionboolean canMarkForDeletion()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - in case of JCR-related errorsboolean isMarkedForDeletion()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - in case of a repository access errorvoid markForDeletion(String comment) throws javax.jcr.RepositoryException
comment - the deletion commentjavax.jcr.RepositoryException - in case of repository access errorsvoid unmarkForDeletion()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - in case of repository access errorsJCRNodeIteratorWrapper getNodes() throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionJCRNodeIteratorWrapper getNodes(String namePattern) throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionJCRNodeIteratorWrapper getNodes(String[] nameGlobs) throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionJCRNodeIteratorWrapper getSharedSet() throws javax.jcr.RepositoryException
getSharedSet in interface javax.jcr.Nodejavax.jcr.RepositoryExceptionJCRNodeIteratorWrapper merge(String srcWorkspace, boolean bestEffort) throws javax.jcr.NoSuchWorkspaceException, javax.jcr.AccessDeniedException, javax.jcr.MergeException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
merge in interface javax.jcr.Nodejavax.jcr.NoSuchWorkspaceExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.MergeExceptionjavax.jcr.lock.LockExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.RepositoryExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.