92 criteria.add(
"projectId", e.context().read(
"$.projectId.entityId", String.class));
93 Jsons project = P2Ps.getP2PData(getServer().getServerDomain(),
94 e.context().read(
"$.projectId.memberId", Long.class),
95 AxP2PServer.AX_P2P_SERVICE, AxConstants.PROJECT,
criteria);
97 Jsons memberInfo = Servers.getData(getServer(), WsConstants.CLIENT_INFO);
98 ProjectCtrl banctrl =
new ProjectCtrl();
99 banctrl.setServer(getServer());
100 banctrl.setAxId(e.getString(
"id"));
101 banctrl.setAction(ProjectAction.TOGGLE_BAN);
102 marker.put(
"banctrl", banctrl);
103 ProjectCtrl offctrl =
new ProjectCtrl();
104 offctrl.setServer(getServer());
105 offctrl.setAxId(e.getString(
"id"));
106 offctrl.setAction(ProjectAction.PARTICIPATE);
107 offctrl.setParticiationLabel(
"Offerer");
108 marker.put(
"offctrl", offctrl);
109 ProjectCtrl benctrl =
new ProjectCtrl();
110 benctrl.setServer(getServer());
111 benctrl.setAxId(e.getString(
"id"));
112 benctrl.setAction(ProjectAction.PARTICIPATE);
113 benctrl.setParticiationLabel(
"Beneficiary");
114 marker.put(
"benctrl", benctrl);
115 ProjectCtrl conctrl =
new ProjectCtrl();
116 conctrl.setServer(getServer());
117 conctrl.setAxId(e.getString(
"id"));
118 conctrl.setAction(ProjectAction.PARTICIPATE);
119 conctrl.setParticiationLabel(
"Consortium");
120 marker.put(
"conctrl", conctrl);
122 marker.put(
"dossier", JsonSearch.of(project).silent().root());
124 criteria.add(
"projectId", e.context().read(
"$.projectId.entityId", String.class));
125 Jsons attachments = P2Ps.getP2PData(getServer().getServerDomain(),
126 e.context().read(
"$.projectId.memberId", Long.class),
127 AxP2PServer.AX_P2P_SERVICE, AxConstants.ATTACHMENTS,
criteria);
128 marker.put(
"attachments", JsonSearch.of(attachments).silent().root());
129 marker.put(
"server", getServer());
130 marker.put(
"domain", getServer().getServerDomain());
131 marker.put(
"service", getServer().getService());
132 marker.put(
"member", e.context().read(
"$.projectId.memberId", Long.class));
133 marker.put(
"serverFace", getServer().getContact().getFaces().getUrl());
134 marker.put(
"axid", e.getString(
"id"));
135 marker.put(
"selfMember", memberInfo.getLong(
"id"));
136 if(Objects.equals(marker.get(
"member"), marker.get(
"selfMember"))) {
137 marker.put(
"internalLink", Entities.getController(
"/dossier/" + e.context().read(
"$.projectId.entityId")).getEntityUrl());