Package lumis.portal.deployment
Class WorkflowRegisterHelper
- java.lang.Object
-
- lumis.portal.deployment.WorkflowRegisterHelper
-
public class WorkflowRegisterHelper extends Object
Helper that handles workflow register in a module.- Since:
- 12.4.0
- Version:
- $Revision: 23904 $ $Date: 2020-06-16 12:23:44 -0300 (Tue, 16 Jun 2020) $
-
-
Constructor Summary
Constructors Constructor Description WorkflowRegisterHelper(IComponent component, Collection<IModule> currentlyInstalledModules, boolean forceReprocess)
WorkflowRegisterHelper(IModule module, Collection<IModule> currentlyInstalledModules, boolean forceReprocess)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<IDeployObject>
findComponentDefinitions(IComponent component, EnumSet<IDeployObject.ObjectType> allowedInnerObjects)
Finds objects in the given component.protected Collection<IDeployObject>
findModuleObjects(Module module, IDeployObject.ObjectType objectType, EnumSet<IDeployObject.ObjectType> allowedInnerObjects)
Finds the objects of the given type in the given module.void
registerComponentDefinitions(IComponent component)
Register the definitions in a component.void
registerModuleDefinitions()
Register the definitions in a module.protected boolean
shouldUnregister(SessionConfig sessionConfig, IDeployObject definition, ITransaction transaction)
Indicates whether a definition item is to be unregistered.void
unregisterComponentDefinitions(IComponent component)
Unregister the definitions in a component.void
unregisterModuleDefinitions()
Unregister the definitions in a module.
-
-
-
Constructor Detail
-
WorkflowRegisterHelper
public WorkflowRegisterHelper(IModule module, Collection<IModule> currentlyInstalledModules, boolean forceReprocess)
-
WorkflowRegisterHelper
public WorkflowRegisterHelper(IComponent component, Collection<IModule> currentlyInstalledModules, boolean forceReprocess)
-
-
Method Detail
-
shouldUnregister
protected boolean shouldUnregister(SessionConfig sessionConfig, IDeployObject definition, ITransaction transaction) throws PortalException
Indicates whether a definition item is to be unregistered. This is usually the case if the item is currently registered but does not exist anymore with the changes done in the current deployment.This method is called before calling
#unregister(SessionConfig, String, ITransaction)
to decide which items will be unregistered.- Parameters:
sessionConfig
- user session information.transaction
- transaction for persistence access.- Returns:
true
if the item is to be unregistered,false
otherwise.- Throws:
PortalException
-
registerModuleDefinitions
public void registerModuleDefinitions() throws PortalException
Register the definitions in a module.- Parameters:
module
- the module.- Throws:
PortalException
- if any error occurs during the process.- Since:
- 7.1.0
-
findModuleObjects
protected Collection<IDeployObject> findModuleObjects(Module module, IDeployObject.ObjectType objectType, EnumSet<IDeployObject.ObjectType> allowedInnerObjects)
Finds the objects of the given type in the given module.- Parameters:
module
- the module.objectType
- the object type.allowedInnerObjects
- the allowed inner object types.- Returns:
- the found objects.
- Since:
- 8.1.0
-
registerComponentDefinitions
public void registerComponentDefinitions(IComponent component) throws PortalException
Register the definitions in a component.- Parameters:
component
- the component.- Throws:
PortalException
- if any error occurs during the process.- Since:
- 7.1.0
-
findComponentDefinitions
protected Collection<IDeployObject> findComponentDefinitions(IComponent component, EnumSet<IDeployObject.ObjectType> allowedInnerObjects)
Finds objects in the given component.- Parameters:
component
- the component.allowedInnerObjects
- the allowed inner object types.- Returns:
- the found objects.
- Since:
- 8.1.0
-
unregisterModuleDefinitions
public void unregisterModuleDefinitions() throws PortalException
Unregister the definitions in a module.- Parameters:
module
- the module.- Throws:
PortalException
- if any error occurs during the process.- Since:
- 7.1.0
-
unregisterComponentDefinitions
public void unregisterComponentDefinitions(IComponent component) throws PortalException
Unregister the definitions in a component.- Parameters:
component
- the component.- Throws:
PortalException
- if any error occurs during the process.- Since:
- 7.1.0
-
-