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
public abstract class CapabilityPatch extends AbstractModulePatch
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 Constructor Description CapabilityPatch()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addCapability(org.alfresco.service.cmr.repository.NodeRef filePlan, String capabilityName, String... roles)
Adds a new capability to the specified roles.void
apply()
Apply the module patchprotected abstract void
applyCapabilityPatch(org.alfresco.service.cmr.repository.NodeRef filePlan)
void
applyInternal()
Apply patch internal method.protected Set<org.alfresco.service.cmr.repository.NodeRef>
getFilePlans()
Helper method to get the file plansvoid
setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)
void
setFilePlanService(FilePlanService filePlanService)
void
setPermissionService(org.alfresco.service.cmr.security.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
-
-
-
-
Method Detail
-
setAuthorityService
public void setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)
- Parameters:
authorityService
- authority service
-
setPermissionService
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
- Parameters:
permissionService
- permission service
-
setFilePlanService
public void setFilePlanService(FilePlanService filePlanService)
- Parameters:
filePlanService
- file plan service
-
getFilePlans
protected Set<org.alfresco.service.cmr.repository.NodeRef> getFilePlans()
Helper method to get the file plans- Returns:
- Set of file plan node references
-
addCapability
protected void addCapability(org.alfresco.service.cmr.repository.NodeRef filePlan, String capabilityName, String... roles)
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:
AbstractModulePatch.applyInternal()
-
apply
public void apply()
Description copied from interface:ModulePatch
Apply the module patch- Specified by:
apply
in interfaceModulePatch
- Overrides:
apply
in classAbstractModulePatch
- See Also:
ModulePatch.apply()
-
applyCapabilityPatch
protected abstract void applyCapabilityPatch(org.alfresco.service.cmr.repository.NodeRef filePlan)
-
-