Class Category


  • @Entity
    public class Category
    extends Object
    Entity to categorize geo services in a tree structure. A Category is like a directory in a file system containing GeoService entities like files.

    There always exists a category with id=0 and name="root". This category should not be shown in the user interface, only its children as root elements.

    If the readers list is not empty, only roles listed in readers are allowed read access. Same with writers. Parent readers and writers override the lists of children.

    Author:
    Matthijs Laan
    • Field Detail

      • ROOT_CATEGORY_ID

        public static final Long ROOT_CATEGORY_ID
    • Constructor Detail

      • Category

        public Category()
    • Method Detail

      • setChildren

        public void setChildren​(List<Category> children)
      • getId

        public Long getId()
      • setId

        public void setId​(Long id)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getParent

        public Category getParent()
      • setParent

        public void setParent​(Category parent)
      • getReaders

        public Set<String> getReaders()
      • setReaders

        public void setReaders​(Set<String> readers)
      • getWriters

        public Set<String> getWriters()
      • setWriters

        public void setWriters​(Set<String> writers)
      • setServices

        public void setServices​(List<GeoService> services)