Package org.dspace.app.cris.network

Examples of org.dspace.app.cris.network.NetworkPlugin


        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,
View Full Code Here


            try
            {
                if (checkAvailableData(request, conn, dept))
                {
                    availableConnections.add(conn);
                    NetworkPlugin plugin = (NetworkPlugin) (PluginManager.getNamedPlugin(NetworkPlugin.CFG_MODULE,
                            NetworkPlugin.class, conn));
                    colorsNodes.put(conn, plugin.getNodeCustomColor());
                    colorsEdges.put(conn, plugin.getEdgeCustomColor());
                    maxDepths.put(conn, plugin.getCustomMaxDepth());
                    i++;
                }
            }
            catch (SearchServiceException e)
            {
View Full Code Here

    String dept = req.getParameter("dept");
   
    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);
    }

               
    List<JsGraph> graph = new LinkedList<JsGraph>();
    // search data from connection
    try {

        Integer maxDepth = plugin.getCustomMaxDepth();
     
      log.info("Request build graph for: " + dept);
      DeptGraphBuilderUtils builder = new DeptGraphBuilderUtils();
      builder.buildGraph(service, null, dept, plugin, graph, 0, maxDepth, showALL, ConstantNetwork.ENTITY_DEPT, false, dept);
View Full Code Here

            try
            {
                if (checkAvailableData(request, conn, authority))
                {
                    availableConnections.add(conn);
                    NetworkPlugin plugin = (NetworkPlugin) (PluginManager.getNamedPlugin(NetworkPlugin.CFG_MODULE,
                            NetworkPlugin.class, conn));
                    colorsNodes.put(conn, plugin.getNodeCustomColor());
                    colorsEdges.put(conn, plugin.getEdgeCustomColor());
                    maxDepths.put(conn, plugin.getCustomMaxDepth());
                    i++;
                }
            }
            catch (SearchServiceException e)
            {
View Full Code Here

            try
            {
                VisualizationGraphSolrService.getSolr().deleteByQuery(
                        "type:\"" + connection + "\"");

                NetworkPlugin plugin = (NetworkPlugin) PluginManager
                        .getNamedPlugin(NetworkPlugin.CFG_MODULE, NetworkPlugin.class, connection);
                // load data from connection
                plugin.load(discardedNode, importedNodes, otherError); // load
                                                                       // all
                                                                       // node

            }
            catch (Exception e)
View Full Code Here

                break external;
            }
            // get plugin
            try
            {
                NetworkPlugin plugin = (NetworkPlugin) PluginManager
                        .getNamedPlugin(NetworkPlugin.CFG_MODULE, NetworkPlugin.class, connection);
                // load data from connection
                plugin.loadMetrics(discardedNode, importedNodes, otherError); // load
                // all
                // node

            }
            catch (Exception e)
View Full Code Here

TOP

Related Classes of org.dspace.app.cris.network.NetworkPlugin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.