BrightSide Workbench Full Report + Source Code
org.turro.alliance.client.model.RequestAdapter Class Reference

Public Member Functions

 RequestAdapter (WsServer server, Jsons axPending)
 
WsServer getServer ()
 
Jsons getAxPending ()
 
boolean getBeneficiary ()
 
void setBeneficiary (boolean value)
 
boolean getOfferer ()
 
void setOfferer (boolean value)
 
boolean getConsortium ()
 
void setConsortium (boolean value)
 
String getMemberName ()
 
Dossier getProject ()
 

Detailed Description

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

Definition at line 33 of file RequestAdapter.java.

Constructor & Destructor Documentation

◆ RequestAdapter()

org.turro.alliance.client.model.RequestAdapter.RequestAdapter ( WsServer  server,
Jsons  axPending 
)

Definition at line 38 of file RequestAdapter.java.

38  {
39  this.server = server;
40  this.axPending = axPending;
41  }

Member Function Documentation

◆ getAxPending()

Jsons org.turro.alliance.client.model.RequestAdapter.getAxPending ( )

Definition at line 47 of file RequestAdapter.java.

47  {
48  return axPending;
49  }

◆ getBeneficiary()

boolean org.turro.alliance.client.model.RequestAdapter.getBeneficiary ( )

Definition at line 51 of file RequestAdapter.java.

51  {
52  return axPending.getBoolean("beneficiary");
53  }

◆ getConsortium()

boolean org.turro.alliance.client.model.RequestAdapter.getConsortium ( )

Definition at line 67 of file RequestAdapter.java.

67  {
68  return axPending.getBoolean("consortium");
69  }

◆ getMemberName()

String org.turro.alliance.client.model.RequestAdapter.getMemberName ( )

Definition at line 75 of file RequestAdapter.java.

75  {
76  return Servers.getElephantString(server.getServerDomain(), WsConstants.MEMBER_NAME,
77  Jsons.object().add("memberId", JsonSearch.of(axPending).read("$.relation.relatedMemberId", Long.class)));
78  }
String getServerDomain()
Definition: WsServer.java:52
Here is the call graph for this function:

◆ getOfferer()

boolean org.turro.alliance.client.model.RequestAdapter.getOfferer ( )

Definition at line 59 of file RequestAdapter.java.

59  {
60  return axPending.getBoolean("offerer");
61  }

◆ getProject()

Dossier org.turro.alliance.client.model.RequestAdapter.getProject ( )

Definition at line 80 of file RequestAdapter.java.

80  {
81  return new DossierPU().find(Dossier.class, JsonSearch.of(axPending).read("$.relation.mainEntityId", Long.class));
82  }

◆ getServer()

WsServer org.turro.alliance.client.model.RequestAdapter.getServer ( )

Definition at line 43 of file RequestAdapter.java.

43  {
44  return server;
45  }

◆ setBeneficiary()

void org.turro.alliance.client.model.RequestAdapter.setBeneficiary ( boolean  value)

Definition at line 55 of file RequestAdapter.java.

55  {
56  axPending = Jsons.read(axPending.search().set("$.beneficiary", value).string());
57  }

◆ setConsortium()

void org.turro.alliance.client.model.RequestAdapter.setConsortium ( boolean  value)

Definition at line 71 of file RequestAdapter.java.

71  {
72  axPending = Jsons.read(axPending.search().set("$.consortium", value).string());
73  }

◆ setOfferer()

void org.turro.alliance.client.model.RequestAdapter.setOfferer ( boolean  value)

Definition at line 63 of file RequestAdapter.java.

63  {
64  axPending = Jsons.read(axPending.search().set("$.offerer", value).string());
65  }

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