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 Stringname of example scriptprotected static final NodeRefold behavior scripts folder root lookupprotected static final NodeRefrm config folder root lookupFields inherited from class org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent
behaviourFilter, modulePatchExecuter, registryService, retryingTransactionHelperFields inherited from class org.alfresco.repo.module.AbstractModuleComponent
authenticationComponent, moduleService, serviceRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidExecute patch work.voidsetFileFolderService(FileFolderService fileFolderService) voidsetNodeService(NodeService nodeService) Methods inherited from class org.alfresco.module.org_alfresco_module_rm.patch.v21.RMv21PatchComponent
init, setApplicationContextMethods inherited from class org.alfresco.module.org_alfresco_module_rm.patch.compatibility.ModulePatchComponent
executeInternal, setBehaviourFilter, setModulePatchExecuter, setRegistryService, setRetryingTransactionHelperMethods 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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:ModulePatchComponentExecute patch work.- Specified by:
executePatchin classModulePatchComponent- See Also:
-