Class CMSCategory

java.lang.Object
io.goobi.viewer.model.cms.CMSCategory
All Implemented Interfaces:
Serializable, Comparable<CMSCategory>

@Entity public class CMSCategory extends Object implements Comparable<CMSCategory>, Serializable

CMSCategory class.

Author:
florian
See Also:
  • Constructor Details

    • CMSCategory

      public CMSCategory()

      Constructor for CMSCategory.

    • CMSCategory

      public CMSCategory(String name)

      Constructor for CMSCategory.

      Parameters:
      name - a String object.
    • CMSCategory

      public CMSCategory(CMSCategory blueprint, boolean keepId)

      Constructor for CMSCategory.

      Parameters:
      blueprint - a CMSCategory object.
      keepId - a boolean.
  • Method Details

    • isInUse

      public boolean isInUse() throws DAOException
      Returns:
      true if there are CMS pages or media using this category; false otherwise
      Throws:
      DAOException
    • getId

      public Long getId()

      Getter for the field id.

      Returns:
      the id
    • setId

      public void setId(Long id)

      Setter for the field id.

      Parameters:
      id - the id to set
    • getName

      public String getName()

      Getter for the field name.

      Returns:
      the name
    • setName

      public void setName(String name)

      Setter for the field name.

      Parameters:
      name - the name to set
    • getDescription

      public String getDescription()

      Getter for the field description.

      Returns:
      the description
    • setDescription

      public void setDescription(String description)

      Setter for the field description.

      Parameters:
      description - the description to set
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

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

      public int compareTo(CMSCategory other)
      Specified by:
      compareTo in interface Comparable<CMSCategory>