String rpName = rp.getFullName();
String connection = req.getParameter("connection");
NetworkPlugin plugin = (NetworkPlugin) PluginManager.getNamedPlugin(NetworkPlugin.CFG_MODULE,
NetworkPlugin.class, connection);
String showEXT = req.getParameter("showexternal");
boolean showALL = true;
if (showEXT != null)
{
showALL = Boolean.parseBoolean(showEXT);
}
String showSameDept = req.getParameter("showsamedept");
boolean showALLDept = true;
if (showSameDept != null)
{
showALLDept = Boolean.parseBoolean(showSameDept);
}
List<JsGraph> graph = new LinkedList<JsGraph>();
// search data from connection
try
{
Integer maxDepth = plugin.getCustomMaxDepth();
log.info("Request build graph for: " + rp);
RPGraphBuilderUtils builder = new RPGraphBuilderUtils();
List<RestrictedFieldWithLock> orgUnit = rp.getOrgUnit();
builder.buildGraph(service, researcher, rpName, plugin, graph, 0, maxDepth,