public class Component extends Object implements IComponent
Constructor and Description |
---|
Component() |
Modifier and Type | Method and Description |
---|---|
String |
getChannelId()
Returns the identifier of the component channel.
|
String |
getChecksum()
Returns the hexadecimal string MD5 checksum of this component.
If this component belongs to an editable module (i.e. |
Node |
getConstraints()
Returns the constraints.
|
Date |
getDeploymentDateTime()
Returns the date-time of the deployment of this module.
|
String |
getDeployMessage()
Returns a message of all errors and warnings occurred during deployment
process.
|
String |
getDescription()
Returns the component description.
|
String |
getId()
Returns the component identifier.
|
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.
|
String |
getPublicFilesChannelId()
Returns the public files channel Id.
|
String |
getRawVersion()
Returns the rawVersion.
|
Node |
getReplace()
Returns the replace.
|
String |
getSourcePath()
Returns the component source path.
|
ComponentStatus |
getStatus()
Returns the component state.
|
IVersion |
getVersion()
Returns the component version.
|
void |
setChannelId(String channelId)
Sets the channelId.
|
void |
setChecksum(String checksum)
Sets the checksum.
|
void |
setConstraints(Node constraints)
Sets the constraints.
|
void |
setDeploymentDateTime(Date deploymentDateTime)
Sets the deploymentDateTime.
|
void |
setDeployMessage(String deployMessage)
Sets the deployMessage.
|
void |
setDescription(String description)
Sets the description.
|
void |
setId(String id) |
void |
setLastUpgradeStepExecuted(String lastUpgradeStepExecuted)
Sets the lastUpgradeStepExecuted.
|
void |
setNumErrors(int numErrors)
Sets the numErrors.
|
void |
setNumWarnings(int numWarnings)
Sets the numWarnings.
|
void |
setPublicFilesChannelId(String publicFilesChannelId)
Sets the publicFilesChannelId.
|
void |
setRawVersion(String rawVersion)
Sets the rawVersion.
|
void |
setReplace(Node replace)
Sets the replace.
|
void |
setSourcePath(String sourcePath)
Sets the sourcePath.
|
void |
setStatus(ComponentStatus status)
Sets the status.
|
void |
setVersion(IVersion version)
Sets the version.
|
String |
toString() |
public String getId()
IComponent
getId
in interface IComponent
public IVersion getVersion()
IComponent
getVersion
in interface IComponent
public String getDescription()
IComponent
getDescription
in interface IComponent
public String getChannelId()
IComponent
getChannelId
in interface IComponent
public String getPublicFilesChannelId()
IComponent
getPublicFilesChannelId
in interface IComponent
public String getSourcePath()
IComponent
getSourcePath
in interface IComponent
public String getChecksum()
IComponent
IModule.getSourceDir()
is not null
),
the checksum will always be null
.getChecksum
in interface IComponent
null
if this component belongs to an
editable module (i.e. IModule.getSourceDir()
is not null
).public ComponentStatus getStatus()
IComponent
getStatus
in interface IComponent
public String getDeployMessage()
IComponent
getDeployMessage
in interface IComponent
public int getNumErrors()
IComponent
getNumErrors
in interface IComponent
public int getNumWarnings()
IComponent
getNumWarnings
in interface IComponent
public Date getDeploymentDateTime()
IComponent
getDeploymentDateTime
in interface IComponent
public void setId(String id)
public void setDescription(String description)
description
- the description value to set.public String getRawVersion()
public void setRawVersion(String rawVersion)
rawVersion
- the rawVersion value to set.public void setVersion(IVersion version)
version
- the version value to set.public void setChannelId(String channelId)
channelId
- the channelId value to set.public void setPublicFilesChannelId(String publicFilesChannelId)
publicFilesChannelId
- the public files channelId value to set.public void setSourcePath(String sourcePath)
sourcePath
- the sourcePath value to set.public void setChecksum(String checksum)
checksum
- the checksum value to set.public void setStatus(ComponentStatus status)
status
- the status value to set.public void setNumErrors(int numErrors)
numErrors
- the numErrors value to set.public void setNumWarnings(int numWarnings)
numWarnings
- the numWarnings value to set.public void setDeployMessage(String deployMessage)
deployMessage
- the deployMessage value to set.public void setDeploymentDateTime(Date deploymentDateTime)
deploymentDateTime
- the deploymentDateTime value to set.public Node getConstraints()
public void setConstraints(Node constraints)
constraints
- the constraints value to set.public Node getReplace()
public void setReplace(Node replace)
replace
- the replace value to set.public IModule getModule()
IComponent
getModule
in interface IComponent
public String getLastUpgradeStepExecuted()
public void setLastUpgradeStepExecuted(String lastUpgradeStepExecuted)
lastUpgradeStepExecuted
- the lastUpgradeStepExecuted value to set.public ComponentObject getMetadata()
public ComponentObject getMetadataForComparing() throws PortalException
PortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.