Package org.opennms.netmgt.model
Class OnmsCategory
- java.lang.Object
-
- org.opennms.netmgt.model.OnmsCategory
-
- All Implemented Interfaces:
Serializable
,Comparable<OnmsCategory>
@Entity public class OnmsCategory extends Object implements Serializable, Comparable<OnmsCategory>
OnmsCategory class.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OnmsCategory()
default constructorOnmsCategory(String name)
Constructor for OnmsCategory.OnmsCategory(String name, String descr)
Constructor for OnmsCategory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(OnmsCategory o)
compareToboolean
equals(Object obj)
Set<String>
getAuthorizedGroups()
getAuthorizedGroupsString
getDescription()
getDescriptionInteger
getId()
getIdString
getName()
getNameint
hashCode()
hashCodevoid
setAuthorizedGroups(Set<String> authorizedGroups)
setAuthorizedGroupsvoid
setDescription(String description)
setDescriptionvoid
setId(Integer id)
setIdvoid
setName(String name)
setNameString
toString()
toString
-
-
-
Method Detail
-
setDescription
public void setDescription(String description)
setDescription
- Parameters:
description
- aString
object.
-
getAuthorizedGroups
public Set<String> getAuthorizedGroups()
getAuthorizedGroups
- Returns:
- a
Set
object.
-
setAuthorizedGroups
public void setAuthorizedGroups(Set<String> authorizedGroups)
setAuthorizedGroups
- Parameters:
authorizedGroups
- aSet
object.
-
toString
public String toString()
toString
-
compareTo
public int compareTo(OnmsCategory o)
compareTo
- Specified by:
compareTo
in interfaceComparable<OnmsCategory>
- Parameters:
o
- aOnmsCategory
object.- Returns:
- a int.
-
-