BrightSide Workbench Full Report + Source Code
org.turro.alliance.iterator.AllianceHelper Class Reference
Inheritance diagram for org.turro.alliance.iterator.AllianceHelper:
Collaboration diagram for org.turro.alliance.iterator.AllianceHelper:

Public Member Functions

String getName ()
 
List< WsServergetServers ()
 
Jsons getJsonServers ()
 
List< WsMembergetMembers ()
 
Jsons getJsonMembers ()
 
String getMemberFace (String serverDomain, Long memberId)
 
String getMemberName (String serverDomain, Long memberId)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 41 of file AllianceHelper.java.

Member Function Documentation

◆ getJsonMembers()

Jsons org.turro.alliance.iterator.AllianceHelper.getJsonMembers ( )

Definition at line 68 of file AllianceHelper.java.

68  {
69  Jsons members = Jsons.array();
70  getMembers().forEach(member -> members.addValue(Jsons.read(member.toJson())));
71  return members;
72  }
Here is the call graph for this function:

◆ getJsonServers()

Jsons org.turro.alliance.iterator.AllianceHelper.getJsonServers ( )

Definition at line 55 of file AllianceHelper.java.

55  {
56  Jsons servers = Jsons.array();
57  getServers().forEach(server -> servers.addValue(Jsons.read(server.toJson())));
58  return servers;
59  }
Here is the call graph for this function:

◆ getMemberFace()

String org.turro.alliance.iterator.AllianceHelper.getMemberFace ( String  serverDomain,
Long  memberId 
)

Definition at line 74 of file AllianceHelper.java.

74  {
75  return Servers.getElephantString(serverDomain, WsConstants.MEMBER_FACE,
76  Jsons.object().add("memberId", memberId));
77  }

◆ getMemberName()

String org.turro.alliance.iterator.AllianceHelper.getMemberName ( String  serverDomain,
Long  memberId 
)

Definition at line 79 of file AllianceHelper.java.

79  {
80  return Servers.getElephantString(serverDomain, WsConstants.MEMBER_NAME,
81  Jsons.object().add("memberId", memberId));
82  }

◆ getMembers()

List<WsMember> org.turro.alliance.iterator.AllianceHelper.getMembers ( )

Definition at line 61 of file AllianceHelper.java.

61  {
62  return SqlClause.select("m").from("WsMember m")
63  .where().equal("m.service", AxClient.CLIENT_SERVICE)
64  .dao(new ElephantPU())
65  .resultList(WsMember.class);
66  }
Here is the caller graph for this function:

◆ getName()

String org.turro.alliance.iterator.AllianceHelper.getName ( )

Implements org.turro.marker.IElephantHelper.

Definition at line 44 of file AllianceHelper.java.

44  {
45  return "alliance";
46  }

◆ getServers()

List<WsServer> org.turro.alliance.iterator.AllianceHelper.getServers ( )

Definition at line 48 of file AllianceHelper.java.

48  {
49  return SqlClause.select("s").from("WsServer s")
50  .where().equal("s.service", AxServer.SERVER_SERVICE)
51  .dao(new ElephantPU())
52  .resultList(WsServer.class);
53  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: