- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 42 of file AxP2PServer.java.
◆ doProcess()
void org.turro.alliance.service.AxP2PServer.doProcess |
( |
Application |
application, |
|
|
KeyValueMap |
map, |
|
|
Jsons |
json, |
|
|
String |
reason |
|
) |
| |
|
protected |
Definition at line 47 of file AxP2PServer.java.
48 if(AxConstants.PROJECT.equals(reason)) {
49 Dossier project = SqlClause.select(
"d").from(
"Dossier d")
50 .where().equal(
"id", Converter.STANDARD.convert(json.getString(
"projectId"), Long.class))
52 .singleResult(Dossier.class);
54 writeJsonResponse(application,
55 DossierJsonVisualFilter.from(SecurityGroup.PARTNER)
56 .filter(Stubs.jsonverb(project)));
58 }
else if(AxConstants.ATTACHMENTS.equals(reason)) {
59 writeJsonResponse(application, Attachments.from(
"/dossier/" + json.getString(
"projectId"))
60 .onlyPublic().banRestricted().getTree().toJson());
61 }
else if(AxConstants.ATTACHMENT.equals(reason)) {
62 AttachmentUtil.respond(respond(application), json.getLong(
"attachId"));
◆ AX_P2P_SERVICE
final String org.turro.alliance.service.AxP2PServer.AX_P2P_SERVICE = "/axp2pserver" |
|
static |
The documentation for this class was generated from the following file: