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

Static Public Attributes

static final String AX_P2P_SERVICE = "/axp2pserver"
 

Protected Member Functions

void doProcess (Application application, KeyValueMap map, Jsons json, String reason)
 

Detailed Description

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

Definition at line 42 of file AxP2PServer.java.

Member Function Documentation

◆ 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.

47  {
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))
51  .dao(new DossierPU())
52  .singleResult(Dossier.class);
53  if(project != null) {
54  writeJsonResponse(application,
55  DossierJsonVisualFilter.from(SecurityGroup.PARTNER)
56  .filter(Stubs.jsonverb(project)));
57  }
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"));
63  }
64  }
Here is the call graph for this function:

Member Data Documentation

◆ AX_P2P_SERVICE

final String org.turro.alliance.service.AxP2PServer.AX_P2P_SERVICE = "/axp2pserver"
static

Definition at line 44 of file AxP2PServer.java.


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