org.opennms.netmgt.model
Class OnmsCategory

java.lang.Object
  extended by org.opennms.netmgt.model.OnmsCategory
All Implemented Interfaces:
Serializable, Comparable<OnmsCategory>

public class OnmsCategory
extends Object
implements Serializable, Comparable<OnmsCategory>

OnmsCategory class.

See Also:
Serialized Form

Constructor Summary
OnmsCategory()
          default constructor
OnmsCategory(String name)
          Constructor for OnmsCategory.
OnmsCategory(String name, String descr)
          Constructor for OnmsCategory.
 
Method Summary
 int compareTo(OnmsCategory o)
          compareTo
 boolean equals(Object obj)
          
 Set<String> getAuthorizedGroups()
          getAuthorizedGroups
 String getDescription()
          getDescription
 Integer getId()
          getId
 String getName()
          getName
 int hashCode()
          hashCode
 void setAuthorizedGroups(Set<String> authorizedGroups)
          setAuthorizedGroups
 void setDescription(String description)
          setDescription
 void setId(Integer id)
          setId
 void setName(String name)
          setName
 String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OnmsCategory

public OnmsCategory(String name,
                    String descr)

Constructor for OnmsCategory.

Parameters:
name - a String object.
descr - a String object.

OnmsCategory

public OnmsCategory()
default constructor


OnmsCategory

public OnmsCategory(String name)

Constructor for OnmsCategory.

Parameters:
name - a String object.
Method Detail

getId

public Integer getId()

getId

Returns:
a Integer object.

setId

public void setId(Integer id)

setId

Parameters:
id - a Integer object.

getName

public String getName()

getName

Returns:
a String object.

setName

public void setName(String name)

setName

Parameters:
name - a String object.

getDescription

public String getDescription()

getDescription

Returns:
a String object.

setDescription

public void setDescription(String description)

setDescription

Parameters:
description - a String object.

getAuthorizedGroups

public Set<String> getAuthorizedGroups()

getAuthorizedGroups

Returns:
a Set object.

setAuthorizedGroups

public void setAuthorizedGroups(Set<String> authorizedGroups)

setAuthorizedGroups

Parameters:
authorizedGroups - a Set object.

toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

hashCode

Overrides:
hashCode in class Object
Returns:
a int.

compareTo

public int compareTo(OnmsCategory o)

compareTo

Specified by:
compareTo in interface Comparable<OnmsCategory>
Parameters:
o - a OnmsCategory object.
Returns:
a int.


Copyright © 2011. All Rights Reserved.