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
Fields Modifier and Type Field Description protected static String
IS_CLOSED_JS
name of example scriptprotected static NodeRef
OLD_BEHAVIOR_SCRIPTS_FOLDER
old behavior scripts folder root lookupprotected static NodeRef
RM_CONFIG
rm config folder root lookup-
Fields 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 Constructor Description RMv21BehaviorScriptsPatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
executePatch()
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
-
-
-
-
Field Detail
-
RM_CONFIG
protected static final NodeRef RM_CONFIG
rm config folder root lookup
-
OLD_BEHAVIOR_SCRIPTS_FOLDER
protected static final NodeRef OLD_BEHAVIOR_SCRIPTS_FOLDER
old behavior scripts folder root lookup
-
IS_CLOSED_JS
protected static final String IS_CLOSED_JS
name of example script- See Also:
- Constant Field Values
-
-
Method Detail
-
setNodeService
public void setNodeService(NodeService nodeService)
- Parameters:
nodeService
- node service
-
setFileFolderService
public void setFileFolderService(FileFolderService fileFolderService)
- Parameters:
fileFolderService
- file folder service
-
executePatch
protected void executePatch()
Description copied from class:ModulePatchComponent
Execute patch work.- Specified by:
executePatch
in classModulePatchComponent
- See Also:
ModulePatchComponent.executePatch()
-
-