19 package org.turro.alliance.client.model;
21 import org.turro.dossier.db.DossierPU;
22 import org.turro.dossier.entity.Dossier;
23 import org.turro.json.JsonSearch;
24 import org.turro.json.Jsons;
25 import org.turro.ws.WsServer;
26 import org.turro.ws.service.WsConstants;
27 import org.turro.ws.service.member.Servers;
36 private Jsons axPending;
40 this.axPending = axPending;
52 return axPending.getBoolean(
"beneficiary");
56 axPending = Jsons.read(axPending.search().set(
"$.beneficiary", value).string());
60 return axPending.getBoolean(
"offerer");
64 axPending = Jsons.read(axPending.search().set(
"$.offerer", value).string());
68 return axPending.getBoolean(
"consortium");
72 axPending = Jsons.read(axPending.search().set(
"$.consortium", value).string());
76 return Servers.getElephantString(server.
getServerDomain(), WsConstants.MEMBER_NAME,
77 Jsons.object().add(
"memberId", JsonSearch.of(axPending).read(
"$.relation.relatedMemberId", Long.class)));
81 return new DossierPU().find(
Dossier.class, JsonSearch.of(axPending).read(
"$.relation.mainEntityId", Long.class));
84 public <T> T getRequest() {
85 return JsonSearch.of(axPending).silent().root();
RequestAdapter(WsServer server, Jsons axPending)
void setConsortium(boolean value)
void setBeneficiary(boolean value)
void setOfferer(boolean value)