public class UUIDBasedFileRepository extends Object implements IUUIDBasedRepository
Constructor and Description |
---|
UUIDBasedFileRepository() |
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)
IUUIDBasedRepository
configure
in interface IUUIDBasedRepository
servlet
- 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 IUUIDBasedRepository
req
- the request from the user.uuid
- the id of the model.Exception
public void save(javax.servlet.http.HttpServletRequest req, String uuid, String json, String svg, IDiagramProfile profile, Boolean autosave)
IUUIDBasedRepository
save
in interface IUUIDBasedRepository
req
- 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
IUUIDBasedRepository
toXML
in interface IUUIDBasedRepository
Exception
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.