Class Blog

Object
Blog
All Implemented Interfaces:
Serializable, Ownage

@Entity public class Blog extends Object implements Serializable, Ownage
A blog from one of the administrators of the game. Will be visible on the central page.
Author:
maartenl
See Also:
  • Constructor Details

  • Method Details

    • getId

      public Long getId()
    • setId

      public void setId(Long id)
    • getCreateDate

      public LocalDateTime getCreateDate()
    • setCreateDate

      public void setCreateDate(LocalDateTime createDate)
    • getModifiedDate

      public LocalDateTime getModifiedDate()
    • setModifiedDate

      public void setModifiedDate(LocalDateTime modifiedDate)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • getUrlTitle

      public String getUrlTitle()
    • setUrlTitle

      public void setUrlTitle(String urlTitle)
    • getContents

      public String getContents()
    • setContents

      public void setContents(String contents)
    • getOwner

      public Admin getOwner()
      Description copied from interface: Ownage
      Retrieves the owner, the administrator, of this object. In case this is null, anyone can edit the object.
      Specified by:
      getOwner in interface Ownage
      Returns:
    • setOwner

      public void setOwner(Admin owner)
      Description copied from interface: Ownage
      Sets the owner, the administrator, of this object.
      Specified by:
      setOwner in interface Ownage
      Parameters:
      owner - the owner/administrator of the object. In case this is null, which is allowed, any administrator can edit this object. This is what happens when an object is "disowned".
    • getName

      public String getName()
      The name of the owner of this blog post.
      Returns:
      owners name (a deputy)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getContent

      public String getContent()
    • getHtmlContent

      public String getHtmlContent()
      Returns HTML content, to be more specific, it capitalizes the first letter of the blogpost into a pretty image.
      Returns:
      capitalized blogpost