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 String
BPSIM_DISPLAY
static String
BUNDLE_VERSION
The designer bundle version looked up from the manifest.static String
DESIGNER_PATH
The base path under which the application will be made available at runtime.static String
DEV
The designer DEV flag looked up from system properties.static String
FORMS_TYPE
static String
PREPROCESS
The designer PREPROCESS flag looked up from system properties.static String
PRESET_PERSPECTIVE
static String
SERVICE_REPO
static String
SERVICE_REPO_TASKS
static String
SHOW_PDF_DOC
static String
SKIN
The designer skin param.static String
STORE_SVG_ON_SAVE
Used to enable/disable storing of SVG when process is saved.static String
USEOLDDATAASSIGNMENTS
The 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 void
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
boolean
doShowPDFDoc(javax.servlet.ServletConfig config)
org.stringtemplate.v4.ST
getEditorTemplate()
String
getInstanceViewMode(javax.servlet.http.HttpServletRequest request)
IDiagramProfile
getProfile()
void
init(javax.servlet.ServletConfig config)
static String
readDesignerVersion(javax.servlet.ServletContext context)
Returns the designer version from the manifest.void
setProfile(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:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in 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:
doPost
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
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()
-
-