Class Category
- java.lang.Object
-
- nl.tailormap.viewer.config.services.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 Summary
Fields Modifier and Type Field Description static LongROOT_CATEGORY_ID
-
Constructor Summary
Constructors Constructor Description Category()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Category>getChildren()LonggetId()StringgetName()CategorygetParent()Set<String>getReaders()List<GeoService>getServices()Set<String>getWriters()voidsetChildren(List<Category> children)voidsetId(Long id)voidsetName(String name)voidsetParent(Category parent)voidsetReaders(Set<String> readers)voidsetServices(List<GeoService> services)voidsetWriters(Set<String> writers)
-
-
-
Field Detail
-
ROOT_CATEGORY_ID
public static final Long ROOT_CATEGORY_ID
-
-
Method Detail
-
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)
-
getServices
public List<GeoService> getServices()
-
setServices
public void setServices(List<GeoService> services)
-
-