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
ConstructorDescriptionConstructor for CMSCategory.CMSCategory
(CMSCategory blueprint, boolean keepId) Constructor for CMSCategory.CMSCategory
(String name) Constructor for CMSCategory. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(CMSCategory other) boolean
Getter for the fielddescription
.getId()
Getter for the fieldid
.getName()
Getter for the fieldname
.int
hashCode()
boolean
isInUse()
void
setDescription
(String description) Setter for the fielddescription
.void
Setter for the fieldid
.void
Setter for the fieldname
.toString()
-
Constructor Details
-
CMSCategory
public CMSCategory()Constructor for CMSCategory.
-
CMSCategory
Constructor for CMSCategory.
- Parameters:
name
- aString
object.
-
CMSCategory
Constructor for CMSCategory.
- Parameters:
blueprint
- aCMSCategory
object.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:
compareTo
in interfaceComparable<CMSCategory>
-