Class ContentPublication

    • Constructor Detail

      • ContentPublication

        public ContentPublication()
    • Method Detail

      • getId

        public String getId()
        Return the unique identifier for this publication object.
        Returns:
        the unique identifier for this publication object.
        Since:
        4.2.0
      • isHighlight

        public boolean isHighlight()
        Indicates if this publication is currently highlighted.
        Returns:
        true if it is currently highlighted, false otherwise.
        Since:
        4.2.0
      • setHighlight

        public void setHighlight​(boolean highlight)
        Sets the highlight property for this publication.
        Parameters:
        highlight - true to enable the highlight, false to disable it.
        Since:
        4.2.0
        See Also:
        getHighlightEndDateTime()
      • getHighlightEndDateTime

        public Date getHighlightEndDateTime()
        Returns the date-time when this publication should no longer be highlighted.
        Returns:
        the date-time, or null if no maximum limit for highlight exists.
        Since:
        4.2.0
      • setHighlightEndDateTime

        public void setHighlightEndDateTime​(Date highlightEndDateTime)
        Sets the date-time when this publication should no longer be highlighted. If set to null, there will be no maximum time limit for the highlight.
        Parameters:
        highlightEnd - the date-time value to set.
        Since:
        4.2.0
      • getPublishEndDateTime

        public Date getPublishEndDateTime()
        Returns the maximum date-time limit for this publication.
        Returns:
        the date-time, or null if no maximum limit for this publication exists.
        Since:
        4.2.0
      • setPublishEndDateTime

        public void setPublishEndDateTime​(Date publishEndDateTime)
        Sets the maximum time limit for this publication. If set to null, there will be no maximum time limit for the publication.
        Parameters:
        publishEndDateTime - the date-time value to set.
        Since:
        4.2.0
      • getPublishStartDateTime

        public Date getPublishStartDateTime()
        Returns the initial date-time from which the publication is to be done.
        Returns:
        the date-time, or null if no minimum limit for this publication exists.
        Since:
        4.2.0
      • setPublishStartDateTime

        public void setPublishStartDateTime​(Date publishStartDateTime)
        Sets the initial date-time from which the publication is to be done. If set to null, there will be no minimum time limit for the publication.
        Parameters:
        publishStartDateTime - the date-time value to set.
        Since:
        4.2.0
      • isPublished

        public boolean isPublished()
        Indicates if this publication is currently published. The value for this property is automatically set by the content framework accordingly to other content properties.
        Returns:
        true if it is currently published, false otherwise.
        Since:
        4.2.0
      • getServiceInstanceIds

        public Collection<String> getServiceInstanceIds()
        Returns the identifiers of the service instances this publication is done to. The returned collection may be changed to edit the service instances associated with this publication.
        Returns:
        collection containing the associated service instance identifiers.
        Since:
        4.2.0
      • getPrincipalIds

        public Collection<String> getPrincipalIds()
        Returns the identifiers of the principals this publication is done to. The returned collection may be changed to edit the principals associated with this publication.
        Returns:
        collection containing the associated principal identifiers.
        Since:
        4.2.0
      • getContentVersion

        public ContentVersion getContentVersion()
        Returns the content version this publication belongs to.
        Returns:
        the content version.
        Since:
        4.2.0
      • updateCalculatedFields

        public void updateCalculatedFields()
                                    throws PortalException
        Updates this publication's calculated fields. This calculation occurs automatically before adding or updating the publication in the persistence.

        This method may be called directly to force immediate fields calculations, or when no other change is done but it is desired to update the calculated fields.

        Throws:
        PortalException
        Since:
        4.2.0