public class Video extends Media
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <media> <credits>MuITfpruGFyZtkEwPdfuxdnxgweqCsWxnKWVsqReWRthRLIDPBomhtZHMOXWZrMx</credits> <description>FclSSbxASOmlCRDztIzRXatJVaXvogFkWVyyczRHLhbkAWqqwTapDySdJaoXgOyh</description> <UID>744f657e-1f15-496a-891b-3a2e9078a446</UID> <name>WCejMlmRcsLyTvUBkrAgjoKtyCZchZoCcYGrlYHwnDwixmFRNHaWLfPiHrMsKIcn</name> <serviceId>1</serviceId> <visibility>PRIVATE</visibility> <objectList> <object> <backendId>1999177641</backendId> <confidence>0.16751447761302096</confidence> <mediaObjectId>337630755842535321</mediaObjectId> <mediaType>VIDEO</mediaType> <objectId>RvrvNkmhEBTgbReQeJbbZxOanvGNVeqRrVXjuvfoytQTbhdAYKmmiOUuxzNkqgPW</objectId> <rank>2068918277</rank> <serviceId>1</serviceId> <status>NO_FRIENDLY_KEYWORD</status> <objectType>KEYWORD</objectType> <value>YspcAliaINrJuqvVsYxbPSUBiTSWBigzUIeGQkBrhAdHdTZzCkxiPXZJOFtAFifC</value> <visibility>PRIVATE</visibility> <timeCodeList> <timeCode> <to>2833.483271955938</to> <from>1940.8899123480678</from> </timeCode> </timeCodeList> <userId>1939663100305735518</userId> </object> </objectList> <mediaType>VIDEO</mediaType> <userId>1939663100305735518</userId> <url>http://fe.example.org/rest/vcarc/r?uid=744f657e-1f15-496a-891b-3a2e9078a446&service_id=1</url> </media>
BackendStatusList
,
MediaObjectList
Modifier and Type | Field and Description |
---|---|
static MediaUrlValidator.MediaType |
MEDIA_TYPE
Default media type for Video
|
Constructor and Description |
---|
Video()
for serialization, must be public for solr.
|
Video(java.lang.String guid) |
Video(java.lang.String guid,
UserIdentity ownerUserId,
CAContentCore.ServiceType serviceType,
CAContentCore.Visibility visibility) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUrl()
If URL is not set, this will try to generate default redirect URL with serviceId, and GUID,
finally, returns null if the required information is not available.
|
void |
setMediaType(MediaUrlValidator.MediaType mediaType) |
addackendStatus, addMediaObject, addMediaObjects, getBackendStatus, getCredits, getDescription, getGUID, getMediaObjects, getMediaType, getMediaTypeValue, getName, getOwnerUserId, getOwnerUserIdValue, getServiceId, getServiceType, getUpdated, getVisibility, getVisibilityValue, isValid, setBackendStatus, setCredits, setDescription, setGUID, setMediaObjects, setName, setOwnerUserId, setServiceType, setUpdated, setUrl, setVisibility
public static final MediaUrlValidator.MediaType MEDIA_TYPE
public Video()
public Video(java.lang.String guid)
guid
- public Video(java.lang.String guid, UserIdentity ownerUserId, CAContentCore.ServiceType serviceType, CAContentCore.Visibility visibility)
guid
- ownerUserId
- serviceType
- visibility
- public java.lang.String getUrl()
getUrl
in class Media
Media.setUrl(String)
public void setMediaType(MediaUrlValidator.MediaType mediaType) throws java.lang.IllegalArgumentException
setMediaType
in class Media
mediaType
- if null, the default media type will be usedjava.lang.IllegalArgumentException
- on bad media type, i.e. not the default media or nullMEDIA_TYPE
Copyright © 2015 Tampere University of Technology, Pori Department.