Class ImageEditorManager

    • Method Detail

      • 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 or channel.getProperty.

        Specified by:
        propertiesChange in interface JPropertiesListener
        Parameters:
        properties - the properties which have been submitted to change
      • canModifyDataImage

        public boolean canModifyDataImage​(Publication pub,
                                          Member mbr)
        Parameters:
        pub - the Publication
        mbr - the Member
        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 - the FileDocument
        mbr - the Member
        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 - the JcmsJspContext
        Since:
        jcms-10.0.6
      • getPublicationDataImageDataAttributes

        public DataAttribute getPublicationDataImageDataAttributes​(Publication publication,
                                                                   java.lang.String userLang)
        Returns a DataAttribute for a given Publication for the javascript library
        Parameters:
        publication - the Publication
        userLang - the user language
        Returns:
        the DataAttribute map for given fileDocument
        Since:
        jcms-10.0.6