Class 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 constructor
      OnmsCategory​(java.lang.String name)
      Constructor for OnmsCategory.
      OnmsCategory​(java.lang.String name, java.lang.String descr)
      Constructor for OnmsCategory.
    • Constructor Detail

      • OnmsCategory

        public OnmsCategory​(java.lang.String name,
                            java.lang.String descr)

        Constructor for OnmsCategory.

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

        public OnmsCategory()
        default constructor
      • OnmsCategory

        public OnmsCategory​(java.lang.String name)

        Constructor for OnmsCategory.

        Parameters:
        name - a String 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 - a Integer object.
      • getName

        public java.lang.String getName()

        getName

        Returns:
        a String object.
      • setName

        public void setName​(java.lang.String name)

        setName

        Parameters:
        name - a String object.
      • getDescription

        public java.lang.String getDescription()

        getDescription

        Returns:
        a String object.
      • setDescription

        public void setDescription​(java.lang.String description)

        setDescription

        Parameters:
        description - a String 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 - a Set object.
      • toString

        public java.lang.String toString()

        toString

        Overrides:
        toString in class java.lang.Object
        Returns:
        a String object.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()

        hashCode

        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a int.
      • compareTo

        public int compareTo​(OnmsCategory o)

        compareTo

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