Class ContentWorkflowMetaData

  • All Implemented Interfaces:
    Cloneable

    @StableMinor(version="14.2",
                 sinceVersion="4.2")
    public class ContentWorkflowMetaData
    extends Object
    implements Cloneable
    Value class for a content's workflow metadata.
    Since:
    4.0.0
    Version:
    $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
    • Constructor Detail

      • ContentWorkflowMetaData

        public ContentWorkflowMetaData()
    • Method Detail

      • getContentLocaleId

        public String getContentLocaleId()
        The identifier of the ContentLocale this workflow metadata belongs to.
        Returns:
        the content locale identifier.
        Since:
        4.2.0
      • setContentLocaleId

        public void setContentLocaleId​(String contentLocaleId)
        Sets the ContentLocale this workflow metadata belongs to.
        Parameters:
        contentLocaleId - the content locale identifier.
        Since:
        4.2.0
      • getWorkflowMetaDataId

        public String getWorkflowMetaDataId()
        Returns the identifier of this workflow metadata.
        Returns:
        the identifier of this workflow metadata.
      • setWorkflowMetaDataId

        public void setWorkflowMetaDataId​(String workflowMetaDataId)
        Sets the identifier for this workflow metadata.
        Parameters:
        workflowMetaDataId - the identifier to set.
      • getAssignedTo

        public String getAssignedTo()
        Returns the principal identifier to which the content is assigned to. Returns null if the content is not assigned to any principal.
        Returns:
        the principal identifier to which the content is assigned to, or null if the content is not assigned to any principal.
      • setAssignedTo

        public void setAssignedTo​(String assignedTo)
        Sets the principal identifier to which the content is assigned to.
        Parameters:
        assignedTo - the principal identifier, or null to leave the content unassigned.
      • getStateId

        public String getStateId()
        Returns the identifier of the workflow state the content is currently in.
        Returns:
        the identifier of the workflow state the content is currently in.
      • setStateId

        public void setStateId​(String stateId)
        Sets the workflow state the content is currently in.
        Parameters:
        stateId - the workflow state's identifier.
      • getAssignedToPrincipal

        public PrincipalConfig getAssignedToPrincipal()
        Utility method that returns the PrincipalConfig in current transaction that corresponds to the getAssignedTo() stored in this ContentWorkflowMetaData.
        Returns:
        the PrincipalConfig instance, or null if getAssignedTo() is null.
        Since:
        10.0.0