|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.service.media.MediaManager
public class MediaManager
Media manager implementation.
Field Summary |
---|
Fields inherited from interface lumis.service.media.IMediaManager |
---|
TYPE_ALL |
Constructor Summary | |
---|---|
MediaManager()
|
Method Summary | |
---|---|
Media |
get(String mediaId)
Returns the MediaConfig for a media with the given id. |
Collection<Media> |
getChildren(String serviceInstanceId,
String folderId,
int type)
Returns the entries in the specified folder. |
Collection<String> |
getFolderIdsByParentAndName(String serviceInstanceId,
String parentFolderId,
String folderName)
Returns the ids of the folders child of the given parent and with the given name. |
String |
getFolderPath(String folderId)
Returns the virtual path to the folder. |
void |
moveMedia(String mediaId,
String destFolderId)
Moves a media (or a folder) to another folder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MediaManager()
Method Detail |
---|
public Media get(String mediaId) throws PortalException
IMediaManager
get
in interface IMediaManager
mediaId
- the id of the media.
PortalException
public Collection<String> getFolderIdsByParentAndName(String serviceInstanceId, String parentFolderId, String folderName) throws PortalException
IMediaManager
getFolderIdsByParentAndName
in interface IMediaManager
serviceInstanceId
- the media service instance id.parentFolderId
- the parent folder's id. Null if the folder must not have parent.folderName
- the folder name.
PortalException
public Collection<Media> getChildren(String serviceInstanceId, String folderId, int type) throws PortalException
IMediaManager
getChildren
in interface IMediaManager
serviceInstanceId
- the media service instance id.folderId
- the id of the folder.type
- the entry types to be returned. Must be Media.TYPE_FOLDER
, Media.TYPE_MEDIA
or IMediaManager.TYPE_ALL
.
PortalException
public String getFolderPath(String folderId) throws PortalException
IMediaManager
getFolderPath
in interface IMediaManager
folderId
- the id of the folder.
PortalException
public void moveMedia(String mediaId, String destFolderId) throws PortalException
IMediaManager
moveMedia
in interface IMediaManager
mediaId
- the media's id.destFolderId
- the id of the destination folder.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |