Class MappingUtils.MediaObjectInfo
java.lang.Object
com.priint.pubserver.comet.bridge.util.MappingUtils.MediaObjectInfo
- Enclosing class:
- MappingUtils
The Class MediaObjectInfo.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe Enum DataType: PREVIEW, DATA. -
Constructor Summary
ConstructorsConstructorDescriptionMediaObjectInfo(MediaAsset asset, MediaObject object, MappingUtils.MediaObjectInfo.DataType dataType) Instantiates a new media object info.MediaObjectInfo(String assetId, String assetEntityId, String filepath, MappingUtils.MediaObjectInfo.DataType dataType) Instantiates a new media object info. -
Method Summary
Modifier and TypeMethodDescriptionstatic MappingUtils.MediaObjectInfocreateDataInfo(MediaAsset asset, MediaObject object) Creates the data info.static MappingUtils.MediaObjectInfocreateFromString(String uri) Creates the from string.static MappingUtils.MediaObjectInfocreatePreviewInfo(MediaAsset asset, MediaObject object) Creates the preview info.Gets the asset entity id.Gets the asset id.Gets the client URI.Gets the data type.Gets the filepath.static StringpathIdentifier(String in) Path identifier.voidsetAssetEntityId(String assetEntityId) Sets the asset entity id.voidsetAssetId(String assetId) Sets the asset id.voidSets the data type.voidsetFilepath(String filepath) Sets the filepath.toString()
-
Constructor Details
-
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(String assetId, String assetEntityId, 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 Details
-
createDataInfo
Creates the data info.- Parameters:
asset- the assetobject- the object- Returns:
- the media object info
-
createFromString
Creates the from string.- Parameters:
uri- the uri- Returns:
- the media object info
- Throws:
CometException- the comet exception
-
createPreviewInfo
Creates the preview info.- Parameters:
asset- the assetobject- the object- Returns:
- the media object info
-
pathIdentifier
Path identifier.- Parameters:
in- the in- Returns:
- the string
-
getAssetEntityId
Gets the asset entity id.- Returns:
- the asset entity id
-
getAssetId
Gets the asset id.- Returns:
- the asset id
-
getClientURI
Gets the client URI.- Returns:
- the client URI
- Throws:
CometException- the comet exception
-
getDataType
Gets the data type.- Returns:
- the data type
-
getFilepath
Gets the filepath.- Returns:
- the filepath
-
setAssetEntityId
Sets the asset entity id.- Parameters:
assetEntityId- the new asset entity id
-
setAssetId
Sets the asset id.- Parameters:
assetId- the new asset id
-
setDataType
Sets the data type.- Parameters:
dataType- the new data type
-
setFilepath
Sets the filepath.- Parameters:
filepath- the new filepath
-
toString
-