Class ReviewsMap

java.lang.Object
org.xwiki.extension.index.security.review.ReviewsMap

@Unstable public class ReviewsMap extends Object
Contains the maps of all the CVEs with available reviews.
Since:
15.6RC1
Version:
$Id: ea7de7ed746f87586235f14d21881b08dfcf4f51 $
  • Constructor Details

    • ReviewsMap

      public ReviewsMap()
  • Method Details

    • getReviewsMap

      public Map<String,List<Review>> getReviewsMap()
      Returns:
      the map of CVEs and their associated reviews.
    • contains

      public boolean contains(String id)
      Parameters:
      id - a CVE id
      Returns:
      true if at least a review is available for a given id
    • getById

      public Optional<List<Review>> getById(String id)
      Parameters:
      id - a CVE id
      Returns:
      the list of reviews if found, Optional.empty() otherwise
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object