Class CategoryInfo

  • All Implemented Interfaces:
    java.io.Serializable

    @OpenApi
    public class CategoryInfo
    extends java.lang.Object
    implements java.io.Serializable
    Project category information object. So far project categories are single level - no tree structure.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.UUID id  
      private java.lang.String name  
      private java.util.Set<java.util.UUID> nested  
      private java.util.UUID parentID  
    • Constructor Summary

      Constructors 
      Constructor Description
      CategoryInfo​(java.util.UUID id, java.lang.String name)
      Constructs category with the given name and no projects assigned to it.
      CategoryInfo​(java.util.UUID id, java.lang.String name, java.util.UUID parentID, java.util.Set<java.util.UUID> nested)
      Constructs category with the given name and no projects assigned to it.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.util.UUID getID()
      Gets category identifier
      java.lang.String getName()
      Gets category name
      java.util.Set<java.util.UUID> getNested()
      Get nested category id
      java.util.UUID getParentID()
      Get category parent id
      int hashCode()  
      void setName​(java.lang.String name)
      Sets category name.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • id

        private final java.util.UUID id
      • name

        private java.lang.String name
      • parentID

        private final java.util.UUID parentID
      • nested

        private final java.util.Set<java.util.UUID> nested
    • Constructor Detail

      • CategoryInfo

        public CategoryInfo​(@CheckForNull
                            java.util.UUID id,
                            java.lang.String name,
                            @CheckForNull
                            java.util.UUID parentID,
                            java.util.Set<java.util.UUID> nested)
        Constructs category with the given name and no projects assigned to it.
        Parameters:
        id - identifier
        name - the category name
        parentID - parent category id
        nested - nested category id
      • CategoryInfo

        public CategoryInfo​(@CheckForNull
                            java.util.UUID id,
                            java.lang.String name)
        Constructs category with the given name and no projects assigned to it.
        Parameters:
        id - identifier
        name - the category name
    • Method Detail

      • getParentID

        @OpenApi
        @CheckForNull
        public java.util.UUID getParentID()
        Get category parent id
        Returns:
        parent category id
      • getNested

        @OpenApi
        public java.util.Set<java.util.UUID> getNested()
        Get nested category id
        Returns:
        nested category ids
      • getID

        @CheckForNull
        @OpenApi
        public java.util.UUID getID()
        Gets category identifier
        Returns:
        category identifier or null if it is unspecified
      • getName

        @OpenApi
        public java.lang.String getName()
        Gets category name
        Returns:
        name of the category
      • setName

        public void setName​(java.lang.String name)
        Sets category name.
        Parameters:
        name - a new category name
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object