Examples of DTOMetric


Examples of org.dspace.app.cris.network.dto.DTOMetric

            external: for (String conn : connections)
            {
                Iterator<SolrDocument> iter = rows.iterator();
                internal: while (iter.hasNext())
                {
                    DTOMetric metric = new DTOMetric();

                    SolrDocument publication = iter.next();

                    Integer rp_id = (Integer) publication
                            .getFirstValue("search.resourceid");
                    String rp_fullname = (String) publication
                            .getFirstValue("rp_fullname");
                    String averageStrength = (String) publication
                            .getFirstValue(ConstantNetwork.PREFIX_METADATA_BIBLIOMETRIC_3_RETRIEVE
                                    + conn);
                    String maxStrength = (String) publication
                            .getFirstValue(ConstantNetwork.PREFIX_METADATA_BIBLIOMETRIC_2_RETRIEVE
                                    + conn);
                    String numbersConnections = (String) publication
                            .getFirstValue(ConstantNetwork.PREFIX_METADATA_BIBLIOMETRIC_1_RETRIEVE
                                    + conn);
                    String quadraticVariance = (String) publication
                            .getFirstValue(ConstantNetwork.PREFIX_METADATA_BIBLIOMETRIC_4_RETRIEVE
                                    + conn);

                    metric.setAuthority(ResearcherPageUtils
                            .getPersistentIdentifier(rp_id, ResearcherPage.class));
                    metric.setFullName(rp_fullname);
                    metric.setType(conn);
                    metric.setAverageStrength(averageStrength);
                    metric.setMaxStrength(maxStrength);
                    metric.setNumbersConnections(numbersConnections);
                    metric.setQuadraticVariance(quadraticVariance);

                    if ((averageStrength == null || averageStrength.isEmpty())
                            && (maxStrength == null || maxStrength.isEmpty())
                            && (numbersConnections == null || numbersConnections
                                    .isEmpty())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.