lumis.service.media
Class MediaManager

Package class diagram package MediaManager
java.lang.Object
  extended by lumis.service.media.MediaManager
All Implemented Interfaces:
IMediaManager

public class MediaManager
extends Object
implements IMediaManager

Media manager implementation.

Since:
7.0.0

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

MediaManager

public MediaManager()
Method Detail

get

public Media get(String mediaId)
          throws PortalException
Description copied from interface: IMediaManager
Returns the MediaConfig for a media with the given id.

Specified by:
get in interface IMediaManager
Parameters:
mediaId - the id of the media.
Returns:
the media.
Throws:
PortalException

getFolderIdsByParentAndName

public Collection<String> getFolderIdsByParentAndName(String serviceInstanceId,
                                                      String parentFolderId,
                                                      String folderName)
                                               throws PortalException
Description copied from interface: IMediaManager
Returns the ids of the folders child of the given parent and with the given name.

Specified by:
getFolderIdsByParentAndName in interface IMediaManager
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

public Collection<Media> getChildren(String serviceInstanceId,
                                     String folderId,
                                     int type)
                              throws PortalException
Description copied from interface: IMediaManager
Returns the entries in the specified folder.

Specified by:
getChildren in interface IMediaManager
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 IMediaManager.TYPE_ALL.
Returns:
the entries in the specified folder, or an empty collection if none is found.
Throws:
PortalException

getFolderPath

public String getFolderPath(String folderId)
                     throws PortalException
Description copied from interface: IMediaManager
Returns the virtual path to the folder.

Specified by:
getFolderPath in interface IMediaManager
Parameters:
folderId - the id of the folder.
Returns:
the virtual path to the folder.
Throws:
PortalException

moveMedia

public void moveMedia(String mediaId,
                      String destFolderId)
               throws PortalException
Description copied from interface: IMediaManager
Moves a media (or a folder) to another folder.

Specified by:
moveMedia in interface IMediaManager
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.