Class PlaceholderUtil
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.web.images.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlaceholderUtil.Setup
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetPlaceholderImagePathForIndividual(VitroRequest vreq, String individualUri)If there is a placeholder image for any type that this Individual instantiates, return that image.static StringgetPlaceholderImagePathForType(VitroRequest vreq, String typeUri)If we have a placeholder image for this exact type, return it.
-
-
-
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.
-
-