19 package org.turro.alliance.iterator;
21 import java.util.List;
22 import org.turro.alliance.client.Projects;
23 import org.turro.alliance.service.AxServer;
24 import org.turro.alliance.service.AxClient;
25 import org.turro.annotation.ElephantHelper;
26 import org.turro.elephant.db.ElephantPU;
27 import org.turro.json.JsonSearch;
28 import org.turro.json.Jsons;
29 import org.turro.marker.IElephantHelper;
30 import org.turro.sql.SqlClause;
31 import org.turro.ws.WsMember;
32 import org.turro.ws.WsServer;
33 import org.turro.ws.service.WsConstants;
34 import org.turro.ws.service.member.Servers;
49 return SqlClause.select(
"s").from(
"WsServer s")
56 Jsons servers = Jsons.array();
57 getServers().forEach(server -> servers.addValue(Jsons.read(server.toJson())));
62 return SqlClause.select(
"m").from(
"WsMember m")
69 Jsons members = Jsons.array();
70 getMembers().forEach(member -> members.addValue(Jsons.read(member.toJson())));
75 return Servers.getElephantString(serverDomain, WsConstants.MEMBER_FACE,
76 Jsons.object().add(
"memberId", memberId));
80 return Servers.getElephantString(serverDomain, WsConstants.MEMBER_NAME,
81 Jsons.object().add(
"memberId", memberId));
84 public <T> T getAxParticipations(
WsServer server, String axId) {
88 public <T> T getAxParticipations(WsServer server, String axId, String as) {
89 return JsonSearch.of(Projects.from(server).axParticipations(axId, as)).silent().root();
Jsons axParticipations(String axId)
static Projects from(WsServer server)
String getMemberName(String serverDomain, Long memberId)
List< WsMember > getMembers()
List< WsServer > getServers()
String getMemberFace(String serverDomain, Long memberId)
static final String CLIENT_SERVICE
static final String SERVER_SERVICE