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

Public Member Functions

boolean writeEntityInfo (Writer out, Path path, EntityInfoType type, LinkType link)
 
String resolveLink (String link)
 

Detailed Description

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

Definition at line 42 of file AllianceEntityInfo.java.

Member Function Documentation

◆ resolveLink()

String org.turro.alliance.content.AllianceEntityInfo.resolveLink ( String  link)

Implements org.turro.action.IEntityInfo.

Definition at line 66 of file AllianceEntityInfo.java.

66  {
67  return null;
68  }

◆ writeEntityInfo()

boolean org.turro.alliance.content.AllianceEntityInfo.writeEntityInfo ( Writer  out,
Path  path,
EntityInfoType  type,
LinkType  link 
)

Implements org.turro.action.IEntityInfo.

Definition at line 45 of file AllianceEntityInfo.java.

45  {
46  if("axparticipation".equals(path.getRoot())) {
47  try {
48  String[] nodes = path.getNode(1).split("__");
49  Jsons ud = P2Ps.getP2PData(path.getFrom(2).substring(1), Converter.STANDARD.convert(nodes[1], Long.class),
50  P2PServer.P2P_SERVICE, WsConstants.USER_DATA, Jsons.object().add("userId", nodes[0]));
51  HashMap<String, Object> args = new HashMap<>();
52  args.put("entityPath", path.getPath());
53  args.put("resolver", this);
54  args.put("name", ud.getString("userName"));
55  args.put("email", ud.getString("userEmail"));
56  out.write(EntitiesInfo.getString(null, null, "alliance/client/participation", type, link, args));
57  return true;
58  } catch (IOException ex) {
59  WebLoggers.severe(this).exception(ex).log();
60  }
61  }
62  return false;
63  }
Here is the call graph for this function:

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