All Known Subinterfaces:
CompositeCapability
All Known Implementing Classes:
AbstractCapability, ChangeOrDeleteReferencesCapability, CreateCapability, DeclarativeCapability, DeclarativeCompositeCapability, DeleteLinksCapability, EditNonRecordMetadataCapability, UpdateCapability, ViewRecordsCapability

@AlfrescoPublicApi public interface Capability
Capability Interface.
Author:
andyh, Roy Wetherall
  • Method Details

    • hasPermission

      AccessStatus hasPermission(NodeRef nodeRef)
      Does this capability apply to this nodeRef?
      Parameters:
      nodeRef -
      Returns:
    • hasPermissionRaw

      int hasPermissionRaw(NodeRef nodeRef)
      Parameters:
      nodeRef -
      Returns:
    • evaluate

      int evaluate(NodeRef nodeRef)
      Evaluates the capability.
      Parameters:
      nodeRef -
      Returns:
    • evaluate

      int evaluate(NodeRef source, NodeRef target)
      Evaluates the capability, taking into account a target.
      Parameters:
      source - source node reference
      target - target node reference
      Returns:
      int permission value
    • isPrivate

      boolean isPrivate()
      Indicates whether this is a private capability or not. Private capabilities are used internally, otherwise they are made available to the user to assign to roles.
      Returns:
      boolean true if private, false otherwise
    • getName

      String getName()
      Get the name of the capability
      Returns:
      String capability name
    • getTitle

      String getTitle()
      Get the title of the capability
      Returns:
      String capability title
    • getDescription

      String getDescription()
      Get the description of the capability
      Returns:
      String capability description
    • getGroup

      Group getGroup()
      Gets the group of a capability
      Returns:
      Group capability group
    • getIndex

      int getIndex()
      Gets the index of a capability
      Returns:
      int capability index