Class DefaultCMSMediaFormatDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSMediaFormatDao
- All Implemented Interfaces:
CMSMediaFormatDao,Dao
Default implementation of
CMSMediaFormatDao interface.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve all media formats.getMediaFormatByQualifier(String qualifier) Retrieve a single media format which have the specified qualifier value.getMediaFormatsByQualifiers(Collection<String> qualifiers) Retrieve a collection of media formats which have the specified qualifiers value.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
DefaultCMSMediaFormatDao
public DefaultCMSMediaFormatDao()
-
-
Method Details
-
getAllMediaFormats
Description copied from interface:CMSMediaFormatDaoRetrieve all media formats.- Specified by:
getAllMediaFormatsin interfaceCMSMediaFormatDao- Returns:
- collection of all media formats
-
getMediaFormatByQualifier
public MediaFormatModel getMediaFormatByQualifier(String qualifier) throws IllegalArgumentException, UnknownIdentifierException, AmbiguousIdentifierException Description copied from interface:CMSMediaFormatDaoRetrieve a single media format which have the specified qualifier value.- Specified by:
getMediaFormatByQualifierin interfaceCMSMediaFormatDao- Parameters:
qualifier- the identifier of the media format to find- Returns:
- media format matching the specified qualifier
- Throws:
IllegalArgumentException- when qualifier is nullUnknownIdentifierException- when no media format is found for the specified qualifierAmbiguousIdentifierException- when multiple media formats are found for the specified qualifier
-
getMediaFormatsByQualifiers
public Collection<MediaFormatModel> getMediaFormatsByQualifiers(Collection<String> qualifiers) throws IllegalArgumentException Description copied from interface:CMSMediaFormatDaoRetrieve a collection of media formats which have the specified qualifiers value.- Specified by:
getMediaFormatsByQualifiersin interfaceCMSMediaFormatDao- Parameters:
qualifiers- the collection of identifiers of the media formats to find- Returns:
- collection of media formats matching the specified qualifiers
- Throws:
IllegalArgumentException- when qualifier is null
-