Package io.goobi.viewer.model.cms
Class CMSCategory
java.lang.Object
io.goobi.viewer.model.cms.CMSCategory
- All Implemented Interfaces:
Serializable,Comparable<CMSCategory>
CMSCategory class.
- Author:
- florian
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for CMSCategory.CMSCategory(CMSCategory blueprint, boolean keepId) Constructor for CMSCategory.CMSCategory(String name) Constructor for CMSCategory. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(CMSCategory other) booleanGetter for the fielddescription.getId()Getter for the fieldid.getName()Getter for the fieldname.inthashCode()booleanisInUse()voidsetDescription(String description) Setter for the fielddescription.voidSetter for the fieldid.voidSetter for the fieldname.toString()
-
Constructor Details
-
CMSCategory
public CMSCategory()Constructor for CMSCategory.
-
CMSCategory
Constructor for CMSCategory.
- Parameters:
name- aStringobject.
-
CMSCategory
Constructor for CMSCategory.
- Parameters:
blueprint- aCMSCategoryobject.keepId- a boolean.
-
-
Method Details
-
isInUse
- Returns:
- true if there are CMS pages or media using this category; false otherwise
- Throws:
DAOException
-
getId
Getter for the field
id.- Returns:
- the id
-
setId
Setter for the field
id.- Parameters:
id- the id to set
-
getName
Getter for the field
name.- Returns:
- the name
-
setName
Setter for the field
name.- Parameters:
name- the name to set
-
getDescription
Getter for the field
description.- Returns:
- the description
-
setDescription
Setter for the field
description.- Parameters:
description- the description to set
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<CMSCategory>
-