Class GalleryCallable

java.lang.Object
de.uplanet.lucy.server.auxiliaries.gallery.GalleryCallable

@VelocityCallable("singleton") public final class GalleryCallable extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    deleteGalleryFolder(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strFolderName)
    Delete the gallery image folder.
    static int
    getCommentCount(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strImageId)
    Returns count of comments.
    static int
    getGalleryCount(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strAlbumId)
    Returns count of galleries.
    static int
    getImageCount(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strGalleryId)
    Returns count of images.
    static boolean
    scale(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strRecId)
    Scale the images of the given gallery.
    static boolean
    scaleAll(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx)
    Scale the images of all galleries.
    static boolean
    setPreviewImage(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strRecId)
     
    static boolean
    sortGallery(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 boolean
    synchronize(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 boolean
    synchronizeAll(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strScale, String p_strDelete)
    Synchronize all galleries with the gallery directory.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GalleryCallable

      public GalleryCallable()
  • Method Details

    • getImageCount

      public 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
    • getCommentCount

      public 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
    • getGalleryCount

      public 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
    • synchronizeAll

      public 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
    • synchronize

      public 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
    • scaleAll

      public 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
    • scale

      public 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
    • sortGallery

      public 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
    • setPreviewImage

      public static boolean setPreviewImage(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx, String p_strRecId) throws Exception
      Throws:
      Exception
    • deleteGalleryFolder

      public 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