1 // 2 // ____. 3 // __/\ ______| |__/\. _______ 4 // __ .____| | \ | +----+ \ 5 // _______| /--| | | - \ _ | : - \_________ 6 // \\______: :---| : : | : | \________> 7 // |__\---\_____________:______: :____|____:_____\ 8 // /_____| 9 // 10 // . . . i n j a h i a w e t r u s t . . . 11 // 12 // 13 package org.jahia.services.htmleditors; 14 15 import java.util.Vector; 16 17 import org.jahia.exceptions.JahiaException; 18 19 /** 20 * Html Editors Factory Interface 21 * 22 * @author Khue Nguyen 23 */ 24 public interface HtmlEditorsFactory 25 { 26 27 /** 28 * Returns a Vector of all Html Editors registered in the System 29 * 30 * @return all Html Editors registered in the system 31 * @throws JahiaException 32 */ 33 public abstract Vector getEditors() throws JahiaException; 34 35 /** 36 * Returns a Vector of all Html Editor CSS registered in the System 37 * 38 * @return all Html Editor CSS registered in the system 39 * @throws JahiaException 40 */ 41 public abstract Vector getCSSs() throws JahiaException; 42 43 /** 44 * Returns an Editor looking at it id 45 * 46 * @param id the Editor identifier 47 * @return an Editor looking at it id 48 * @throws JahiaException 49 */ 50 public abstract HtmlEditor getEditor(String id) throws JahiaException; 51 52 /** 53 * Returns an CSS looking at it id 54 * 55 * @param id the CSS identifier 56 * @return an CSS looking at it id 57 * @throws JahiaException 58 */ 59 public abstract HtmlEditorCSS getCSS(String id) throws JahiaException; 60 } 61 62