java.lang.Object
org.alfresco.module.org_alfresco_module_rm.patch.AbstractModulePatch
org.alfresco.module.org_alfresco_module_rm.patch.common.CapabilityPatch
All Implemented Interfaces:
Comparable<ModulePatch>, ModulePatch, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware
Direct Known Subclasses:
RMv22CapabilityPatch, RMv22FileHoldReportCapabilityPatch, RMv22HoldCapabilityPatch, RMv23EndRetentionCapabilityPatch

public abstract class CapabilityPatch extends AbstractModulePatch
Abstract implementation of capability patch.
Since:
2.2
Author:
Roy Wetherall
  • Constructor Details

    • CapabilityPatch

      public CapabilityPatch()
  • Method Details

    • 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
    • applyInternal

      public void applyInternal()
      Description copied from class: AbstractModulePatch
      Apply patch internal method. Implementations can assume a transaction has been started.
      Specified by:
      applyInternal in class AbstractModulePatch
      See Also:
    • apply

      public void apply()
      Description copied from interface: ModulePatch
      Apply the module patch
      Specified by:
      apply in interface ModulePatch
      Overrides:
      apply in class AbstractModulePatch
      See Also:
    • applyCapabilityPatch

      protected abstract void applyCapabilityPatch(NodeRef filePlan)