java.lang.Object
org.broadleafcommerce.common.media.domain.MediaDto
All Implemented Interfaces:
Serializable, Media, Wrappable

public class MediaDto extends Object implements Media
A null safe media object.
Author:
bpolster
See Also:
  • Field Details

    • id

      protected long id
    • url

      protected String url
    • title

      protected String title
    • altText

      protected String altText
    • tags

      protected String tags
  • Constructor Details

    • MediaDto

      public MediaDto()
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface Media
    • setId

      public void setId(Long id)
      Specified by:
      setId in interface Media
    • getUrl

      public String getUrl()
      Specified by:
      getUrl in interface Media
    • setUrl

      public void setUrl(String url)
      Specified by:
      setUrl in interface Media
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface Media
    • setTitle

      public void setTitle(String title)
      Specified by:
      setTitle in interface Media
    • getAltText

      public String getAltText()
      Specified by:
      getAltText in interface Media
    • setAltText

      public void setAltText(String altText)
      Specified by:
      setAltText in interface Media
    • getTags

      public String getTags()
      Specified by:
      getTags in interface Media
    • setTags

      public void setTags(String tags)
      Specified by:
      setTags in interface Media
    • isUnwrappableAs

      public boolean isUnwrappableAs(Class unwrapType)
      Description copied from interface: Wrappable
      Can this wrapped item be unwrapped as the indicated type?
      Specified by:
      isUnwrappableAs in interface Wrappable
      Parameters:
      unwrapType - The type to check.
      Returns:
      True/false.
    • unwrap

      public <T> T unwrap(Class<T> unwrapType)
      Description copied from interface: Wrappable
      Get the wrapped delegate item
      Specified by:
      unwrap in interface Wrappable
      Parameters:
      unwrapType - The java type as which to unwrap this instance.
      Returns:
      The unwrapped reference