Class ContentWorkflowMetaData

  • All Implemented Interfaces:
    java.lang.Cloneable

    @StableMinor(version="15.0",
                 sinceVersion="4.2")
    public class ContentWorkflowMetaData
    extends java.lang.Object
    implements java.lang.Cloneable
    Value class for a content's workflow metadata.
    Since:
    4.0.0
    Version:
    $Revision: 25304 $ $Date: 2022-10-22 22:51:05 -0300 (Sat, 22 Oct 2022) $
    • Constructor Detail

      • ContentWorkflowMetaData

        public ContentWorkflowMetaData()
    • Method Detail

      • getContentLocaleId

        public java.lang.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​(java.lang.String contentLocaleId)
        Sets the ContentLocale this workflow metadata belongs to.
        Parameters:
        contentLocaleId - the content locale identifier.
        Since:
        4.2.0
      • getMetaDataId

        public java.lang.String getMetaDataId()
        Deprecated.
        Since 4.2.0, replaced by getContentLocaleId().
        The metadata identifier.
        Returns:
        the metadata identifier.
        See Also:
        MetaDataConfig
      • setMetaDataId

        @Deprecated
        public void setMetaDataId​(java.lang.String metaDataId)
        Deprecated.
        Since 4.2.0, replaced by setContentLocaleId(String).
        Sets the metadata identifier.
        Parameters:
        metaDataId - the metadata identifier.
        See Also:
        getContentLocaleId()
      • getWorkflowMetaDataId

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

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

        public java.lang.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​(java.lang.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 java.lang.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​(java.lang.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
      • clone

        public ContentWorkflowMetaData clone()
        Returns a clone of this ContentWorkflowMetaData instance.
        Overrides:
        clone in class java.lang.Object
        Since:
        10.0.0