Class MediaModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BarcodeMediaModel, CatalogUnawareMediaModel, CatalogVersionSyncScheduleMediaModel, DocumentModel, EmailAttachmentModel, FormatterModel, ImpExMediaModel, JobMediaModel, LogFileModel

public class MediaModel extends AbstractMediaModel
Generated model class for type Media first defined at extension core.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Generated relation code constant for relation CategoryMediaRelation defining source attribute supercategories in extension catalog.
    static final String
    Generated relation code constant for relation LocationMediaRelation defining source attribute superlocations in extension travelservices.
    static final String
    Generated relation code constant for relation MediaContainer2MediaRel defining source attribute mediaContainer in extension core.
    static final String
    Generated model type code constant.
    static final String
    Generated constant - Attribute key of Media.altText attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.catalog attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of Media.catalogVersion attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of Media.code attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.deniedPrincipals attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.derivedMedias attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.description attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.downloadURL attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.folder attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.foreignDataOwners attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.internalURL attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.mediaContainer attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.mediaFormat attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.permittedPrincipals attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.removable attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.subFolderPath attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.supercategories attribute defined at extension catalog.
    static final String
    Generated constant - Attribute key of Media.superlocations attribute defined at extension travelservices.
    static final String
    Generated constant - Attribute key of Media.URL attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Media.URL2 attribute defined at extension core.

    Fields inherited from class de.hybris.platform.core.model.media.AbstractMediaModel

    DATAPK, LOCATION, LOCATIONHASH, MIME, REALFILENAME, SIZE

    Fields inherited from class de.hybris.platform.core.model.ItemModel

    _COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED

    Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Generated constructor - Default constructor for generic creation.
    MediaModel(CatalogVersionModel _catalogVersion, String _code)
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 4.1.1 Please use the default constructor without parameters
    MediaModel(CatalogVersionModel _catalogVersion, String _code, ItemModel _owner)
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 4.1.1 Please use the default constructor without parameters
    MediaModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
    Generated constructor - Default constructor for creation with existing context
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    since ages - use { @link #getAltText()} instead
    Generated method - Getter of the Media.altText attribute defined at extension core.
    Generated method - Getter of the Media.catalogVersion attribute defined at extension catalog.
    Generated method - Getter of the Media.code attribute defined at extension core.
    Generated method - Getter of the Media.deniedPrincipals dynamic attribute defined at extension core.
    Generated method - Getter of the Media.derivedMedias attribute defined at extension core.
    Generated method - Getter of the Media.description attribute defined at extension core.
    Deprecated, for removal: This API element is subject to removal in a future version.
    since ages - use { @link #getDownloadURL()} instead
    Generated method - Getter of the Media.downloadURL dynamic attribute defined at extension core.
    Generated method - Getter of the Media.folder attribute defined at extension core.
    Generated method - Getter of the Media.foreignDataOwners dynamic attribute defined at extension core.
    Generated method - Getter of the Media.internalURL attribute defined at extension core.
    Generated method - Getter of the Media.mediaContainer attribute defined at extension core.
    Generated method - Getter of the Media.mediaFormat attribute defined at extension core.
    Generated method - Getter of the Media.permittedPrincipals dynamic attribute defined at extension core.
    Generated method - Getter of the Media.removable attribute defined at extension core.
    Generated method - Getter of the Media.subFolderPath attribute defined at extension core.
    Generated method - Getter of the Media.supercategories attribute defined at extension catalog.
    Generated method - Getter of the Media.superlocations attribute defined at extension travelservices.
    Deprecated, for removal: This API element is subject to removal in a future version.
    since ages - use { @link #getURL()} instead
    Generated method - Getter of the Media.URL dynamic attribute defined at extension core.
    Deprecated, for removal: This API element is subject to removal in a future version.
    since ages - use { @link #getURL2()} instead
    Generated method - Getter of the Media.URL2 attribute defined at extension core.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    since ages - use { @link #setAltText(java.lang.String)} instead
    void
    Generated method - Setter of Media.altText attribute defined at extension core.
    void
    Generated method - Setter of Media.catalogVersion attribute defined at extension catalog.
    void
    setCode(String value)
    Generated method - Setter of Media.code attribute defined at extension core.
    void
    Generated method - Setter of Media.deniedPrincipals dynamic attribute defined at extension core.
    void
    Generated method - Setter of Media.derivedMedias attribute defined at extension core.
    void
    Generated method - Setter of Media.description attribute defined at extension core.
    void
    Generated method - Setter of Media.folder attribute defined at extension core.
    void
    Generated method - Setter of Media.internalURL attribute defined at extension core.
    void
    Generated method - Setter of Media.mediaContainer attribute defined at extension core.
    void
    Generated method - Setter of Media.mediaFormat attribute defined at extension core.
    void
    Generated method - Setter of Media.permittedPrincipals dynamic attribute defined at extension core.
    void
    Generated method - Setter of Media.removable attribute defined at extension core.
    void
    Generated method - Setter of Media.subFolderPath attribute defined at extension core.
    void
    Generated method - Setter of Media.supercategories attribute defined at extension catalog.
    void
    Generated method - Setter of Media.superlocations attribute defined at extension travelservices.
    void
    setUrl(String value)
    Deprecated, for removal: This API element is subject to removal in a future version.
    since ages - use { @link #setURL(java.lang.String)} instead
    void
    setURL(String value)
    Generated method - Setter of Media.URL dynamic attribute defined at extension core.

    Methods inherited from class de.hybris.platform.core.model.ItemModel

    getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner

    Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _MEDIACONTAINER2MEDIAREL

      public static final String _MEDIACONTAINER2MEDIAREL
      Generated relation code constant for relation MediaContainer2MediaRel defining source attribute mediaContainer in extension core.
      See Also:
    • _CATEGORYMEDIARELATION

      public static final String _CATEGORYMEDIARELATION
      Generated relation code constant for relation CategoryMediaRelation defining source attribute supercategories in extension catalog.
      See Also:
    • _LOCATIONMEDIARELATION

      public static final String _LOCATIONMEDIARELATION
      Generated relation code constant for relation LocationMediaRelation defining source attribute superlocations in extension travelservices.
      See Also:
    • CODE

      public static final String CODE
      Generated constant - Attribute key of Media.code attribute defined at extension core.
      See Also:
    • INTERNALURL

      public static final String INTERNALURL
      Generated constant - Attribute key of Media.internalURL attribute defined at extension core.
      See Also:
    • URL

      public static final String URL
      Generated constant - Attribute key of Media.URL attribute defined at extension core.
      See Also:
    • URL2

      public static final String URL2
      Generated constant - Attribute key of Media.URL2 attribute defined at extension core.
      See Also:
    • DOWNLOADURL

      public static final String DOWNLOADURL
      Generated constant - Attribute key of Media.downloadURL attribute defined at extension core.
      See Also:
    • DESCRIPTION

      public static final String DESCRIPTION
      Generated constant - Attribute key of Media.description attribute defined at extension core.
      See Also:
    • ALTTEXT

      public static final String ALTTEXT
      Generated constant - Attribute key of Media.altText attribute defined at extension core.
      See Also:
    • REMOVABLE

      public static final String REMOVABLE
      Generated constant - Attribute key of Media.removable attribute defined at extension core.
      See Also:
    • MEDIAFORMAT

      public static final String MEDIAFORMAT
      Generated constant - Attribute key of Media.mediaFormat attribute defined at extension core.
      See Also:
    • FOLDER

      public static final String FOLDER
      Generated constant - Attribute key of Media.folder attribute defined at extension core.
      See Also:
    • SUBFOLDERPATH

      public static final String SUBFOLDERPATH
      Generated constant - Attribute key of Media.subFolderPath attribute defined at extension core.
      See Also:
    • FOREIGNDATAOWNERS

      public static final String FOREIGNDATAOWNERS
      Generated constant - Attribute key of Media.foreignDataOwners attribute defined at extension core.
      See Also:
    • PERMITTEDPRINCIPALS

      public static final String PERMITTEDPRINCIPALS
      Generated constant - Attribute key of Media.permittedPrincipals attribute defined at extension core.
      See Also:
    • DENIEDPRINCIPALS

      public static final String DENIEDPRINCIPALS
      Generated constant - Attribute key of Media.deniedPrincipals attribute defined at extension core.
      See Also:
    • MEDIACONTAINER

      public static final String MEDIACONTAINER
      Generated constant - Attribute key of Media.mediaContainer attribute defined at extension core.
      See Also:
    • DERIVEDMEDIAS

      public static final String DERIVEDMEDIAS
      Generated constant - Attribute key of Media.derivedMedias attribute defined at extension core.
      See Also:
    • CATALOG

      public static final String CATALOG
      Generated constant - Attribute key of Media.catalog attribute defined at extension catalog.
      See Also:
    • CATALOGVERSION

      public static final String CATALOGVERSION
      Generated constant - Attribute key of Media.catalogVersion attribute defined at extension catalog.
      See Also:
    • SUPERCATEGORIES

      public static final String SUPERCATEGORIES
      Generated constant - Attribute key of Media.supercategories attribute defined at extension catalog.
      See Also:
    • SUPERLOCATIONS

      public static final String SUPERLOCATIONS
      Generated constant - Attribute key of Media.superlocations attribute defined at extension travelservices.
      See Also:
  • Constructor Details

    • MediaModel

      public MediaModel()
      Generated constructor - Default constructor for generic creation.
    • MediaModel

      public MediaModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • MediaModel

      @Deprecated(since="4.1.1", forRemoval=true) public MediaModel(CatalogVersionModel _catalogVersion, String _code)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _catalogVersion - initial attribute declared by type Media at extension catalog
      _code - initial attribute declared by type Media at extension core
    • MediaModel

      @Deprecated(since="4.1.1", forRemoval=true) public MediaModel(CatalogVersionModel _catalogVersion, String _code, ItemModel _owner)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _catalogVersion - initial attribute declared by type Media at extension catalog
      _code - initial attribute declared by type Media at extension core
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getAlttext

      @Deprecated(since="ages", forRemoval=true) public String getAlttext()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages - use { @link #getAltText()} instead
      Generated method - Getter of the Media.altText attribute defined at extension core.
      Returns:
      the altText
    • getAltText

      @Accessor(qualifier="altText", type=GETTER) public String getAltText()
      Generated method - Getter of the Media.altText attribute defined at extension core.
      Returns:
      the altText
    • getCatalogVersion

      @Accessor(qualifier="catalogVersion", type=GETTER) public CatalogVersionModel getCatalogVersion()
      Generated method - Getter of the Media.catalogVersion attribute defined at extension catalog.
      Returns:
      the catalogVersion
    • getCode

      @Accessor(qualifier="code", type=GETTER) public String getCode()
      Generated method - Getter of the Media.code attribute defined at extension core.
      Returns:
      the code - Code of media
    • getDeniedPrincipals

      @Accessor(qualifier="deniedPrincipals", type=GETTER) public Collection<PrincipalModel> getDeniedPrincipals()
      Generated method - Getter of the Media.deniedPrincipals dynamic attribute defined at extension core. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the deniedPrincipals
    • getDerivedMedias

      @Accessor(qualifier="derivedMedias", type=GETTER) public Collection<DerivedMediaModel> getDerivedMedias()
      Generated method - Getter of the Media.derivedMedias attribute defined at extension core. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the derivedMedias
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription()
      Generated method - Getter of the Media.description attribute defined at extension core.
      Returns:
      the description
    • getDownloadurl

      @Deprecated(since="ages", forRemoval=true) public String getDownloadurl()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages - use { @link #getDownloadURL()} instead
      Generated method - Getter of the Media.downloadURL dynamic attribute defined at extension core.
      Returns:
      the downloadURL
    • getDownloadURL

      @Accessor(qualifier="downloadURL", type=GETTER) public String getDownloadURL()
      Generated method - Getter of the Media.downloadURL dynamic attribute defined at extension core.
      Returns:
      the downloadURL
    • getFolder

      @Accessor(qualifier="folder", type=GETTER) public MediaFolderModel getFolder()
      Generated method - Getter of the Media.folder attribute defined at extension core.
      Returns:
      the folder - Sub folder where this media is stored.
    • getForeignDataOwners

      @Accessor(qualifier="foreignDataOwners", type=GETTER) public Collection<MediaModel> getForeignDataOwners()
      Generated method - Getter of the Media.foreignDataOwners dynamic attribute defined at extension core. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the foreignDataOwners - List of all medias referencing same data file.
    • getInternalURL

      @Accessor(qualifier="internalURL", type=GETTER) public String getInternalURL()
      Generated method - Getter of the Media.internalURL attribute defined at extension core.
      Returns:
      the internalURL
    • getMediaContainer

      @Accessor(qualifier="mediaContainer", type=GETTER) public MediaContainerModel getMediaContainer()
      Generated method - Getter of the Media.mediaContainer attribute defined at extension core.
      Returns:
      the mediaContainer
    • getMediaFormat

      @Accessor(qualifier="mediaFormat", type=GETTER) public MediaFormatModel getMediaFormat()
      Generated method - Getter of the Media.mediaFormat attribute defined at extension core.
      Returns:
      the mediaFormat - Format of this media
    • getPermittedPrincipals

      @Accessor(qualifier="permittedPrincipals", type=GETTER) public Collection<PrincipalModel> getPermittedPrincipals()
      Generated method - Getter of the Media.permittedPrincipals dynamic attribute defined at extension core. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the permittedPrincipals
    • getRemovable

      @Accessor(qualifier="removable", type=GETTER) public Boolean getRemovable()
      Generated method - Getter of the Media.removable attribute defined at extension core.
      Returns:
      the removable
    • getSubFolderPath

      @Accessor(qualifier="subFolderPath", type=GETTER) public String getSubFolderPath()
      Generated method - Getter of the Media.subFolderPath attribute defined at extension core.
      Returns:
      the subFolderPath - Generated location (by one of Storage Strategies) to media within storage.
    • getSupercategories

      @Accessor(qualifier="supercategories", type=GETTER) public Collection<CategoryModel> getSupercategories()
      Generated method - Getter of the Media.supercategories attribute defined at extension catalog. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the supercategories - Super Categories
    • getSuperlocations

      @Accessor(qualifier="superlocations", type=GETTER) public Collection<LocationModel> getSuperlocations()
      Generated method - Getter of the Media.superlocations attribute defined at extension travelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the superlocations - Super Locations
    • getUrl

      @Deprecated(since="ages", forRemoval=true) public String getUrl()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages - use { @link #getURL()} instead
      Generated method - Getter of the Media.URL dynamic attribute defined at extension core.
      Returns:
      the URL
    • getURL

      @Accessor(qualifier="URL", type=GETTER) public String getURL()
      Generated method - Getter of the Media.URL dynamic attribute defined at extension core.
      Returns:
      the URL
    • getUrl2

      @Deprecated(since="ages", forRemoval=true) public String getUrl2()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages - use { @link #getURL2()} instead
      Generated method - Getter of the Media.URL2 attribute defined at extension core.
      Returns:
      the URL2
    • getURL2

      @Accessor(qualifier="URL2", type=GETTER) public String getURL2()
      Generated method - Getter of the Media.URL2 attribute defined at extension core.
      Returns:
      the URL2
    • setAlttext

      @Deprecated(since="ages", forRemoval=true) public void setAlttext(String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages - use { @link #setAltText(java.lang.String)} instead
      Generated method - Setter of Media.altText attribute defined at extension core.
      Parameters:
      value - the altText
    • setAltText

      @Accessor(qualifier="altText", type=SETTER) public void setAltText(String value)
      Generated method - Setter of Media.altText attribute defined at extension core.
      Parameters:
      value - the altText
    • setCatalogVersion

      @Accessor(qualifier="catalogVersion", type=SETTER) public void setCatalogVersion(CatalogVersionModel value)
      Generated method - Setter of Media.catalogVersion attribute defined at extension catalog.
      Parameters:
      value - the catalogVersion
    • setCode

      @Accessor(qualifier="code", type=SETTER) public void setCode(String value)
      Generated method - Setter of Media.code attribute defined at extension core.
      Parameters:
      value - the code - Code of media
    • setDeniedPrincipals

      @Accessor(qualifier="deniedPrincipals", type=SETTER) public void setDeniedPrincipals(Collection<PrincipalModel> value)
      Generated method - Setter of Media.deniedPrincipals dynamic attribute defined at extension core.
      Parameters:
      value - the deniedPrincipals
    • setDerivedMedias

      @Accessor(qualifier="derivedMedias", type=SETTER) public void setDerivedMedias(Collection<DerivedMediaModel> value)
      Generated method - Setter of Media.derivedMedias attribute defined at extension core.
      Parameters:
      value - the derivedMedias
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value)
      Generated method - Setter of Media.description attribute defined at extension core.
      Parameters:
      value - the description
    • setFolder

      @Accessor(qualifier="folder", type=SETTER) public void setFolder(MediaFolderModel value)
      Generated method - Setter of Media.folder attribute defined at extension core.
      Parameters:
      value - the folder - Sub folder where this media is stored.
    • setInternalURL

      @Accessor(qualifier="internalURL", type=SETTER) public void setInternalURL(String value)
      Generated method - Setter of Media.internalURL attribute defined at extension core.
      Parameters:
      value - the internalURL
    • setMediaContainer

      @Accessor(qualifier="mediaContainer", type=SETTER) public void setMediaContainer(MediaContainerModel value)
      Generated method - Setter of Media.mediaContainer attribute defined at extension core.
      Parameters:
      value - the mediaContainer
    • setMediaFormat

      @Accessor(qualifier="mediaFormat", type=SETTER) public void setMediaFormat(MediaFormatModel value)
      Generated method - Setter of Media.mediaFormat attribute defined at extension core.
      Parameters:
      value - the mediaFormat - Format of this media
    • setPermittedPrincipals

      @Accessor(qualifier="permittedPrincipals", type=SETTER) public void setPermittedPrincipals(Collection<PrincipalModel> value)
      Generated method - Setter of Media.permittedPrincipals dynamic attribute defined at extension core.
      Parameters:
      value - the permittedPrincipals
    • setRemovable

      @Accessor(qualifier="removable", type=SETTER) public void setRemovable(Boolean value)
      Generated method - Setter of Media.removable attribute defined at extension core.
      Parameters:
      value - the removable
    • setSubFolderPath

      @Accessor(qualifier="subFolderPath", type=SETTER) public void setSubFolderPath(String value)
      Generated method - Setter of Media.subFolderPath attribute defined at extension core.
      Parameters:
      value - the subFolderPath - Generated location (by one of Storage Strategies) to media within storage.
    • setSupercategories

      @Accessor(qualifier="supercategories", type=SETTER) public void setSupercategories(Collection<CategoryModel> value)
      Generated method - Setter of Media.supercategories attribute defined at extension catalog.
      Parameters:
      value - the supercategories - Super Categories
    • setSuperlocations

      @Accessor(qualifier="superlocations", type=SETTER) public void setSuperlocations(Collection<LocationModel> value)
      Generated method - Setter of Media.superlocations attribute defined at extension travelservices.
      Parameters:
      value - the superlocations - Super Locations
    • setUrl

      @Deprecated(since="ages", forRemoval=true) public void setUrl(String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages - use { @link #setURL(java.lang.String)} instead
      Generated method - Setter of Media.URL dynamic attribute defined at extension core.
      Parameters:
      value - the URL
    • setURL

      @Accessor(qualifier="URL", type=SETTER) public void setURL(String value)
      Generated method - Setter of Media.URL dynamic attribute defined at extension core.
      Parameters:
      value - the URL