|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MediaManager
Manager for multimedia content objects supported CRUD operations including inserting, retrieving, updating, counting, deleting, listing, and moving multimedia items.
| Method Summary | ||
|---|---|---|
void |
delete(Media mediaObj)
Deletes the given media object from the system |
|
|
getMedia(Class<T> type,
long mediaID)
Retrieves the item from the system of the given type with the specified id. |
|
|
getMedia(T resultFilter)
Retrieves the first multimedia item that matches the given result filter |
|
|
getMediaByExternalID(Class<T> type,
String externalID)
Retrieves the item from the system of the given type with the specified external id obtained from the VideoProvider service |
|
|
getMediaCollection(T resultFilter)
Returns the collection of all multimedia items matching the given result filter |
|
|
getMediaCollection(TagSet tagSet,
T resultFilter)
Returns the collection of all multimedia items within the given tag set matching the given result filter |
|
|
getMediaCount(T resultFilter)
Gets the count of all multimedia items matching the given result filter |
|
int |
getMediaCount(TagSet tagSet,
Class<? extends Media> type)
Gets the count of all multimedia items of the specified type within the given tag set |
|
|
insert(T mediaObj)
Inserts the given media object into the system |
|
void |
move(Media toMove,
JiveContainer target)
Moves a video from one container to another. |
|
void |
update(Media mediaObj)
Updates the media object with an id and content type matching the id and type of the given item with the new values contained in the given mediaObj |
|
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
void update(Media mediaObj)
throws RejectedException,
UnauthorizedException
mediaObj - to update
RejectedException - if the update is invalid or may put the system in an invalid state
UnauthorizedException - if the effective user doesn't have permission to update the item
<T extends Media> T getMedia(Class<T> type,
long mediaID)
throws UnauthorizedException
type - of multimedia content object implementationmediaID - the object id in the system of the item to retrieve
UnauthorizedException - if the effective user doesn't have permission to update the item
<T extends Media> T getMediaByExternalID(Class<T> type,
String externalID)
throws UnauthorizedException
VideoProvider service
type - of multimedia content object implementationexternalID - retrieved from the video service associated to the multimedia item in the system
UnauthorizedException - if the effective user doesn't have permission to update the item
<M extends Media,T extends MediaResultFilter<Class<? extends M>>> M getMedia(T resultFilter)
throws UnauthorizedException
resultFilter - used to constrain and sort results
UnauthorizedException - if the effective user doesn't have permission to update the item<T extends MediaResultFilter> int getMediaCount(T resultFilter)
resultFilter - used to constrain results
int getMediaCount(TagSet tagSet,
Class<? extends Media> type)
tagSet - used to filter resultstype - of multimedia content object implementation
<T extends Media> T insert(T mediaObj)
throws RejectedException,
UnauthorizedException
mediaObj - to insert
RegistrationManager - if the object creation is invalid or would put the system in an invalid state
UnauthorizedException - if the effective user doesn't have permission to update the item
RejectedException
void delete(Media mediaObj)
throws UnauthorizedException
mediaObj - to be deleted
UnauthorizedException - if the effective user doesn't have permission to delete the item<T extends MediaResultFilter> JiveIterator<? extends Media> getMediaCollection(T resultFilter)
resultFilter - used to constrain results
<T extends MediaResultFilter> JiveIterator<? extends Media> getMediaCollection(TagSet tagSet,
T resultFilter)
tagSet - to limit resultsresultFilter - used to constrain results
void move(Media toMove,
JiveContainer target)
throws UnauthorizedException,
RejectedException
target container.
or be the author of the media and have rights to create new media in the target container
toMove - media to move to another containertarget - the new container to move the media to
UnauthorizedException - if does not have admin or moderator permissions for the thread's current container
and the target container.
RejectedException - if the move is rejected for any reason
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||