19 package org.turro.alliance.client.model;
21 import java.util.List;
22 import org.turro.alliance.db.AlliancePU;
23 import org.turro.alliance.service.AxConstants;
24 import org.turro.alliance.service.AxServer;
25 import org.turro.jpa.Dao;
26 import org.turro.json.Jsons;
27 import org.turro.member.db.entities.AxProjectCategory;
28 import org.turro.sql.SqlClause;
29 import org.turro.ws.WsServer;
30 import org.turro.ws.service.member.Servers;
31 import org.zkoss.bind.annotation.Command;
32 import org.zkoss.bind.annotation.NotifyChange;
45 this.needsSave = needsSave;
48 @NotifyChange(
"model")
59 @NotifyChange(
"model")
63 model.stream().filter(pc -> pc.isEmpty())
65 model.removeIf(pc -> pc.isEmpty());
72 private boolean needsSave;
74 private List<AxProjectCategory> model;
78 model = SqlClause.select(
"pc").from(
"AxProjectCategory pc")
Jsons getCategories(AxProjectCategory pc)
List< AxProjectCategory > getModel()
void setNeedsSave(boolean needsSave)
void setServer(WsServer server)
static final String SERVER_SERVICE
void deleteEntity(IDaoEntity entity)
void saveEntities(Collection<? extends IDaoEntity > entities)
void setServerDomain(String serverDomain)
static WsServer from(String serverDomain, String service)