Class MappingUtils.MediaObjectInfo
- java.lang.Object
-
- com.priint.pubserver.comet.bridge.util.MappingUtils.MediaObjectInfo
-
- Enclosing class:
- MappingUtils
public static class MappingUtils.MediaObjectInfo extends java.lang.ObjectThe Class MediaObjectInfo.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMappingUtils.MediaObjectInfo.DataTypeThe Enum DataType: PREVIEW, DATA.
-
Constructor Summary
Constructors Constructor Description MediaObjectInfo(MediaAsset asset, MediaObject object, MappingUtils.MediaObjectInfo.DataType dataType)Instantiates a new media object info.MediaObjectInfo(java.lang.String assetId, java.lang.String assetEntityId, java.lang.String filepath, MappingUtils.MediaObjectInfo.DataType dataType)Instantiates a new media object info.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MappingUtils.MediaObjectInfocreateDataInfo(MediaAsset asset, MediaObject object)Creates the data info.static MappingUtils.MediaObjectInfocreateFromString(java.lang.String uri)Creates the from string.static MappingUtils.MediaObjectInfocreatePreviewInfo(MediaAsset asset, MediaObject object)Creates the preview info.java.lang.StringgetAssetEntityId()Gets the asset entity id.java.lang.StringgetAssetId()Gets the asset id.java.lang.StringgetClientURI()Gets the client URI.MappingUtils.MediaObjectInfo.DataTypegetDataType()Gets the data type.java.lang.StringgetFilepath()Gets the filepath.static java.lang.StringpathIdentifier(java.lang.String in)Path identifier.voidsetAssetEntityId(java.lang.String assetEntityId)Sets the asset entity id.voidsetAssetId(java.lang.String assetId)Sets the asset id.voidsetDataType(MappingUtils.MediaObjectInfo.DataType dataType)Sets the data type.voidsetFilepath(java.lang.String filepath)Sets the filepath.java.lang.StringtoString()
-
-
-
Constructor Detail
-
MediaObjectInfo
public MediaObjectInfo(MediaAsset asset, MediaObject object, MappingUtils.MediaObjectInfo.DataType dataType)
Instantiates a new media object info.- Parameters:
asset- the assetobject- the objectdataType- the data type
-
MediaObjectInfo
public MediaObjectInfo(java.lang.String assetId, java.lang.String assetEntityId, java.lang.String filepath, MappingUtils.MediaObjectInfo.DataType dataType)Instantiates a new media object info.- Parameters:
assetId- the asset idassetEntityId- the asset entity idfilepath- the filepathdataType- the data type
-
-
Method Detail
-
createDataInfo
public static MappingUtils.MediaObjectInfo createDataInfo(MediaAsset asset, MediaObject object)
Creates the data info.- Parameters:
asset- the assetobject- the object- Returns:
- the media object info
-
createFromString
public static MappingUtils.MediaObjectInfo createFromString(java.lang.String uri) throws CometException
Creates the from string.- Parameters:
uri- the uri- Returns:
- the media object info
- Throws:
CometException- the comet exception
-
createPreviewInfo
public static MappingUtils.MediaObjectInfo createPreviewInfo(MediaAsset asset, MediaObject object)
Creates the preview info.- Parameters:
asset- the assetobject- the object- Returns:
- the media object info
-
pathIdentifier
public static java.lang.String pathIdentifier(java.lang.String in)
Path identifier.- Parameters:
in- the in- Returns:
- the string
-
getAssetEntityId
public java.lang.String getAssetEntityId()
Gets the asset entity id.- Returns:
- the asset entity id
-
getAssetId
public java.lang.String getAssetId()
Gets the asset id.- Returns:
- the asset id
-
getClientURI
public java.lang.String getClientURI() throws CometExceptionGets the client URI.- Returns:
- the client URI
- Throws:
CometException- the comet exception
-
getDataType
public MappingUtils.MediaObjectInfo.DataType getDataType()
Gets the data type.- Returns:
- the data type
-
getFilepath
public java.lang.String getFilepath()
Gets the filepath.- Returns:
- the filepath
-
setAssetEntityId
public void setAssetEntityId(java.lang.String assetEntityId)
Sets the asset entity id.- Parameters:
assetEntityId- the new asset entity id
-
setAssetId
public void setAssetId(java.lang.String assetId)
Sets the asset id.- Parameters:
assetId- the new asset id
-
setDataType
public void setDataType(MappingUtils.MediaObjectInfo.DataType dataType)
Sets the data type.- Parameters:
dataType- the new data type
-
setFilepath
public void setFilepath(java.lang.String filepath)
Sets the filepath.- Parameters:
filepath- the new filepath
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-