public class UUIDBasedEpnRepository extends Object implements IUUIDBasedRepository
| Constructor and Description |
|---|
UUIDBasedEpnRepository() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public void configure(javax.servlet.http.HttpServlet servlet)
IUUIDBasedRepositoryconfigure in interface IUUIDBasedRepositoryservlet - the servlet which will use this repository.public byte[] load(javax.servlet.http.HttpServletRequest req,
String uuid,
IDiagramProfile profile,
javax.servlet.ServletContext servletContext)
throws Exception
load in interface IUUIDBasedRepositoryreq - the request from the user.uuid - the id of the model.Exceptionpublic void save(javax.servlet.http.HttpServletRequest req,
String uuid,
String json,
String svg,
IDiagramProfile profile,
Boolean autosave)
IUUIDBasedRepositorysave in interface IUUIDBasedRepositoryreq - the request from the user.uuid - the id of the modeljson - the json modelsvg - the svg representation of the modelprofile - the profilepublic String toXML(String json, IDiagramProfile profile, String preProcessingData) throws Exception
IUUIDBasedRepositorytoXML in interface IUUIDBasedRepositoryExceptionCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.