- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 46 of file PublishVM.java.
◆ add()
void org.turro.alliance.client.model.PublishVM.add |
( |
| ) |
|
Definition at line 68 of file PublishVM.java.
69 if(server !=
null && !inModel(server)) {
70 AxProjectCategory pc =
new AxProjectCategory();
72 pc.setDossier(dossier);
76 Toasts.message(I_.get(
"Already in model"));
◆ delete()
void org.turro.alliance.client.model.PublishVM.delete |
( |
@BindingParam("category") AxProjectCategory |
category | ) |
|
Definition at line 95 of file PublishVM.java.
96 deletions.add(category);
97 model.removeIf(pc -> pc.getServerDomain().equals(category.getServerDomain()));
◆ getCategories()
Jsons org.turro.alliance.client.model.PublishVM.getCategories |
( |
AxProjectCategory |
pc | ) |
|
Definition at line 134 of file PublishVM.java.
135 return Servers.getData(WsServer.from(pc.getServerDomain(), AxServer.SERVER_SERVICE), AxConstants.CATEGORIES);
◆ getModel()
Definition at line 108 of file PublishVM.java.
110 model = SqlClause.select(
"pc").from(
"AxProjectCategory pc")
111 .where().equal(
"pc.projectId", String.valueOf(dossier.
getId()))
112 .dao(
new AlliancePU())
113 .resultList(AxProjectCategory.class);
◆ getServer()
WsServer org.turro.alliance.client.model.PublishVM.getServer |
( |
| ) |
|
◆ init()
void org.turro.alliance.client.model.PublishVM.init |
( |
@ExecutionArgParam("dossier") Dossier |
dossier | ) |
|
Definition at line 51 of file PublishVM.java.
52 if(dossier !=
null) this.dossier = dossier;
53 if(this.dossier ==
null) {
54 this.dossier = (Dossier) Executions.getCurrent().getAttribute(
"dossier");
◆ isNeedsSave()
boolean org.turro.alliance.client.model.PublishVM.isNeedsSave |
( |
| ) |
|
◆ save()
void org.turro.alliance.client.model.PublishVM.save |
( |
| ) |
|
Definition at line 82 of file PublishVM.java.
83 Dao dao =
new AlliancePU();
84 model.stream().filter(pc -> pc.isEmpty())
85 .forEach(pc -> dao.deleteEntity(pc));
86 model.removeIf(pc -> pc.isEmpty());
87 dao.saveEntities(model);
88 dao.deleteCollection(deletions);
◆ setNeedsSave()
void org.turro.alliance.client.model.PublishVM.setNeedsSave |
( |
boolean |
needsSave | ) |
|
◆ setServer()
void org.turro.alliance.client.model.PublishVM.setServer |
( |
WsServer |
server | ) |
|
The documentation for this class was generated from the following file: