Package com.jalios.jcms.uicomponent
Class LightboxUtils
- java.lang.Object
-
- com.jalios.jcms.uicomponent.LightboxUtils
-
public final class LightboxUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getGlobalContentType(FileDocument doc)
static DataAttribute
getImageDataAttribute(FileDocument doc, java.lang.String userLang, java.util.Locale locale, Member mbr, boolean generateThumbnail)
Returns aDataAttribute
containing all required parameters for javascript for lightbox / image editorstatic java.lang.String
getLightboxActionLabel(java.lang.String userLang, java.lang.String propPrefix, FileDocument document)
-
-
-
Method Detail
-
getImageDataAttribute
public static DataAttribute getImageDataAttribute(FileDocument doc, java.lang.String userLang, java.util.Locale locale, Member mbr, boolean generateThumbnail)
Returns aDataAttribute
containing all required parameters for javascript for lightbox / image editor- Parameters:
doc
- theFileDocument
userLang
- the user languagelocale
- theLocale
mbr
- theMember
to check rightsgenerateThumbnail
- 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
-
getGlobalContentType
public static java.lang.String getGlobalContentType(FileDocument doc)
- Parameters:
doc
- theFileDocument
- Returns:
- the global content type (For image/jpg, it will return image/*)
- Since:
- jcms-10.0.8
-
getLightboxActionLabel
public static java.lang.String getLightboxActionLabel(java.lang.String userLang, java.lang.String propPrefix, FileDocument document)
-
-