Class 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$ $Date$
    See Also:
    Serialized Form
    • Constructor Detail

      • Component

        public Component()
    • Method Detail

      • getId

        public java.lang.String getId()
        Description copied from interface: IComponent
        Returns the component identifier.
        Specified by:
        getId in interface IComponent
        Returns:
        the component identifier.
      • getVersion

        public IVersion getVersion()
        Description copied from interface: IComponent
        Returns the component version.
        Specified by:
        getVersion in interface IComponent
        Returns:
        the component version.
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: IComponent
        Returns the component description.
        Specified by:
        getDescription in interface IComponent
        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 interface IComponent
        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 interface IComponent
        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 interface IComponent
        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 not null), the checksum will always be null.
        Specified by:
        getChecksum in interface IComponent
        Returns:
        the hexadecimal string MD5 checksum of this component or null if this component belongs to an editable module (i.e. IModule.getSourceDir() is not null).
      • 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 interface IComponent
        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 interface IComponent
        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 interface IComponent
        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 interface IComponent
        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 interface IComponent
        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 class java.lang.Object