lumis.service.image
Class ImageManager

Package class diagram package ImageManager
java.lang.Object
  extended by lumis.service.image.ImageManager
All Implemented Interfaces:
IImageManager

public class ImageManager
extends Object
implements IImageManager

Since:
4.0.0

Field Summary
 
Fields inherited from interface lumis.service.image.IImageManager
TYPE_ALL
 
Constructor Summary
ImageManager()
           
 
Method Summary
 ImageConfig get(SessionConfig sessionConfig, String imageId, ITransaction transaction)
          Returns the ImageConfig for a image with the given id.
 Collection<ImageConfig> getChildren(SessionConfig sessionConfig, String serviceInstanceId, String folderId, int type, ITransaction transaction)
          Returns the entries in the specified folder.
 Collection<String> getFolderIdsByParentAndName(SessionConfig sessionConfig, String serviceInstanceId, String parentFolderId, String folderName, ITransaction transaction)
          Returns the ids of the folders child of the given parent and with the given name.
 String getFolderPath(SessionConfig sessionConfig, String folderId, ITransaction transaction)
          Returns the virtual path to the folder.
 void moveImage(SessionConfig sessionConfig, String imageId, String destFolderId, ITransaction transaction)
          Moves a image (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

ImageManager

public ImageManager()
Method Detail

get

public ImageConfig get(SessionConfig sessionConfig,
                       String imageId,
                       ITransaction transaction)
                throws PortalException
Description copied from interface: IImageManager
Returns the ImageConfig for a image with the given id.

Specified by:
get in interface IImageManager
Parameters:
sessionConfig - identifier for the session.
imageId - the id of the image.
transaction - the transaction for persistence access.
Returns:
the ImageConfig for the image, or null if it is not found.
Throws:
PortalException

getFolderIdsByParentAndName

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

Specified by:
getFolderIdsByParentAndName in interface IImageManager
Parameters:
sessionConfig - identifier for the session.
serviceInstanceId - the image service instance id.
parentFolderId - the parent folder's id. Null if the folder must not have parent.
folderName - the folder name.
transaction - the transaction for persistence access.
Returns:
Throws:
PortalException

getChildren

public Collection<ImageConfig> getChildren(SessionConfig sessionConfig,
                                           String serviceInstanceId,
                                           String folderId,
                                           int type,
                                           ITransaction transaction)
                                    throws PortalException
Description copied from interface: IImageManager
Returns the entries in the specified folder.

Specified by:
getChildren in interface IImageManager
Parameters:
sessionConfig - identifier for the session.
serviceInstanceId - the image service instance id.
folderId - the id of the folder.
type - the entry types to be returned. Must be ImageConfig.TYPE_FOLDER, ImageConfig.TYPE_IMAGE or IImageManager.TYPE_ALL.
transaction - the transaction for persistence access.
Returns:
the entries in the specified folder, or an empty collection if none is found.
Throws:
PortalException

getFolderPath

public String getFolderPath(SessionConfig sessionConfig,
                            String folderId,
                            ITransaction transaction)
                     throws PortalException
Description copied from interface: IImageManager
Returns the virtual path to the folder.

Specified by:
getFolderPath in interface IImageManager
Parameters:
sessionConfig - identifier for the session.
folderId - the id of the folder.
transaction - the transaction for persistence access.
Returns:
the virtual path to the folder.
Throws:
PortalException

moveImage

public void moveImage(SessionConfig sessionConfig,
                      String imageId,
                      String destFolderId,
                      ITransaction transaction)
               throws PortalException
Description copied from interface: IImageManager
Moves a image (or a folder) to another folder.

Specified by:
moveImage in interface IImageManager
Parameters:
sessionConfig - identifier for the session.
imageId - the image's id.
destFolderId - the id of the destination folder.
transaction - the transaction for persistence access.
Throws:
PortalException


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.