Package mc.core.domain.asset.dobj
Class AbstractAssetDO<S extends ComplexEntity,T extends IAsset>
java.lang.Object
mc.core.system.base.BaseBean
mc.core.domain.base.dobj.AbstractBaseDO<T>
mc.core.domain.base.dobj.AbstractEntityBaseDO<T>
mc.core.domain.base.dobj.AbstractComplexEntityDO<S>
mc.core.domain.asset.dobj.AbstractAssetDO<S,T>
- All Implemented Interfaces:
IBaseDO<S>
- Direct Known Subclasses:
AssetDerivateDO,AssetDO
public abstract class AbstractAssetDO<S extends ComplexEntity,T extends IAsset>
extends AbstractComplexEntityDO<S>
-
Nested Class Summary
Nested classes/interfaces inherited from class mc.core.domain.base.dobj.AbstractBaseDO
AbstractBaseDO.Initializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContent(T entity) getContentFile(T entity) getFilename(T entity) getFilename(T entity, AssetFilename<T> strategy) base class calls given strategy for entity, or entity.getFilename() if strategy is nullgetMetadataValue(T entity, IMetadataType metadataType) getMetadataValues(List<? extends T> entities, List<IMetadataType> metadataTypes) mc.core.system.util.misc.StringMapgetMetadataValues(T entity) mc.core.system.util.misc.StringMapgetMetadataValues(T entity, List<IMetadataType> metadataTypes) voidsetMetadataValues(T entity, DataMap metadata, mc.core.system.util.misc.StringMap metaCategoryMap) Sets values stored in DataMap metadata as asset metadata which is stored as json-value in asset table.Methods inherited from class mc.core.domain.base.dobj.AbstractComplexEntityDO
addDefaultSearchCriteria, assertPermission, assertPermission, attributes, copy, copyDataSync, copyToCollection, delete, doRecursiveActionAsync, edit, entityProfileApply, entityProfileApply, filter, getCollectionHierarchies, getCollectionsAll, getFromExternalKey, getFromKeySearchFilter, getUserRole, insert, lifecycle, newComplexEntityEvent, onChange, parameter, permissions, prepareSearchFilter, relations, secondaryCollectionAdd, secondaryCollectionCopy, secondaryCollectionMove, secondaryCollectionRemove, setRightInheritanceDisabled, states, translate, versions, watchesMethods inherited from class mc.core.domain.base.dobj.AbstractEntityBaseDO
getFromInternalDescription, save, sendEvent, sendEventMethods inherited from class mc.core.domain.base.dobj.AbstractBaseDO
delete, getAll, getAllActive, getEntityDisplay, getFromId, getFromKey, getOne, map, map, save, validator
-
Constructor Details
-
AbstractAssetDO
public AbstractAssetDO()
-
-
Method Details
-
getContent
- Throws:
ApplicationException
-
getContentFile
- Throws:
ApplicationException
-
getFilename
-
getFilename
base class calls given strategy for entity, or entity.getFilename() if strategy is null- Parameters:
entity- mandatoryscope- optional- Returns:
- the filename
-
getMetadataValue
-
getMetadataValues
public mc.core.system.util.misc.StringMap getMetadataValues(T entity, List<IMetadataType> metadataTypes) - Parameters:
entity- mandatorymetadataTypes- if null or empty returns empty StringMap- Returns:
- StringMap with IMetadataType-name as key and value of the metadata-attribute as value.
-
getMetadataValues
-
getMetadataValues
-
setMetadataValues
public void setMetadataValues(T entity, DataMap metadata, mc.core.system.util.misc.StringMap metaCategoryMap) throws ApplicationException Sets values stored in DataMap metadata as asset metadata which is stored as json-value in asset table. Usually the system metadata-attributes are held in enumAssetMetadataType. For all of these system metadata labels exist for display.If a given key from metadata does not correspond to an AssetMetadataType you must take care that labels for this key are present in the resource bundle in the format AssetMetadataType.name.[key] .
- Parameters:
entity- mandatorymetadata- mandatorymetaCategoryMap- optional, no longer relevant- Throws:
ApplicationException
-