◆ CategoryJsonTree()
org.turro.alliance.client.CategoryJsonTree.CategoryJsonTree |
( |
WsServer |
server, |
|
|
IConstructor |
constructor, |
|
|
Writer |
writer |
|
) |
| |
◆ criteria()
Jsons org.turro.alliance.client.CategoryJsonTree.criteria |
( |
| ) |
|
|
protected |
◆ getEntity()
Jsons org.turro.alliance.client.CategoryJsonTree.getEntity |
( |
Long |
id | ) |
|
|
protected |
Definition at line 80 of file CategoryJsonTree.java.
81 return flat().stream()
82 .filter(i -> Objects.equals(
id, i.getId()))
83 .map(i -> i.getValue())
84 .findFirst().orElse(
null);
◆ getId()
Long org.turro.alliance.client.CategoryJsonTree.getId |
( |
Jsons |
entity | ) |
|
|
protected |
◆ getParentId()
Long org.turro.alliance.client.CategoryJsonTree.getParentId |
( |
Jsons |
entity | ) |
|
|
protected |
Definition at line 72 of file CategoryJsonTree.java.
73 return Optional.ofNullable(entity.getObject(
"parent"))
74 .filter(parent -> !Jsons.isNull(parent))
75 .map(parent -> parent.getLong(
"categoryId"))
◆ getTemplateRoot()
String org.turro.alliance.client.CategoryJsonTree.getTemplateRoot |
( |
| ) |
|
|
protected |
◆ reason()
String org.turro.alliance.client.CategoryJsonTree.reason |
( |
| ) |
|
|
protected |
◆ renderItem()
void org.turro.alliance.client.CategoryJsonTree.renderItem |
( |
ElephantMarker |
marker, |
|
|
Jsons |
item |
|
) |
| |
|
protected |
◆ renderTree()
void org.turro.alliance.client.CategoryJsonTree.renderTree |
( |
ElephantMarker |
marker, |
|
|
List< Item< Jsons, Long >> |
items |
|
) |
| |
|
protected |
Definition at line 45 of file CategoryJsonTree.java.
46 marker.put(
"server", getServer());
47 marker.put(
"items", items);
The documentation for this class was generated from the following file: