Class GalleryCallable
java.lang.Object
de.uplanet.lucy.server.auxiliaries.gallery.GalleryCallable
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleandeleteGalleryFolder(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strFolderName) Delete the gallery image folder.static intgetCommentCount(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strImageId) Returns count of comments.static intgetGalleryCount(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strAlbumId) Returns count of galleries.static intgetImageCount(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strGalleryId) Returns count of images.static booleanScale the images of the given gallery.static booleanscaleAll(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx) Scale the images of all galleries.static booleansetPreviewImage(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strRecId) static booleansortGallery(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strGalleryRecId, String p_strSortFieldGuid, String p_strSortOrder) Sort the images of the gallery.static booleansynchronize(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strRecId, String p_strScale, String p_strDelete) Synchronize the gallery with the image directory.static booleansynchronizeAll(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strScale, String p_strDelete) Synchronize all galleries with the gallery directory.
- 
Constructor Details- 
GalleryCallablepublic GalleryCallable()
 
- 
- 
Method Details- 
getImageCountpublic static int getImageCount(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strGalleryId) throws Exception Returns count of images.- Parameters:
- p_ctx- The context.
- p_strGalleryId- The parent gallery id.
- Returns:
- Count of images.
- Throws:
- Exception
 
- 
getCommentCountpublic static int getCommentCount(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strImageId) throws Exception Returns count of comments.- Parameters:
- p_ctx- The context.
- p_strImageId- The parent image id.
- Returns:
- Count of comments.
- Throws:
- Exception
 
- 
getGalleryCountpublic static int getGalleryCount(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strAlbumId) throws Exception Returns count of galleries.- Parameters:
- p_ctx- The context.
- p_strAlbumId- The album id.
- Returns:
- Count of galleries.
- Throws:
- Exception
 
- 
synchronizeAllpublic static boolean synchronizeAll(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strScale, String p_strDelete) throws Exception Synchronize all galleries with the gallery directory.- Parameters:
- p_ctx- The context.
- p_strScale- True if the new images should be scaled.
- p_strDelete- True if the data records of deleted images should be deleted.
- Returns:
- true for success.
- Throws:
- Exception
 
- 
synchronizepublic static boolean synchronize(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strRecId, String p_strScale, String p_strDelete) throws Exception Synchronize the gallery with the image directory.- Parameters:
- p_ctx- The context.
- p_strRecId- The RecId of the gallery.
- p_strScale- True if the new images should be scaled.
- p_strDelete- True if the data records of deleted images should be deleted.
- Returns:
- True for success.
- Throws:
- Exception
 
- 
scaleAllpublic static boolean scaleAll(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx) throws Exception Scale the images of all galleries.- Parameters:
- p_ctx- The context.
- Returns:
- True for success.
- Throws:
- Exception
 
- 
scalepublic static boolean scale(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strRecId) throws Exception Scale the images of the given gallery.- Parameters:
- p_ctx- The context.
- p_strRecId- The RecId of the gallery.
- Returns:
- True for success.
- Throws:
- Exception
 
- 
sortGallerypublic static boolean sortGallery(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strGalleryRecId, String p_strSortFieldGuid, String p_strSortOrder) throws Exception Sort the images of the gallery.- Parameters:
- p_ctx- The context.
- p_strGalleryRecId- The recId of the gallery.
- p_strSortFieldGuid- The guid of the sort field.
- p_strSortOrder- The sort order: ASC or DESC.
- Returns:
- True for success.
- Throws:
- Exception
 
- 
setPreviewImagepublic static boolean setPreviewImage(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strRecId) throws Exception - Throws:
- Exception
 
- 
deleteGalleryFolderpublic static boolean deleteGalleryFolder(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strFolderName) throws Exception Delete the gallery image folder.- Parameters:
- p_ctx- The context.
- p_strFolderName- The folder name.
- Returns:
- True for success.
- Throws:
- Exception
 
 
-