Class BoardMessage

Object
BoardMessage
All Implemented Interfaces:
Serializable

@Entity public class BoardMessage extends Object implements Serializable
Author:
maartenl
See Also:
  • Constructor Details

    • BoardMessage

      public BoardMessage()
  • Method Details

    • getMessage

      public String getMessage()
      Returns the contents of the message as posted. If the message has been removed, it will return the message "Message has been removed due to offensive content.".
      Returns:
      the contents of the message on the board.
      See Also:
    • setMessage

      public void setMessage(String message)
    • getRemoved

      public boolean getRemoved()
      Indicates that the message has been removed.
      Returns:
      true if removed, false otherwise.
    • getOffensive

      public Boolean getOffensive()
      Indicates that the message has been removed, due to offensive content.
      Returns:
      true if removed, false otherwise.
    • setOffensive

      public void setOffensive(Boolean offensive)
      Parameters:
      offensive - true if the message needs be removed, due to offensive content, false otherwise.
    • setRemoved

      public void setRemoved(Boolean removed)
      Parameters:
      removed - true if the message needs be removed, fals otherwise.
    • getPinned

      public Boolean getPinned()
      Indicates if a message of a board is pinned or not.
    • setPinned

      public BoardMessage setPinned(Boolean pinned)
    • getBoard

      public Board getBoard()
    • setBoard

      public void setBoard(Board board)
    • getId

      public Long getId()
    • setId

      public void setId(Long id)
    • getPerson

      public User getPerson()
    • setPerson

      public void setPerson(User user)
    • getPosttime

      public LocalDateTime getPosttime()
    • setPosttime

      public void setPosttime(LocalDateTime posttime)
    • 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