Class PostInfoImpl

  • All Implemented Interfaces:
    java.io.Serializable, PermissionCheckValue, PostInfo

    public class PostInfoImpl
    extends java.lang.Object
    implements PostInfo
    An implementation of PostInfo
    Since:
    4.0
    Author:
    Nick Burch (based on existing webscript controllers in the REST API)
    See Also:
    Serialized Form
    • Constructor Detail

      • PostInfoImpl

        public PostInfoImpl()
        Creates a new, empty PostInfo
      • PostInfoImpl

        public PostInfoImpl​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                            java.lang.String systemName,
                            TopicInfo topic)
        Create a PostInfo object from an existing node
    • Method Detail

      • getNodeRef

        public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
        Description copied from interface: PermissionCheckValue
        Get the underlying node value that needs to be permission checked.
        Specified by:
        getNodeRef in interface PermissionCheckValue
        Specified by:
        getNodeRef in interface PostInfo
        Returns:
        the NodeRef of the underlying post
      • getSystemName

        public java.lang.String getSystemName()
        Specified by:
        getSystemName in interface PostInfo
        Returns:
        the System generated name for the post
      • getTitle

        public java.lang.String getTitle()
        Specified by:
        getTitle in interface PostInfo
        Returns:
        the Title of the post (if set)
      • getContents

        public java.lang.String getContents()
        Specified by:
        getContents in interface PostInfo
        Returns:
        the HTML Content of the post
      • getCreator

        public java.lang.String getCreator()
        Specified by:
        getCreator in interface PostInfo
        Returns:
        the creator of the post
      • getModifier

        public java.lang.String getModifier()
        Specified by:
        getModifier in interface PostInfo
        Returns:
        the modifier of the wiki page
      • getCreatedAt

        public java.util.Date getCreatedAt()
        Specified by:
        getCreatedAt in interface PostInfo
        Returns:
        the creation date and time
      • getModifiedAt

        public java.util.Date getModifiedAt()
        Specified by:
        getModifiedAt in interface PostInfo
        Returns:
        the modification date and time
      • getUpdatedAt

        public java.util.Date getUpdatedAt()
        Specified by:
        getUpdatedAt in interface PostInfo
        Returns:
        the updated-at date and time
      • setTitle

        public void setTitle​(java.lang.String title)
        Description copied from interface: PostInfo
        Sets the Title of the post. Normally only the Primary Post in a Topic has a Title set.
        Specified by:
        setTitle in interface PostInfo
      • setContents

        public void setContents​(java.lang.String contents)
        Description copied from interface: PostInfo
        Sets the (HTML) Content of the post
        Specified by:
        setContents in interface PostInfo
      • setCreator

        public void setCreator​(java.lang.String creator)
      • setModifier

        public void setModifier​(java.lang.String modifier)
      • setCreatedAt

        public void setCreatedAt​(java.util.Date createdAt)
      • setModifiedAt

        public void setModifiedAt​(java.util.Date modifiedAt)
      • setUpdatedAt

        public void setUpdatedAt​(java.util.Date updatedAt)