public interface IMediaManager
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_ALL |
Modifier and Type | Method and Description |
---|---|
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.
|
static final int TYPE_ALL
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
Lumisportal 9.0.0.160603 - Copyright © 2006–2016 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.