Package lumis.portal.deployment
Class Component
- java.lang.Object
-
- lumis.portal.deployment.Component
-
- All Implemented Interfaces:
java.io.Serializable
,IComponent
public class Component extends java.lang.Object implements IComponent
Component implementation.- Since:
- 7.1.0
- Version:
- $Revision: 21880 $ $Date: 2018-09-21 17:07:19 -0300 (Fri, 21 Sep 2018) $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Component()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getChannelId()
Returns the identifier of the component channel.java.lang.String
getChecksum()
Returns the hexadecimal string MD5 checksum of this component.
If this component belongs to an editable module (i.e.org.w3c.dom.Node
getConstraints()
Returns the constraints.java.util.Date
getDeploymentDateTime()
Returns the date-time of the deployment of this module.java.lang.String
getDeployMessage()
Returns a message of all errors and warnings occurred during deployment process.java.lang.String
getDescription()
Returns the component description.java.lang.String
getId()
Returns the component identifier.java.lang.String
getLastUpgradeStepExecuted()
Returns the lastUpgradeStepExecuted.ComponentObject
getMetadata()
Returns this component's metadata.ComponentObject
getMetadataForComparing()
Returns the meta data that should be used for comparing this component (or its inner objects) to other one.IModule
getModule()
Returns the owner module of the component.int
getNumErrors()
Returns the amount of errors in the last deployment operation over the module.int
getNumWarnings()
Returns the amount of warnings in the last deployment operation over the module.java.lang.String
getPublicFilesChannelId()
Returns the public files channel Id.java.lang.String
getRawVersion()
Returns the rawVersion.org.w3c.dom.Node
getReplace()
Returns the replace.java.lang.String
getSourcePath()
Returns the component source path.ComponentStatus
getStatus()
Returns the component state.IVersion
getVersion()
Returns the component version.void
setChannelId(java.lang.String channelId)
Sets the channelId.void
setChecksum(java.lang.String checksum)
Sets the checksum.void
setConstraints(org.w3c.dom.Node constraints)
Sets the constraints.void
setDeploymentDateTime(java.util.Date deploymentDateTime)
Sets the deploymentDateTime.void
setDeployMessage(java.lang.String deployMessage)
Sets the deployMessage.void
setDescription(java.lang.String description)
Sets the description.void
setId(java.lang.String id)
void
setLastUpgradeStepExecuted(java.lang.String lastUpgradeStepExecuted)
Sets the lastUpgradeStepExecuted.void
setNumErrors(int numErrors)
Sets the numErrors.void
setNumWarnings(int numWarnings)
Sets the numWarnings.void
setPublicFilesChannelId(java.lang.String publicFilesChannelId)
Sets the publicFilesChannelId.void
setRawVersion(java.lang.String rawVersion)
Sets the rawVersion.void
setReplace(org.w3c.dom.Node replace)
Sets the replace.void
setSourcePath(java.lang.String sourcePath)
Sets the sourcePath.void
setStatus(ComponentStatus status)
Sets the status.void
setVersion(IVersion version)
Sets the version.java.lang.String
toString()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Description copied from interface:IComponent
Returns the component identifier.- Specified by:
getId
in interfaceIComponent
- Returns:
- the component identifier.
-
getVersion
public IVersion getVersion()
Description copied from interface:IComponent
Returns the component version.- Specified by:
getVersion
in interfaceIComponent
- Returns:
- the component version.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:IComponent
Returns the component description.- Specified by:
getDescription
in interfaceIComponent
- Returns:
- the component description.
-
getChannelId
public java.lang.String getChannelId()
Description copied from interface:IComponent
Returns the identifier of the component channel.- Specified by:
getChannelId
in interfaceIComponent
- Returns:
- the identifier of the component channel.
-
getPublicFilesChannelId
public java.lang.String getPublicFilesChannelId()
Description copied from interface:IComponent
Returns the public files channel Id. This attribute indicates what channel to use to identify the website directory to which the public files of this component should be copied to. If not specified public files of this component will be copied to all registered website directories.- Specified by:
getPublicFilesChannelId
in interfaceIComponent
- Returns:
- the identifier of the channel to be used to calculate the website.
-
getSourcePath
public java.lang.String getSourcePath()
Description copied from interface:IComponent
Returns the component source path.- Specified by:
getSourcePath
in interfaceIComponent
- Returns:
- the component source path.
-
getChecksum
public java.lang.String getChecksum()
Description copied from interface:IComponent
Returns the hexadecimal string MD5 checksum of this component.
If this component belongs to an editable module (i.e.IModule.getSourceDir()
is notnull
), the checksum will always benull
.- Specified by:
getChecksum
in interfaceIComponent
- Returns:
- the hexadecimal string MD5 checksum of this component or
null
if this component belongs to an editable module (i.e.IModule.getSourceDir()
is notnull
).
-
getStatus
public ComponentStatus getStatus()
Description copied from interface:IComponent
Returns the component state.- Specified by:
getStatus
in interfaceIComponent
- Returns:
- the component state.
-
getDeployMessage
public java.lang.String getDeployMessage()
Description copied from interface:IComponent
Returns a message of all errors and warnings occurred during deployment process.- Specified by:
getDeployMessage
in interfaceIComponent
- Returns:
- a string.
-
getNumErrors
public int getNumErrors()
Description copied from interface:IComponent
Returns the amount of errors in the last deployment operation over the module.- Specified by:
getNumErrors
in interfaceIComponent
- Returns:
- the amount of errors.
-
getNumWarnings
public int getNumWarnings()
Description copied from interface:IComponent
Returns the amount of warnings in the last deployment operation over the module.- Specified by:
getNumWarnings
in interfaceIComponent
- Returns:
- the amount of warnings.
-
getDeploymentDateTime
public java.util.Date getDeploymentDateTime()
Description copied from interface:IComponent
Returns the date-time of the deployment of this module.- Specified by:
getDeploymentDateTime
in interfaceIComponent
- Returns:
- the date-time of the deployment of this module.
-
setId
public void setId(java.lang.String id)
-
setDescription
public void setDescription(java.lang.String description)
Sets the description.- Parameters:
description
- the description value to set.- Since:
- 7.1.0
-
getRawVersion
public java.lang.String getRawVersion()
Returns the rawVersion.- Returns:
- the rawVersion
- Since:
- 7.1.0
-
setRawVersion
public void setRawVersion(java.lang.String rawVersion)
Sets the rawVersion.- Parameters:
rawVersion
- the rawVersion value to set.- Since:
- 7.1.0
-
setVersion
public void setVersion(IVersion version)
Sets the version.- Parameters:
version
- the version value to set.- Since:
- 7.1.0
-
setChannelId
public void setChannelId(java.lang.String channelId)
Sets the channelId.- Parameters:
channelId
- the channelId value to set.- Since:
- 7.1.0
-
setPublicFilesChannelId
public void setPublicFilesChannelId(java.lang.String publicFilesChannelId)
Sets the publicFilesChannelId.- Parameters:
publicFilesChannelId
- the public files channelId value to set.- Since:
- 11.0.0
-
setSourcePath
public void setSourcePath(java.lang.String sourcePath)
Sets the sourcePath.- Parameters:
sourcePath
- the sourcePath value to set.- Since:
- 7.1.0
-
setChecksum
public void setChecksum(java.lang.String checksum)
Sets the checksum.- Parameters:
checksum
- the checksum value to set.- Since:
- 7.1.0
-
setStatus
public void setStatus(ComponentStatus status)
Sets the status.- Parameters:
status
- the status value to set.- Since:
- 7.1.0
-
setNumErrors
public void setNumErrors(int numErrors)
Sets the numErrors.- Parameters:
numErrors
- the numErrors value to set.- Since:
- 7.1.0
-
setNumWarnings
public void setNumWarnings(int numWarnings)
Sets the numWarnings.- Parameters:
numWarnings
- the numWarnings value to set.- Since:
- 7.1.0
-
setDeployMessage
public void setDeployMessage(java.lang.String deployMessage)
Sets the deployMessage.- Parameters:
deployMessage
- the deployMessage value to set.- Since:
- 7.1.0
-
setDeploymentDateTime
public void setDeploymentDateTime(java.util.Date deploymentDateTime)
Sets the deploymentDateTime.- Parameters:
deploymentDateTime
- the deploymentDateTime value to set.- Since:
- 7.1.0
-
getConstraints
public org.w3c.dom.Node getConstraints()
Returns the constraints.- Returns:
- the constraints
- Since:
- 7.1.0
-
setConstraints
public void setConstraints(org.w3c.dom.Node constraints)
Sets the constraints.- Parameters:
constraints
- the constraints value to set.- Since:
- 7.1.0
-
getReplace
public org.w3c.dom.Node getReplace()
Returns the replace.- Returns:
- the replace
- Since:
- 7.1.0
-
setReplace
public void setReplace(org.w3c.dom.Node replace)
Sets the replace.- Parameters:
replace
- the replace value to set.- Since:
- 7.1.0
-
getModule
public IModule getModule()
Description copied from interface:IComponent
Returns the owner module of the component.- Specified by:
getModule
in interfaceIComponent
- Returns:
- the owner module of the component.
-
getLastUpgradeStepExecuted
public java.lang.String getLastUpgradeStepExecuted()
Returns the lastUpgradeStepExecuted.- Returns:
- the lastUpgradeStepExecuted
- Since:
- 7.1.0
-
setLastUpgradeStepExecuted
public void setLastUpgradeStepExecuted(java.lang.String lastUpgradeStepExecuted)
Sets the lastUpgradeStepExecuted.- Parameters:
lastUpgradeStepExecuted
- the lastUpgradeStepExecuted value to set.- Since:
- 7.1.0
-
getMetadata
public ComponentObject getMetadata()
Returns this component's metadata.- Returns:
- this component's metadata.
- Since:
- 8.1.0
-
getMetadataForComparing
public ComponentObject getMetadataForComparing() throws PortalException
Returns the meta data that should be used for comparing this component (or its inner objects) to other one.- Returns:
- the meta data that should be used for comparing this component (or its inner objects) to other one.
- Throws:
PortalException
- Since:
- 10.4.0
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-