Package org.jbpm.designer.server
Class EditorHandler
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.jbpm.designer.server.EditorHandler
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
@WebServlet(displayName="Oryx Editor Handler",name="EditorHandler",urlPatterns={"/editor","/editor/*"},initParams={@WebInitParam(name="designer.dev",value="true"),@WebInitParam(name="designer.preprocess",value="true"),@WebInitParam(name="designer.locale",value="en"),@WebInitParam(name="designer.skin",value="default")}) public class EditorHandler extends javax.servlet.http.HttpServlet- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringBPSIM_DISPLAYstatic StringBUNDLE_VERSIONThe designer bundle version looked up from the manifest.static StringDESIGNER_PATHThe base path under which the application will be made available at runtime.static StringDEVThe designer DEV flag looked up from system properties.static StringFORMS_TYPEstatic StringPREPROCESSThe designer PREPROCESS flag looked up from system properties.static StringPRESET_PERSPECTIVEstatic StringSERVICE_REPOstatic StringSERVICE_REPO_TASKSstatic StringSHOW_PDF_DOCstatic StringSKINThe designer skin param.static StringSTORE_SVG_ON_SAVEUsed to enable/disable storing of SVG when process is saved.static StringUSEOLDDATAASSIGNMENTSThe designer USEOLDDATAASSIGNMENTS flag looked up from system properties.
-
Constructor Summary
Constructors Constructor Description EditorHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)voiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)booleandoShowPDFDoc(javax.servlet.ServletConfig config)org.stringtemplate.v4.STgetEditorTemplate()StringgetInstanceViewMode(javax.servlet.http.HttpServletRequest request)IDiagramProfilegetProfile()voidinit(javax.servlet.ServletConfig config)static StringreadDesignerVersion(javax.servlet.ServletContext context)Returns the designer version from the manifest.voidsetProfile(IDiagramProfile profile)-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
DESIGNER_PATH
public static final String DESIGNER_PATH
The base path under which the application will be made available at runtime. This constant should be used throughout the application.
-
DEV
public static final String DEV
The designer DEV flag looked up from system properties.- See Also:
- Constant Field Values
-
USEOLDDATAASSIGNMENTS
public static final String USEOLDDATAASSIGNMENTS
The designer USEOLDDATAASSIGNMENTS flag looked up from system properties.- See Also:
- Constant Field Values
-
SHOW_PDF_DOC
public static final String SHOW_PDF_DOC
- See Also:
- Constant Field Values
-
PRESET_PERSPECTIVE
public static final String PRESET_PERSPECTIVE
- See Also:
- Constant Field Values
-
BPSIM_DISPLAY
public static final String BPSIM_DISPLAY
- See Also:
- Constant Field Values
-
FORMS_TYPE
public static final String FORMS_TYPE
- See Also:
- Constant Field Values
-
PREPROCESS
public static final String PREPROCESS
The designer PREPROCESS flag looked up from system properties.- See Also:
- Constant Field Values
-
SKIN
public static final String SKIN
The designer skin param.- See Also:
- Constant Field Values
-
SERVICE_REPO
public static final String SERVICE_REPO
- See Also:
- Constant Field Values
-
SERVICE_REPO_TASKS
public static final String SERVICE_REPO_TASKS
- See Also:
- Constant Field Values
-
BUNDLE_VERSION
public static final String BUNDLE_VERSION
The designer bundle version looked up from the manifest.- See Also:
- Constant Field Values
-
STORE_SVG_ON_SAVE
public static final String STORE_SVG_ON_SAVE
Used to enable/disable storing of SVG when process is saved.- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException- Overrides:
doPostin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
readDesignerVersion
public static String readDesignerVersion(javax.servlet.ServletContext context)
Returns the designer version from the manifest.- Parameters:
context-- Returns:
- version
-
getInstanceViewMode
public String getInstanceViewMode(javax.servlet.http.HttpServletRequest request)
-
doShowPDFDoc
public boolean doShowPDFDoc(javax.servlet.ServletConfig config)
-
setProfile
public void setProfile(IDiagramProfile profile)
-
getProfile
public IDiagramProfile getProfile()
-
getEditorTemplate
public org.stringtemplate.v4.ST getEditorTemplate()
-
-