|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMediaManager
Provides media management operations.
Field Summary | |
---|---|
static int |
TYPE_ALL
|
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. |
Field Detail |
---|
static final int TYPE_ALL
Method Detail |
---|
Media get(String mediaId) throws PortalException
mediaId
- the id of the media.
PortalException
Collection<String> getFolderIdsByParentAndName(String serviceInstanceId, String parentFolderId, String folderName) throws PortalException
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
Collection<Media> getChildren(String serviceInstanceId, String folderId, int type) throws PortalException
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 TYPE_ALL
.
PortalException
String getFolderPath(String folderId) throws PortalException
folderId
- the id of the folder.
PortalException
void moveMedia(String mediaId, String destFolderId) throws PortalException
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 |