Class ImageEditorManager
- java.lang.Object
-
- com.jalios.jcms.uicomponent.image.editor.ImageEditorManager
-
- All Implemented Interfaces:
JPropertiesListener
public class ImageEditorManager extends java.lang.Object implements JPropertiesListener
-
-
Field Summary
-
Fields inherited from interface com.jalios.util.JPropertiesListener
REVISION
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addImageEditorFrontEndDependencies(JcmsJspContext context)
Adds javascript / css required to have image editorboolean
canModifyDataImage(Publication pub, Member mbr)
boolean
canModifyDocument(FileDocument doc, Member mbr)
DataAttribute
getImageEditorContextDataAttributes(FileDocument fileDocument)
Returns aDataAttribute
for a givenFileDocument
for the javascript librarystatic ImageEditorManager
getInstance()
DataAttribute
getPublicationDataImageDataAttributes(Publication publication, java.lang.String userLang)
Returns aDataAttribute
for a givenPublication
for the javascript libraryvoid
propertiesChange(JProperties properties)
Invoked after properties have been modified in JCMS and save on disk.
-
-
-
Method Detail
-
getInstance
public static ImageEditorManager getInstance()
-
propertiesChange
public void propertiesChange(JProperties properties)
Description copied from interface:JPropertiesListener
Invoked after properties have been modified in JCMS and save on disk.You cannot alter the value received in parameters.
Note that properties parameter may be null, a limited set of site properties, or all site properties.
To check that a property has been modified, reload the "current" property instead using
channel.getProperties
orchannel.getProperty
.- Specified by:
propertiesChange
in interfaceJPropertiesListener
- Parameters:
properties
- the properties which have been submitted to change
-
canModifyDataImage
public boolean canModifyDataImage(Publication pub, Member mbr)
- Parameters:
pub
- thePublication
mbr
- theMember
- Returns:
- true if given member can update data image of the given publication
- Since:
- jcms-10.0.6
-
canModifyDocument
public boolean canModifyDocument(FileDocument doc, Member mbr)
- Parameters:
doc
- theFileDocument
mbr
- theMember
- Returns:
- true if given member can update given FileDocument
- Since:
- jcms-10.0.6
-
addImageEditorFrontEndDependencies
public void addImageEditorFrontEndDependencies(JcmsJspContext context)
Adds javascript / css required to have image editor- Parameters:
context
- theJcmsJspContext
- Since:
- jcms-10.0.6
-
getImageEditorContextDataAttributes
public DataAttribute getImageEditorContextDataAttributes(FileDocument fileDocument)
Returns aDataAttribute
for a givenFileDocument
for the javascript library- Parameters:
fileDocument
- theFileDocument
- Returns:
- the
DataAttribute
map for given fileDocument - Since:
- jcms-10.0.6
-
getPublicationDataImageDataAttributes
public DataAttribute getPublicationDataImageDataAttributes(Publication publication, java.lang.String userLang)
Returns aDataAttribute
for a givenPublication
for the javascript library- Parameters:
publication
- thePublication
userLang
- the user language- Returns:
- the
DataAttribute
map for given fileDocument - Since:
- jcms-10.0.6
-
-