Class PlaceholderUtil


  • public class PlaceholderUtil
    extends Object
    A utility for finding the URL of the correct Placeholder image. The mapping of image URLs to classes is created at startup, and stored in the ServletContext.
    • Method Detail

      • getPlaceholderImagePathForType

        public static String getPlaceholderImagePathForType​(VitroRequest vreq,
                                                            String typeUri)
        If we have a placeholder image for this exact type, return it. Otherwise, return the default.
      • getPlaceholderImagePathForIndividual

        public static String getPlaceholderImagePathForIndividual​(VitroRequest vreq,
                                                                  String individualUri)
        If there is a placeholder image for any type that this Individual instantiates, return that image. Otherwise, return the default.