Class LightboxUtils


  • public final class LightboxUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static DataAttribute getImageDataAttribute​(FileDocument doc, java.lang.String userLang, java.util.Locale locale, Member mbr, boolean generateThumbnail)
      Returns a DataAttribute containing all required parameters for javascript for lightbox / image editor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getImageDataAttribute

        public static DataAttribute getImageDataAttribute​(FileDocument doc,
                                                          java.lang.String userLang,
                                                          java.util.Locale locale,
                                                          Member mbr,
                                                          boolean generateThumbnail)
        Returns a DataAttribute containing all required parameters for javascript for lightbox / image editor
        Parameters:
        doc - the FileDocument
        userLang - the user language
        locale - the Locale
        mbr - the Member to check rights
        generateThumbnail - to generate a thumbnail for lightbox (By default, raw image will be used)
        Returns:
        DataAttribute for lightbox and image editor front end libraries
        Since:
        jcms-10.0.6 / JCMS-8841