Package org.alfresco.repo.template
Interface TemplatePermissions
-
- All Superinterfaces:
java.io.Serializable,TemplateNodeRef
- All Known Implementing Classes:
BasePermissionsNode,CategoryTemplateNode,TemplateNode
public interface TemplatePermissions extends TemplateNodeRef
Contract for Template API objects that support permissions.- Author:
- Kevin Roast
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetInheritsPermissions()java.util.List<java.lang.String>getPermissions()booleanhasPermission(java.lang.String permission)-
Methods inherited from interface org.alfresco.repo.template.TemplateNodeRef
getId, getName, getNodeRef, getType
-
-
-
-
Method Detail
-
getPermissions
java.util.List<java.lang.String> getPermissions()
- Returns:
- List of permissions applied to this Node. Strings returned are of the format [ALLOWED|DENIED];[USERNAME|GROUPNAME];PERMISSION for example ALLOWED;kevinr;Consumer so can be easily tokenized on the ';' character.
-
getInheritsPermissions
boolean getInheritsPermissions()
- Returns:
- true if this node inherits permissions from its parent node, false otherwise.
-
hasPermission
boolean hasPermission(java.lang.String permission)
- Parameters:
permission- Permission name to test- Returns:
- true if the current user is granted the specified permission on the node
-
-