Class AbstractDeploymentStepExecutable
- java.lang.Object
-
- lumis.portal.deployment.stepexecutable.AbstractDeploymentStepExecutable
-
- All Implemented Interfaces:
java.io.Serializable
,IDeploymentStepExecutable
,IStepExecutable
- Direct Known Subclasses:
AbstractScriptStepExecutable
,CopyComponentPublicFilesStepExecutable
,DeployComponentStepExecutable
,PostProcessModuleMetadataStepExecutable
,ProcessObserversStepExecutable
,RebuildClassloadersStepExecutable
,RegisterComponentStructuralElementsStepExecutable
,RegisterModuleStepExecutable
,RegisterModuleStructuralElementsStepExecutable
,ReloadRestConfigurationsStepExecutable
,RemoveComponentPublicFilesStepExecutable
,RemoveComponentRegisterStepExecutable
,UnregisterComponentStructuralElementsStepExecutable
,UnregisterModuleStepExecutable
,UnregisterModuleStructuralElementsStepExecutable
,UpdateModuleResgistryStepExecutable
,UpgradeComponentStepExecutable
public abstract class AbstractDeploymentStepExecutable extends java.lang.Object implements IDeploymentStepExecutable
Abstract deployment step executable.- Since:
- 7.1.0
- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractDeploymentStepExecutable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
execute(IStep step)
Executes the step code.protected abstract void
executeInternal(IStep step)
Executes the step.protected abstract DeploymentMessageWriter[]
getDeploymentMessageWriters()
Returns the deployment message writer to be used.java.lang.String
getDescription()
Returns the description of the step.protected abstract java.lang.String
getDescriptionInternal()
Returns the description of this step.protected abstract ILogger
getLogger()
Returns the logger to be used.java.lang.String
getMessage()
Returns the message of the step.protected abstract java.lang.String
getMessageInternal()
Returns the message.boolean
isMandatory()
Indicates whether the step is mandatory.java.lang.String
localize(java.lang.String localizableString, java.lang.String... parameters)
Localize a string with the given parameters.void
stepIgnored(IStep step)
Callback invoked when the step is ignored.
-
-
-
Method Detail
-
localize
public java.lang.String localize(java.lang.String localizableString, java.lang.String... parameters) throws PortalException
Localize a string with the given parameters.- Parameters:
localizableString
- the localizable string.parameters
- the localization parameters.- Returns:
- the localized string.
- Throws:
PortalException
- Since:
- 7.1.0
-
execute
public void execute(IStep step) throws java.lang.Throwable
Description copied from interface:IStepExecutable
Executes the step code.- Specified by:
execute
in interfaceIStepExecutable
- Parameters:
step
- the step owner of the executable.- Throws:
java.lang.Throwable
-
getDescription
public java.lang.String getDescription()
Description copied from interface:IStepExecutable
Returns the description of the step.- Specified by:
getDescription
in interfaceIStepExecutable
- Returns:
- the description of the step.
-
getMessage
public java.lang.String getMessage()
Description copied from interface:IStepExecutable
Returns the message of the step.- Specified by:
getMessage
in interfaceIStepExecutable
- Returns:
- the message of the step.
-
stepIgnored
public void stepIgnored(IStep step) throws java.lang.Throwable
Description copied from interface:IStepExecutable
Callback invoked when the step is ignored.- Specified by:
stepIgnored
in interfaceIStepExecutable
- Parameters:
step
- the ignored step.- Throws:
java.lang.Throwable
-
isMandatory
public boolean isMandatory()
Description copied from interface:IDeploymentStepExecutable
Indicates whether the step is mandatory.- Specified by:
isMandatory
in interfaceIDeploymentStepExecutable
- Returns:
- whether the step is mandatory.
-
getMessageInternal
protected abstract java.lang.String getMessageInternal() throws java.lang.Throwable
Returns the message.- Returns:
- the message.
- Throws:
java.lang.Throwable
- Since:
- 7.1.0
-
executeInternal
protected abstract void executeInternal(IStep step) throws java.lang.Throwable
Executes the step.- Parameters:
step
- the step.- Throws:
java.lang.Throwable
- Since:
- 7.1.0
-
getLogger
protected abstract ILogger getLogger()
Returns the logger to be used.- Returns:
- the logger to be used.
- Since:
- 7.1.0
-
getDeploymentMessageWriters
protected abstract DeploymentMessageWriter[] getDeploymentMessageWriters()
Returns the deployment message writer to be used.- Returns:
- the deployment message writer to be used.
- Since:
- 10.2.0
-
getDescriptionInternal
protected abstract java.lang.String getDescriptionInternal() throws java.lang.Throwable
Returns the description of this step.- Returns:
- the description of this step.
- Throws:
java.lang.Throwable
- Since:
- 7.1.0
-
-