- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 38 of file ProjectsVM.java.
◆ add()
void org.turro.alliance.client.model.ProjectsVM.add |
( |
| ) |
|
Definition at line 50 of file ProjectsVM.java.
52 AxProjectCategory pc =
new AxProjectCategory();
◆ getCategories()
Jsons org.turro.alliance.client.model.ProjectsVM.getCategories |
( |
AxProjectCategory |
pc | ) |
|
Definition at line 97 of file ProjectsVM.java.
98 return Servers.getData(WsServer.from(pc.getServerDomain(), AxServer.SERVER_SERVICE), AxConstants.CATEGORIES);
◆ getModel()
Definition at line 76 of file ProjectsVM.java.
78 model = SqlClause.select(
"pc").from(
"AxProjectCategory pc")
79 .dao(
new AlliancePU())
80 .resultList(AxProjectCategory.class);
◆ getServer()
WsServer org.turro.alliance.client.model.ProjectsVM.getServer |
( |
| ) |
|
◆ isNeedsSave()
boolean org.turro.alliance.client.model.ProjectsVM.isNeedsSave |
( |
| ) |
|
◆ save()
void org.turro.alliance.client.model.ProjectsVM.save |
( |
| ) |
|
Definition at line 61 of file ProjectsVM.java.
62 Dao dao =
new AlliancePU();
63 model.stream().filter(pc -> pc.isEmpty())
64 .forEach(pc -> dao.deleteEntity(pc));
65 model.removeIf(pc -> pc.isEmpty());
66 dao.saveEntities(model);
◆ setNeedsSave()
void org.turro.alliance.client.model.ProjectsVM.setNeedsSave |
( |
boolean |
needsSave | ) |
|
◆ setServer()
void org.turro.alliance.client.model.ProjectsVM.setServer |
( |
WsServer |
server | ) |
|
The documentation for this class was generated from the following file: