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 intcompareTo(OnmsCategory o)compareTobooleanequals(Object obj)Set<String>getAuthorizedGroups()getAuthorizedGroupsStringgetDescription()getDescriptionIntegergetId()getIdStringgetName()getNameinthashCode()hashCodevoidsetAuthorizedGroups(Set<String> authorizedGroups)setAuthorizedGroupsvoidsetDescription(String description)setDescriptionvoidsetId(Integer id)setIdvoidsetName(String name)setNameStringtoString()toString
-
-
-
Method Detail
-
setDescription
public void setDescription(String description)
setDescription
- Parameters:
description- aStringobject.
-
getAuthorizedGroups
public Set<String> getAuthorizedGroups()
getAuthorizedGroups
- Returns:
- a
Setobject.
-
setAuthorizedGroups
public void setAuthorizedGroups(Set<String> authorizedGroups)
setAuthorizedGroups
- Parameters:
authorizedGroups- aSetobject.
-
toString
public String toString()
toString
-
compareTo
public int compareTo(OnmsCategory o)
compareTo
- Specified by:
compareToin interfaceComparable<OnmsCategory>- Parameters:
o- aOnmsCategoryobject.- Returns:
- a int.
-
-