Package mc.core.model.asset
Class Asset
java.lang.Object
mc.core.model.base.EntityBase
mc.core.model.base.ComplexEntity
mc.core.model.asset.Asset
- All Implemented Interfaces:
Serializable,IAsset,IBaseEntity,ICollectionListManaged,ICollectionManaged,ICoreEntity,IEntity,IRightManaged,ISortableEntity,IStateManaged,ITypeManaged,IVersionManaged
@Entity
public final class Asset
extends ComplexEntity
implements IRightManaged, ICollectionManaged, ICollectionListManaged, IStateManaged, IVersionManaged, IAsset
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic classNested classes/interfaces inherited from class mc.core.model.base.ComplexEntity
ComplexEntity.ComplexEntityComparator, ComplexEntity.ParamNested classes/interfaces inherited from class mc.core.model.base.EntityBase
EntityBase.EntityComparator -
Field Summary
FieldsFields inherited from class mc.core.model.base.EntityBase
INTDESC_COLUMN_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDerivate(AssetDerivate derivate) give the maximum list of RightTypes that apply for this class.getAsset()if this asset is imported from hotfolder, this property holds the source hotfolder entity until the asset is processed or rejected.getPreview(String previewType) only call when asset is attached to persistent context!getType()override in derived classes, return null if ComplexEntity-subclass is not type managed.intbooleanbooleanbooleanFlag that indicates if the entities have a root collection per type or if there is only one global root collection.voidsetAssetFileSource(Asset.AssetFileSource assetFileSource) voidsetAssetHotfolder(AssetHotfolder assetHotfolder) voidsetAssetType(AssetType assetType) voidsetDerivates(List<AssetDerivate> derivates) IMPORTANT: make sure that Asset is set in AssetDerivate!voidsetFilename(String filename) set original filename of asset as external keyvoidsetGroupId(String groupId) voidsetGroupRole(Asset.AssetGroupRole groupRole) voidsetMacResfileId(String macResfileId) voidsetType(ComplexTypeEntity type) override in derived classes if ComplexEntity-subclass is type managed, else do nothing.
be used by entity mappervoidsetVersionNumber(int versionNumber) Methods inherited from class mc.core.model.base.ComplexEntity
addState, getAttributes, getCollections, getCollections, getCollectionToCEs, getDateCreated, getDateModified, getEntityData, getEntityDatas, getEntityFilters, getEntityOwner, getExternalKey, getFileId, getHasObjectRights, getId, getInternalDescription, getLifeCycleFlag, getMasterId, getMasterLocale, getMemos, getParameter, getParameters, getParameterValue, getPermissions, getRelatedEntities, getState, getStateGroupTypes, getStates, getStatesToRemove, getVersions, getWatches, isArchived, isDeleted, isRightInheritanceDisabled, isSecondaryCollection, isVisible, setAttributes, setCollectionToCEs, setDateCreated, setDateModified, setEntityDatas, setEntityFilters, setEntityOwner, setExternalKey, setFileId, setId, setLifeCycleFlag, setMasterId, setMasterLocale, setMemos, setParameters, setPermissions, setRelatedEntities, setRightInheritanceDisabled, setStates, setVersions, setWatchesMethods inherited from class mc.core.model.base.EntityBase
equals, getCollection, getDescription, getDescription, getFlag, getIsSystem, getName, getName, getNamespace, getPrio, hashCode, setCollection, setDescription, setDescription, setFlag, setInternalDescription, setIsSystem, setName, setName, setNamespace, setPrio, toStringMethods inherited from interface mc.core.model.base.IBaseEntity
getId, setIdMethods inherited from interface mc.core.model.base.ICollectionListManaged
getCollectionsMethods inherited from interface mc.core.model.base.ICollectionManaged
getCollection, setCollectionMethods inherited from interface mc.core.model.base.IEntity
getDescription, getInternalDescription, getName, getPrio, setInternalDescriptionMethods inherited from interface mc.core.model.base.IRightManaged
getHasObjectRights, getPermissionsMethods inherited from interface mc.core.model.base.IStateManaged
getState, getStateGroupTypes, getStates
-
Field Details
-
RESOURCE_FILE_PREFIX
Prefix of Mac OS metadata files.- See Also:
-
-
Constructor Details
-
Asset
public Asset() -
Asset
-
-
Method Details
-
getAssetType
-
setAssetType
-
setType
Description copied from class:ComplexEntityoverride in derived classes if ComplexEntity-subclass is type managed, else do nothing.
be used by entity mapper- Overrides:
setTypein classComplexEntity
-
getDerivates
-
setDerivates
IMPORTANT: make sure that Asset is set in AssetDerivate!- Parameters:
derivates- of this asset.
-
addDerivate
-
getMacResfileId
- Returns:
- Identifier of Mac OS resource file or
NULLif no such metadata file is stored. - See Also:
-
setMacResfileId
-
getAssetHotfolder
if this asset is imported from hotfolder, this property holds the source hotfolder entity until the asset is processed or rejected. -
setAssetHotfolder
-
getAssetFileSource
-
setAssetFileSource
-
getGroupId
-
setGroupId
-
getGroupRole
-
setGroupRole
-
getVersionNumber
public int getVersionNumber() -
setVersionNumber
public void setVersionNumber(int versionNumber) -
getAllowedRightTypes
Description copied from interface:IRightManagedgive the maximum list of RightTypes that apply for this class.- Specified by:
getAllowedRightTypesin interfaceIRightManaged- Returns:
- array of enum RightType
-
getType
Description copied from class:ComplexEntityoverride in derived classes, return null if ComplexEntity-subclass is not type managed.- Specified by:
getTypein interfaceICollectionManaged- Specified by:
getTypein interfaceITypeManaged- Specified by:
getTypein classComplexEntity
-
setFilename
set original filename of asset as external key- Overrides:
setFilenamein classComplexEntity- Parameters:
filename-
-
getFilename
- Specified by:
getFilenamein interfaceIAsset- Overrides:
getFilenamein classComplexEntity- Returns:
- the filename of a file, referenced by
fileIdand stored in the file content store.
-
getPreview
only call when asset is attached to persistent context! -
isRootPerType
public boolean isRootPerType()Description copied from interface:ICollectionManagedFlag that indicates if the entities have a root collection per type or if there is only one global root collection. if rootPerType true it can only apply to entities that have a type, i.e. ComplexEntities.- Specified by:
isRootPerTypein interfaceICollectionManaged
-
getGroupName
- Specified by:
getGroupNamein interfaceIAsset- Returns:
- Asset: null, Derivate: derivateType.groupName
-
getTypeName
- Specified by:
getTypeNamein interfaceIAsset- Returns:
- Asset: null, Derivate: derivateType.typeName
-
isOriginal
public boolean isOriginal()- Specified by:
isOriginalin interfaceIAsset- Returns:
- Asset: true, Derivate: false
-
isMultiple
public boolean isMultiple()- Specified by:
isMultiplein interfaceIAsset- Returns:
- Asset: false, Derivate: derivateType.isMultiple
-
getAsset
-