Class CapabilityPatch

    • Constructor Detail

      • CapabilityPatch

        public CapabilityPatch()
    • Method Detail

      • setAuthorityService

        public void setAuthorityService​(AuthorityService authorityService)
        Parameters:
        authorityService - authority service
      • setPermissionService

        public void setPermissionService​(PermissionService permissionService)
        Parameters:
        permissionService - permission service
      • setFilePlanService

        public void setFilePlanService​(FilePlanService filePlanService)
        Parameters:
        filePlanService - file plan service
      • getFilePlans

        protected Set<NodeRef> getFilePlans()
        Helper method to get the file plans
        Returns:
        Set of file plan node references
      • addCapability

        protected void addCapability​(NodeRef filePlan,
                                     String capabilityName,
                                     String... roles)
        Adds a new capability to the specified roles.
        Parameters:
        filePlan - file plan
        capabilityName - capability name
        roles - roles
      • applyCapabilityPatch

        protected abstract void applyCapabilityPatch​(NodeRef filePlan)