Class RMv21BehaviorScriptsPatch
java.lang.Object
org.alfresco.repo.module.AbstractModuleComponent
org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent
org.alfresco.module.org_alfresco_module_rm.patch.v21.RMv21PatchComponent
org.alfresco.module.org_alfresco_module_rm.patch.v21.RMv21BehaviorScriptsPatch
- All Implemented Interfaces:
ModuleComponent
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.context.ApplicationContextAware
public class RMv21BehaviorScriptsPatch
extends RMv21PatchComponent
implements org.springframework.beans.factory.BeanNameAware
This patch creates a new "Records Management Behavior Scripts" folder and moves existing behavior scripts from the old "Records Management Scripts" folder to the new folder.
This is to compensate for any non-behavior RM scripts so that they can live in the old "Records Management Scripts" folder for its intended purpose and be picked up by the
execute script rule action.
- Since:
- 2.1
- Author:
- Craig Tan
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
name of example scriptprotected static final NodeRef
old behavior scripts folder root lookupprotected static final NodeRef
rm config folder root lookupFields inherited from class org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent
behaviourFilter, modulePatchExecuter, registryService, retryingTransactionHelper
Fields inherited from class org.alfresco.repo.module.AbstractModuleComponent
authenticationComponent, moduleService, serviceRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Execute patch work.void
setFileFolderService
(FileFolderService fileFolderService) void
setNodeService
(NodeService nodeService) Methods inherited from class org.alfresco.module.org_alfresco_module_rm.patch.v21.RMv21PatchComponent
init, setApplicationContext
Methods inherited from class org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent
executeInternal, setBehaviourFilter, setModulePatchExecuter, setRegistryService, setRetryingTransactionHelper
Methods inherited from class org.alfresco.repo.module.AbstractModuleComponent
checkProperties, equals, execute, getAppliesFromVersionNumber, getAppliesToVersionNumber, getDependsOn, getDescription, getModuleId, getName, getSinceVersionNumber, hashCode, isExecuteOnceOnly, setAppliesFromVersion, setAppliesToVersion, setAuthenticationComponent, setBeanName, setDependsOn, setDescription, setExecuteOnceOnly, setModuleId, setModuleService, setName, setServiceRegistry, setSinceVersion, setTenantAdminService, shutdown, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.BeanNameAware
setBeanName
-
Field Details
-
RM_CONFIG
rm config folder root lookup -
OLD_BEHAVIOR_SCRIPTS_FOLDER
old behavior scripts folder root lookup -
IS_CLOSED_JS
name of example script- See Also:
-
-
Constructor Details
-
RMv21BehaviorScriptsPatch
public RMv21BehaviorScriptsPatch()
-
-
Method Details
-
setNodeService
- Parameters:
nodeService
- node service
-
setFileFolderService
- Parameters:
fileFolderService
- file folder service
-
executePatch
protected void executePatch()Description copied from class:ModulePatchComponent
Execute patch work.- Specified by:
executePatch
in classModulePatchComponent
- See Also:
-