org.jbpm.designer.web.repository
Class UUIDBasedEpnRepository
java.lang.Object
org.jbpm.designer.web.repository.UUIDBasedEpnRepository
- All Implemented Interfaces:
- IUUIDBasedRepository
public class UUIDBasedEpnRepository
- extends Object
- implements IUUIDBasedRepository
Method Summary |
void |
configure(javax.servlet.http.HttpServlet servlet)
Configure the repository in the context of the servlet |
byte[] |
load(javax.servlet.http.HttpServletRequest req,
String uuid,
IDiagramProfile profile,
javax.servlet.ServletContext servletContext)
|
void |
save(javax.servlet.http.HttpServletRequest req,
String uuid,
String json,
String svg,
IDiagramProfile profile,
Boolean autosave)
Saves the model inside the repository. |
String |
toXML(String json,
IDiagramProfile profile,
String preProcessingData)
Transforms given json to bpmn2 xml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UUIDBasedEpnRepository
public UUIDBasedEpnRepository()
configure
public void configure(javax.servlet.http.HttpServlet servlet)
- Description copied from interface:
IUUIDBasedRepository
- Configure the repository in the context of the servlet
- Specified by:
configure
in interface IUUIDBasedRepository
- Parameters:
servlet
- the servlet which will use this repository.
load
public byte[] load(javax.servlet.http.HttpServletRequest req,
String uuid,
IDiagramProfile profile,
javax.servlet.ServletContext servletContext)
throws Exception
- Specified by:
load
in interface IUUIDBasedRepository
- Parameters:
req
- the request from the user.uuid
- the id of the model.
- Returns:
- the model as a set of bytes.
- Throws:
Exception
save
public void save(javax.servlet.http.HttpServletRequest req,
String uuid,
String json,
String svg,
IDiagramProfile profile,
Boolean autosave)
- Description copied from interface:
IUUIDBasedRepository
- Saves the model inside the repository.
- Specified by:
save
in interface IUUIDBasedRepository
- Parameters:
req
- the request from the user.uuid
- the id of the modeljson
- the json modelsvg
- the svg representation of the modelprofile
- the profile
toXML
public String toXML(String json,
IDiagramProfile profile,
String preProcessingData)
throws Exception
- Description copied from interface:
IUUIDBasedRepository
- Transforms given json to bpmn2 xml
- Specified by:
toXML
in interface IUUIDBasedRepository
- Returns:
- bpmn2 xml
- Throws:
Exception
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.