Class CapabilityPatch
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
Abstract implementation of capability patch.
- Since:
- 2.2
- Author:
- Roy Wetherall
-
Field Summary
Fields inherited from class org.alfresco.module.org_alfresco_module_rm.patch.AbstractModulePatch
LOGGER, transactionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCapability
(NodeRef filePlan, String capabilityName, String... roles) Adds a new capability to the specified roles.void
apply()
Apply the module patchprotected abstract void
applyCapabilityPatch
(NodeRef filePlan) void
Apply patch internal method.Helper method to get the file plansvoid
setAuthorityService
(AuthorityService authorityService) void
setFilePlanService
(FilePlanService filePlanService) void
setPermissionService
(PermissionService permissionService) Methods inherited from class org.alfresco.module.org_alfresco_module_rm.patch.AbstractModulePatch
compareTo, getDescription, getFixesFromSchema, getFixesToSchema, getId, getModuleId, getTargetSchema, init, setBeanName, setDescription, setFixesFromSchema, setFixesToSchema, setId, setModuleId, setModulePatchExecuter, setTargetSchema, setTransactionService, setTxnReadOnly, setTxnRequiresNew
-
Constructor Details
-
CapabilityPatch
public CapabilityPatch()
-
-
Method Details
-
setAuthorityService
- Parameters:
authorityService
- authority service
-
setPermissionService
- Parameters:
permissionService
- permission service
-
setFilePlanService
- Parameters:
filePlanService
- file plan service
-
getFilePlans
Helper method to get the file plans- Returns:
- Set of file plan node references
-
addCapability
Adds a new capability to the specified roles.- Parameters:
filePlan
- file plancapabilityName
- capability nameroles
- 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 classAbstractModulePatch
- See Also:
-
apply
public void apply()Description copied from interface:ModulePatch
Apply the module patch- Specified by:
apply
in interfaceModulePatch
- Overrides:
apply
in classAbstractModulePatch
- See Also:
-
applyCapabilityPatch
-