◆ add()
void org.turro.alliance.client.model.PublishGrantVM.add |
( |
| ) |
|
Definition at line 64 of file PublishGrantVM.java.
65 if(server !=
null && !inModel(server)) {
66 AxProjectGrantPublic pc =
new AxProjectGrantPublic();
68 pc.setProjectGrant(projectGrant);
72 Toasts.message(I_.get(
"Already in model"));
◆ delete()
void org.turro.alliance.client.model.PublishGrantVM.delete |
( |
@BindingParam("pgpublic") AxProjectGrantPublic |
pgpublic | ) |
|
Definition at line 91 of file PublishGrantVM.java.
92 deletions.add(pgpublic);
93 model.removeIf(pc -> pc.getServerDomain().equals(pgpublic.getServerDomain()));
◆ getModel()
Definition at line 104 of file PublishGrantVM.java.
106 model = SqlClause.select(
"pc").from(
"AxProjectGrantPublic pc")
107 .where().equal(
"pc.projectGrantId", String.valueOf(projectGrant.
getId()))
108 .dao(
new AlliancePU())
109 .resultList(AxProjectGrantPublic.class);
◆ getServer()
WsServer org.turro.alliance.client.model.PublishGrantVM.getServer |
( |
| ) |
|
◆ init()
void org.turro.alliance.client.model.PublishGrantVM.init |
( |
@ExecutionArgParam("projectGrant") ProjectGrant |
projectGrant | ) |
|
Definition at line 47 of file PublishGrantVM.java.
48 if(projectGrant !=
null) this.projectGrant = projectGrant;
49 if(this.projectGrant ==
null) {
50 this.projectGrant = (ProjectGrant) Executions.getCurrent().getAttribute(
"projectGrant");
◆ isNeedsSave()
boolean org.turro.alliance.client.model.PublishGrantVM.isNeedsSave |
( |
| ) |
|
◆ save()
void org.turro.alliance.client.model.PublishGrantVM.save |
( |
| ) |
|
Definition at line 78 of file PublishGrantVM.java.
79 Dao dao =
new AlliancePU();
80 model.stream().filter(pc -> pc.isEmpty())
81 .forEach(pc -> dao.deleteEntity(pc));
82 model.removeIf(pc -> pc.isEmpty());
83 dao.saveEntities(model);
84 dao.deleteCollection(deletions);
◆ setNeedsSave()
void org.turro.alliance.client.model.PublishGrantVM.setNeedsSave |
( |
boolean |
needsSave | ) |
|
◆ setServer()
void org.turro.alliance.client.model.PublishGrantVM.setServer |
( |
WsServer |
server | ) |
|
The documentation for this class was generated from the following file: