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 voidaddImageEditorFrontEndDependencies(JcmsJspContext context)Adds javascript / css required to have image editorbooleancanModifyDataImage(Publication pub, Member mbr)booleancanModifyDocument(FileDocument doc, Member mbr)DataAttributegetImageEditorContextDataAttributes(FileDocument fileDocument)Returns aDataAttributefor a givenFileDocumentfor the javascript librarystatic ImageEditorManagergetInstance()DataAttributegetPublicationDataImageDataAttributes(Publication publication, java.lang.String userLang)Returns aDataAttributefor a givenPublicationfor the javascript libraryvoidpropertiesChange(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:JPropertiesListenerInvoked 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.getPropertiesorchannel.getProperty.- Specified by:
 propertiesChangein interfaceJPropertiesListener- Parameters:
 properties- the properties which have been submitted to change
 
- 
canModifyDataImage
public boolean canModifyDataImage(Publication pub, Member mbr)
- Parameters:
 pub- thePublicationmbr- 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- theFileDocumentmbr- 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 aDataAttributefor a givenFileDocumentfor the javascript library- Parameters:
 fileDocument- theFileDocument- Returns:
 - the 
DataAttributemap for given fileDocument - Since:
 - jcms-10.0.6
 
 
- 
getPublicationDataImageDataAttributes
public DataAttribute getPublicationDataImageDataAttributes(Publication publication, java.lang.String userLang)
Returns aDataAttributefor a givenPublicationfor the javascript library- Parameters:
 publication- thePublicationuserLang- the user language- Returns:
 - the 
DataAttributemap for given fileDocument - Since:
 - jcms-10.0.6
 
 
 - 
 
 -