Class MediaObject
java.lang.Object
com.priint.pubserver.plugin.entitydata.MediaObject
- All Implemented Interfaces:
GetIdentifier,EntityData,PersistentData,Serializable
@Entity
public class MediaObject
extends Object
implements Serializable, GetIdentifier, EntityData, PersistentData
Represents a file or an object in a Media Asset System
MediaObject is used to designate an individual images (or other media object).
- Since:
- 4.0.0, 4.0.5 added JPA annotations
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.MediaObject has no connector entity that can be set via ison.Identifier of an entity in the entity model where the current object refers to.String key for grouping media objects of the same type.intgetId()Get the string identifier of the media object.intgetMedia()Optional media content.getPath()Get timestamp from the content system.getType()Type like JPEG , EPS, etc.getUrl()Version string from the content systemvoidsetConnectorEntity(ConnectorEntity connectorEntity) Deprecated.MediaObject has no connector entity that can be set via ison.voidsetContext(Context context) set the context of entity data objectvoidsetCreatedBy(String createdBy) voidsetCreatedOn(Date createdOn) voidsetEntityIdentifier(String entityIdentifier) Identifier of an entity in the entity model where the current object refers to.voidsetFilename(String filename) voidsetGroupIdentifier(String groupIdentifier) voidsetId(int id) voidsetIdentifier(String identifier) voidsetInObjectStorage(int inObjectStorage) voidvoidsetMediaAsset(MediaAsset mediaAsset) voidsetMetaData(List<KeyValue> metaData) voidvoidsetTimestamp(String timestamp) voidvoidsetUpdatedBy(String updatedBy) voidsetUpdatedOn(Date updatedOn) voidvoidsetVersion(String version) toString()
-
Constructor Details
-
MediaObject
public MediaObject()Default constructor. -
MediaObject
Creates a media object with necessary properties.- Parameters:
identifier-getIdentifier()filename-getFilename()path-getPath()type-getType()media-getMedia()
-
MediaObject
public MediaObject(String identifier, String filename, String path, String type, String media, String createdBy, Date createdOn, String updatedBy, Date updatedOn) - Parameters:
identifier-getIdentifier()filename-getFilename()path-getPath()type-getType()media-getMedia()createdBy-getCreatedBy()createdOn-getCreatedOn()updatedBy-getUpdatedBy()updatedOn-getUpdatedOn()
-
-
Method Details
-
getId
public int getId() -
setId
public void setId(int id) -
getIdentifier
Get the string identifier of the media object.- Specified by:
getIdentifierin interfaceEntityData- Specified by:
getIdentifierin interfaceGetIdentifier- Specified by:
getIdentifierin interfacePersistentData- Returns:
- identifier string or
nullif not set
-
setIdentifier
- Specified by:
setIdentifierin interfaceEntityData- Parameters:
identifier- seegetIdentifier()
-
getGroupIdentifier
String key for grouping media objects of the same type.- Returns:
- group identifier string or
nullif not set
-
setGroupIdentifier
- Parameters:
groupIdentifier- seegetGroupIdentifier()
-
getConnectorEntity
Deprecated.MediaObject has no connector entity that can be set via ison.- Returns:
- connector entity object or
nullif not set
-
setConnectorEntity
Deprecated.MediaObject has no connector entity that can be set via ison.- Parameters:
connectorEntity-
-
getVersion
Version string from the content system- Returns:
- version string or
nullif not set
-
setVersion
- Parameters:
version- seegetVersion()
-
getTimestamp
Get timestamp from the content system.Timestamp is used as a string to support differing types of timestamp representation as used by different content system. publishing server does not validate any format of this string.
- Returns:
- timestamp string
-
setTimestamp
- Parameters:
timestamp- seegetTimestamp()
-
getFilename
- Returns:
- Name of the file (with extension).
-
setFilename
- Parameters:
filename-getFilename()
-
getPath
- Returns:
- System path without filename.
-
setPath
- Parameters:
path-getPath()
-
getType
Type like JPEG , EPS, etc.At the time being there is no fixed vocabulary on media object types.
It is recommended practice to use types from the IANA MIME type registry.- Returns:
- type
-
setType
- Parameters:
type-getType()
-
getUrl
- Returns:
- URL to media asset system
-
setUrl
- Parameters:
url-getUrl()
-
getMetaData
- Returns:
- List of meta data related to the bucket or empty list
-
setMetaData
- Parameters:
metaData- seegetMetaData()
-
getMedia
Optional media content.- Returns:
- content as string
-
setMedia
- Parameters:
media-getMedia()
-
getCreatedBy
- Returns:
- creation user or
nullif not set
-
setCreatedBy
- Parameters:
createdBy- seegetCreatedBy()
-
getCreatedOn
- Returns:
- creation date or
nullif not set
-
setCreatedOn
- Parameters:
createdOn- seegetCreatedOn()
-
getUpdatedBy
- Returns:
- last modified user or
nullif not set
-
setUpdatedBy
- Parameters:
updatedBy- seegetUpdatedBy()
-
getUpdatedOn
- Returns:
- last modified date or
nullif not set
-
setUpdatedOn
- Parameters:
updatedOn- seegetUpdatedOn()
-
getMediaAsset
-
setMediaAsset
-
toString
-
getFullpath
- Returns:
- returns the full path of the media object concatenating path and filename
-
getEntityIdentifier
Description copied from interface:EntityDataIdentifier of an entity in the entity model where the current object refers to.- Specified by:
getEntityIdentifierin interfaceEntityData- Returns:
- entity identifier as string
-
setEntityIdentifier
Description copied from interface:EntityDataIdentifier of an entity in the entity model where the current object refers to.- Specified by:
setEntityIdentifierin interfaceEntityData
-
getContext
- Specified by:
getContextin interfaceEntityData- Returns:
- entity context
-
setContext
Description copied from interface:EntityDataset the context of entity data object- Specified by:
setContextin interfaceEntityData
-
getInObjectStorage
public int getInObjectStorage() -
setInObjectStorage
public void setInObjectStorage(int inObjectStorage)
-