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