lumis.service.media
Interface IMediaManager

Package class diagram package IMediaManager
All Known Implementing Classes:
MediaManager

public interface IMediaManager

Provides media management operations.

Since:
7.0.0

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

TYPE_ALL

static final int TYPE_ALL
See Also:
Constant Field Values
Method Detail

get

Media get(String mediaId)
          throws PortalException
Returns the MediaConfig for a media with the given id.

Parameters:
mediaId - the id of the media.
Returns:
the media.
Throws:
PortalException

getFolderIdsByParentAndName

Collection<String> getFolderIdsByParentAndName(String serviceInstanceId,
                                               String parentFolderId,
                                               String folderName)
                                               throws PortalException
Returns the ids of the folders child of the given parent and with the given name.

Parameters:
serviceInstanceId - the media service instance id.
parentFolderId - the parent folder's id. Null if the folder must not have parent.
folderName - the folder name.
Returns:
Throws:
PortalException

getChildren

Collection<Media> getChildren(String serviceInstanceId,
                              String folderId,
                              int type)
                              throws PortalException
Returns the entries in the specified folder.

Parameters:
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.
Returns:
the entries in the specified folder, or an empty collection if none is found.
Throws:
PortalException

getFolderPath

String getFolderPath(String folderId)
                     throws PortalException
Returns the virtual path to the folder.

Parameters:
folderId - the id of the folder.
Returns:
the virtual path to the folder.
Throws:
PortalException

moveMedia

void moveMedia(String mediaId,
               String destFolderId)
               throws PortalException
Moves a media (or a folder) to another folder.

Parameters:
mediaId - the media's id.
destFolderId - the id of the destination folder.
Throws:
PortalException


Lumisportal  7.0.0.121130 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.