Class DigitalAssetPreferredRenditionCriteria

java.lang.Object
com.oracle.content.sdk.model.digital.DigitalAssetPreferredRenditionCriteria

public class DigitalAssetPreferredRenditionCriteria extends Object
For use in DigitalAsset.getPreferredRendition(DigitalAssetPreferredRenditionCriteria) when searching for preferred renditions with given criteria.
  • Constructor Details

    • DigitalAssetPreferredRenditionCriteria

      public DigitalAssetPreferredRenditionCriteria()
  • Method Details

    • setDesiredFormat

      public void setDesiredFormat(String format)
      Set the desired format string to search for in renditions. Default is "jpg"
      Parameters:
      format - Desired format string to search for.
    • searchForSmallest

      public void searchForSmallest(int preferredMinWidth, int preferredMinHeight)
      Call this to search for the smallest rendition that is larger than preferred minimum width and height. If set to 0, it will return the smallest size.
      Parameters:
      preferredMinWidth - Search for smallest rendition, but preferred width about this minimum.
      preferredMinHeight - Search for smallest rendition, but preferred height above this minimum.
    • searchForLargest

      public void searchForLargest(int preferredMaxWidth, int preferredMaxHeight)
      Call this to search for the largest rendition that is smaller than preferred maximum width and height. If set to 0, it will return the largest size.
      Parameters:
      preferredMaxWidth - Search for largest rendition, but preferred width below this maximum.
      preferredMaxHeight - Search for largest rendition, but preferred height below this maximum.