Package com.jalios.jcms.document.editor
Class DocumentEditorManager
java.lang.Object
com.jalios.jcms.document.editor.DocumentEditorManager
- All Implemented Interfaces:
JPropertiesListener
-
Method Summary
Modifier and TypeMethodDescriptiongetDocumentEditorList(FileDocument doc, Member mbr, String lang) Deprecated.getDocumentEditorList(FileDocument doc, Member mbr, String lang, OpeningMode openingMode) Return the list of DocumentEditor available for the given document and the given member.static DocumentEditorManagervoidpropertiesChange(JProperties properties) Invoked after properties have been modified in JCMS and save on disk.
-
Method Details
-
getInstance
-
propertiesChange
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
-
getDocumentEditorList
Deprecated.Return the list of DocumentEditor available for the given document and the given member. This method is provided only for backward compatibility. It returns Write DocumentEditors if the member can update the document and Read DocumentEditors otherwise.- Parameters:
doc- the document to editmbr- the memberlang- the language (used to sort editors)- Returns:
- the list of DocumentEditor available for the given document and the given member.
-
getDocumentEditorList
public List<DocumentEditor> getDocumentEditorList(FileDocument doc, Member mbr, String lang, OpeningMode openingMode) Return the list of DocumentEditor available for the given document and the given member.- Parameters:
doc- the document to editmbr- the memberlang- the language (used to sort editors)openingMode- the OpeningMode- Returns:
- the list of DocumentEditor available for the given document and the given member.
- Since:
- jcms-11.0.0
-
getDocumentEditorList(FileDocument, Member, String, OpeningMode)