public abstract class Media extends java.lang.Object
| Constructor and Description |
|---|
Media()
for serialization, must be public for solr.
|
Media(java.lang.String guid) |
Media(java.lang.String guid,
UserIdentity ownerUserId,
CAContentCore.ServiceType serviceType,
CAContentCore.Visibility visibility) |
| Modifier and Type | Method and Description |
|---|---|
void |
addackendStatus(BackendStatus backend) |
void |
addMediaObject(MediaObject object)
Adds the given object, NOTE: this will NOT check for duplicates.
|
void |
addMediaObjects(MediaObjectList mediaObjects)
Adds the given objects, NOTE: this will NOT check for duplicates.
|
BackendStatusList |
getBackendStatus()
Default data groups: backend_status
|
java.lang.String |
getCredits()
Default data groups: basic
|
java.lang.String |
getDescription()
Default data groups: basic
|
java.lang.String |
getGUID()
|
MediaObjectList |
getMediaObjects()
Default data groups: defaults
|
MediaUrlValidator.MediaType |
getMediaType() |
java.lang.Integer |
getMediaTypeValue() |
java.lang.String |
getName()
Default data groups: basic
|
UserIdentity |
getOwnerUserId()
|
java.lang.Long |
getOwnerUserIdValue() |
java.lang.Integer |
getServiceId() |
CAContentCore.ServiceType |
getServiceType()
|
java.util.Date |
getUpdated() |
java.lang.String |
getUrl()
|
CAContentCore.Visibility |
getVisibility()
Default data groups: basic, visibility
If visibility is not available, it should be assumed to be
CAContentCore.Visibility.PRIVATE |
java.lang.Integer |
getVisibilityValue() |
static boolean |
isValid(Media media) |
void |
setBackendStatus(BackendStatusList backendStatus) |
void |
setCredits(java.lang.String credits) |
void |
setDescription(java.lang.String description) |
void |
setGUID(java.lang.String guid) |
void |
setMediaObjects(MediaObjectList mediaObjects) |
void |
setMediaType(MediaUrlValidator.MediaType mediaType) |
void |
setName(java.lang.String name) |
void |
setOwnerUserId(UserIdentity ownerId) |
void |
setServiceType(CAContentCore.ServiceType type) |
void |
setUpdated(java.util.Date updated) |
void |
setUrl(java.lang.String url) |
void |
setVisibility(CAContentCore.Visibility visibility) |
public Media()
public Media(java.lang.String guid)
guid - public Media(java.lang.String guid, UserIdentity ownerUserId, CAContentCore.ServiceType serviceType, CAContentCore.Visibility visibility)
guid - ownerUserId - serviceType - visibility - public java.lang.String getUrl()
setUrl(String)public BackendStatusList getBackendStatus()
setBackendStatus(BackendStatusList)public void setBackendStatus(BackendStatusList backendStatus)
backendStatus - getBackendStatus()public void addackendStatus(BackendStatus backend)
backend - getBackendStatus()public MediaObjectList getMediaObjects()
setMediaObjects(MediaObjectList)public void setMediaObjects(MediaObjectList mediaObjects)
mediaObjects - getMediaObjects()public void addMediaObject(MediaObject object)
object - getMediaObjects()public void addMediaObjects(MediaObjectList mediaObjects)
mediaObjects - getMediaObjects()public void setServiceType(CAContentCore.ServiceType type)
type - getServiceType()public CAContentCore.ServiceType getServiceType()
setServiceType(service.tut.pori.contentanalysis.CAContentCore.ServiceType)public java.lang.Integer getServiceId()
getServiceType()public java.lang.String getGUID()
setGUID(String)public java.lang.Long getOwnerUserIdValue()
getOwnerUserId()public UserIdentity getOwnerUserId()
setOwnerUserId(UserIdentity)public void setOwnerUserId(UserIdentity ownerId)
ownerId - the media's owner's user idgetOwnerUserId()public static boolean isValid(Media media)
media - can be nullpublic java.lang.String getCredits()
setCredits(String)public void setCredits(java.lang.String credits)
credits - getCredits()public java.lang.String getName()
setName(String)public java.lang.String getDescription()
setDescription(String)public void setDescription(java.lang.String description)
description - getDescription()public void setVisibility(CAContentCore.Visibility visibility)
visibility - getVisibility()public CAContentCore.Visibility getVisibility()
CAContentCore.Visibility.PRIVATEsetVisibility(service.tut.pori.contentanalysis.CAContentCore.Visibility)public java.lang.Integer getVisibilityValue()
getVisibility()public java.util.Date getUpdated()
public void setUpdated(java.util.Date updated)
updated - the updated to setpublic MediaUrlValidator.MediaType getMediaType()
public void setMediaType(MediaUrlValidator.MediaType mediaType)
mediaType - the mediaType to setpublic java.lang.Integer getMediaTypeValue()
getMediaType()Copyright © 2015 Tampere University of Technology, Pori Department.