1 13 26 package org.jahia.engines; 27 28 import org.jahia.data.JahiaData; 29 import org.jahia.exceptions.JahiaException; 30 import org.jahia.params.ParamBean; 31 32 33 public interface JahiaEngine { 34 35 public static final String ENGINE_MODE_ATTRIBUTE = "JahiaEngine.mode"; 36 37 public static final String CLOSE_JSP = "/jsp/jahia/engines/shared/close.jsp"; 38 public static final String RELOAD_JSP = "/jsp/jahia/engines/shared/reload.jsp"; 39 public static final String CANCEL_JSP = "/jsp/jahia/engines/shared/cancel.jsp"; 40 public static final String NOT_EDITABLE_FIELD = "/jsp/jahia/engines/shared/not_editable_field.jsp"; 41 42 public static final int LOAD_MODE = 1; 43 public static final int UPDATE_MODE = 2; 44 public static final int SAVE_MODE = 3; 45 public static final int DELETE_MODE = 4; 46 public static final int CANCEL_MODE = 5; 47 public static final int VALIDATE_MODE = 6; 48 49 public static final int RENDERTYPE_INCLUDE = 1; 50 public static final int RENDERTYPE_FORWARD = 2; 51 public static final int RENDERTYPE_REDIRECT = 3; 52 public static final int RENDERTYPE_NAMED_DISPATCHER = 4; 53 54 55 public static final String RENDER_TYPE_PARAM = "renderType"; 56 public static final String ENGINE_NAME_PARAM = "engineName"; 57 public static final String ENGINE_URL_PARAM = "engineUrl"; 58 public static final String ENGINE_OUTPUT_FILE_PARAM = "engineOutputFile"; 59 public static final String EMPTY_STRING = ""; 60 61 62 63 public static final String PROCESSING_LANGUAGECODE = "processingLanguageCode"; 64 65 66 public static final String ENGINE_VALIDATION_HELPER 67 = "org.jahia.engines.JahiaEngine.engineValidationHelper"; 68 69 public boolean authoriseRender (ParamBean jParams); 70 71 public String renderLink (ParamBean jParams, Object theObj) 72 throws JahiaException; 73 74 public boolean needsJahiaData (ParamBean jParams); 75 76 public void handleActions (ParamBean jParams, JahiaData jData) 77 throws JahiaException; 78 79 84 public String getName (); 85 } 86 | Popular Tags |