/** * ============================================================================= * * ORCID (R) Open Source * http://orcid.org * * Copyright (c) 2012-2014 ORCID, Inc. * Licensed under an MIT-Style License (MIT) * http://orcid.org/open-source-license * * This copyright and license information (including a link to the full license) * shall be included in its entirety in all copies or substantial portion of * the software. * * ============================================================================= */ package org.orcid.core.manager.read_only; import java.util.List; import org.orcid.jaxb.model.record.summary_v2.PeerReviewSummary; import org.orcid.jaxb.model.record.summary_v2.PeerReviews; import org.orcid.jaxb.model.record_v2.PeerReview; public interface PeerReviewManagerReadOnly { /** * Get a peerReview based on the orcid and peerReview id * * @param orcid * The peerReview owner * @param peerReviewId * The peerReview id * @return the PeerReview * */ PeerReview getPeerReview(String orcid, Long peerReviewId); /** * Get a peerReview summary based on the orcid and peerReview id * * @param orcid * The peerReview owner * @param peerReviewId * The peerReview id * @return the PeerReviewSummary * */ PeerReviewSummary getPeerReviewSummary(String orcid, Long peerReviewId); /** * Return the list of peer reviews that belongs to a specific user * * @param orcid * the peerReview owner * @param lastModified * @return a list containing the user peer reviews * */ List<PeerReview> findPeerReviews(String orcid, long lastModified); /** * Get the list of peer reivews that belongs to a user * * @param userOrcid * @param lastModified * Last modified date used to check the cache * @return the list of peer reviews that belongs to this user * */ List<PeerReviewSummary> getPeerReviewSummaryList(String orcid, long lastModified); /** * Generate a grouped list of peer reviews with the given list of peer reviews * * @param peerReviews * The list of peer reviews to group * @param justPublic * Specify if we want to group only the public elements in the given list * @return PeerReviews element with the PeerReviewSummary elements grouped * */ PeerReviews groupPeerReviews(List<PeerReviewSummary> peerReviews, boolean justPublic); }