◆ add()
void org.turro.alliance.client.model.PublishChallengeVM.add |
( |
| ) |
|
Definition at line 68 of file PublishChallengeVM.java.
69 if(server !=
null && !inModel(server)) {
70 AxChallengeCategory pc =
new AxChallengeCategory();
72 pc.setChallenge(challenge);
76 Toasts.message(I_.get(
"Already in model"));
◆ delete()
void org.turro.alliance.client.model.PublishChallengeVM.delete |
( |
@BindingParam("category") AxChallengeCategory |
category | ) |
|
Definition at line 95 of file PublishChallengeVM.java.
96 deletions.add(category);
97 model.removeIf(pc -> pc.getServerDomain().equals(category.getServerDomain()));
◆ getCategories()
Jsons org.turro.alliance.client.model.PublishChallengeVM.getCategories |
( |
AxChallengeCategory |
pc | ) |
|
Definition at line 134 of file PublishChallengeVM.java.
135 return Servers.getData(WsServer.from(pc.getServerDomain(), AxServer.SERVER_SERVICE), AxConstants.TALENT_CATEGORIES);
◆ getModel()
Definition at line 108 of file PublishChallengeVM.java.
110 model = SqlClause.select(
"pc").from(
"AxChallengeCategory pc")
111 .where().equal(
"pc.challengeId", String.valueOf(challenge.
getId()))
112 .dao(
new AlliancePU())
113 .resultList(AxChallengeCategory.class);
◆ getServer()
WsServer org.turro.alliance.client.model.PublishChallengeVM.getServer |
( |
| ) |
|
◆ init()
void org.turro.alliance.client.model.PublishChallengeVM.init |
( |
@ExecutionArgParam("challenge") Challenge |
challenge | ) |
|
Definition at line 51 of file PublishChallengeVM.java.
52 if(challenge !=
null) this.challenge = challenge;
53 if(this.challenge ==
null) {
54 this.challenge = (Challenge) Executions.getCurrent().getAttribute(
"challenge");
◆ isNeedsSave()
boolean org.turro.alliance.client.model.PublishChallengeVM.isNeedsSave |
( |
| ) |
|
◆ save()
void org.turro.alliance.client.model.PublishChallengeVM.save |
( |
| ) |
|
Definition at line 82 of file PublishChallengeVM.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.PublishChallengeVM.setNeedsSave |
( |
boolean |
needsSave | ) |
|
◆ setServer()
void org.turro.alliance.client.model.PublishChallengeVM.setServer |
( |
WsServer |
server | ) |
|
The documentation for this class was generated from the following file: