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 voidaddCapability(NodeRef filePlan, String capabilityName, String... roles) Adds a new capability to the specified roles.voidapply()Apply the module patchprotected abstract voidapplyCapabilityPatch(NodeRef filePlan) voidApply patch internal method.Helper method to get the file plansvoidsetAuthorityService(AuthorityService authorityService) voidsetFilePlanService(FilePlanService filePlanService) voidsetPermissionService(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:AbstractModulePatchApply patch internal method. Implementations can assume a transaction has been started.- Specified by:
applyInternalin classAbstractModulePatch- See Also:
-
apply
public void apply()Description copied from interface:ModulePatchApply the module patch- Specified by:
applyin interfaceModulePatch- Overrides:
applyin classAbstractModulePatch- See Also:
-
applyCapabilityPatch
-