@Entity public class Category extends Object
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.
| Constructor and Description |
|---|
Category() |
| Modifier and Type | Method and Description |
|---|---|
List<Category> |
getChildren() |
Long |
getId() |
String |
getName() |
Category |
getParent() |
Set<String> |
getReaders() |
static Category |
getRootCategory() |
List<GeoService> |
getServices() |
Set<String> |
getWriters() |
void |
setChildren(List<Category> children) |
void |
setId(Long id) |
void |
setName(String name) |
void |
setParent(Category parent) |
void |
setReaders(Set<String> readers) |
void |
setServices(List<GeoService> services) |
void |
setWriters(Set<String> writers) |
public Long getId()
public void setId(Long id)
public String getName()
public void setName(String name)
public Category getParent()
public void setParent(Category parent)
public List<GeoService> getServices()
public void setServices(List<GeoService> services)
public static Category getRootCategory()
Copyright © 2018. All rights reserved.