Package org.alfresco.repo.template
Class BasePermissionsNode
java.lang.Object
org.alfresco.repo.template.BaseContentNode
org.alfresco.repo.template.BasePermissionsNode
- All Implemented Interfaces:
Serializable,TemplateContent,TemplateNodeRef,TemplatePermissions,TemplateProperties
- Direct Known Subclasses:
TemplateNode
Base class for Template API objects that support permissions.
- Author:
- Kevin Roast
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.alfresco.repo.template.BaseContentNode
BaseContentNode.TemplateContentData -
Field Summary
Fields inherited from class org.alfresco.repo.template.BaseContentNode
aspects, children, CONTENT_DOWNLOAD_PROP_URL, CONTENT_DOWNLOAD_URL, CONTENT_GET_PROP_URL, CONTENT_GET_URL, CONTENT_SERVICE_GET_PROP_URL, CONTENT_SERVICE_GET_URL, FOLDER_BROWSE_URL, imageResolver, NAMESPACE_BEGIN, services -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.alfresco.repo.template.BaseContentNode
getAspects, getChildren, getContent, getDisplayMimetype, getDisplayPath, getDownloadUrl, getEncoding, getHasChildren, getIcon16, getIcon32, getIcon64, getIsContainer, getIsDocument, getIsLinkToContainer, getIsLinkToDocument, getMimetype, getQnamePath, getServiceUrl, getSiteShortName, getSize, getUrl, getWebdavUrl, hasAspect, isTemplateContent, isTemplateNodeRef, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.alfresco.repo.template.TemplateNodeRef
getId, getName, getNodeRef, getTypeMethods inherited from interface org.alfresco.repo.template.TemplateProperties
getParent, getProperties
-
Constructor Details
-
BasePermissionsNode
public BasePermissionsNode()
-
-
Method Details
-
getPermissions
- Specified by:
getPermissionsin interfaceTemplatePermissions- Returns:
- List of permissions applied to this Node, including inherited. Strings returned are of the format [ALLOWED|DENIED];[USERNAME|GROUPNAME];PERMISSION for example ALLOWED;kevinr;Consumer so can be easily tokenized on the ';' character.
-
getDirectPermissions
- Returns:
- List of permissions applied to this Node (does not include inherited). Strings returned are of the format [ALLOWED|DENIED];[USERNAME|GROUPNAME];PERMISSION for example ALLOWED;kevinr;Consumer so can be easily tokenized on the ';' character.
-
getFullPermissions
- Returns:
- List of permissions applied to this Node, including inherited. Strings returned are of the format [ALLOWED|DENIED];[USERNAME|GROUPNAME];PERMISSION;[INHERITED|DIRECT] for example ALLOWED;kevinr;Consumer so can be easily tokenized on the ';' character.
-
getInheritsPermissions
public boolean getInheritsPermissions()- Specified by:
getInheritsPermissionsin interfaceTemplatePermissions- Returns:
- true if this node inherits permissions from its parent node, false otherwise.
-
hasPermission
- Specified by:
hasPermissionin interfaceTemplatePermissions- Parameters:
permission- Permission name to test- Returns:
- true if the current user is granted the specified permission on the node
-