Class UUIDBasedFileRepository
- java.lang.Object
-
- org.jbpm.designer.web.repository.impl.UUIDBasedFileRepository
-
- All Implemented Interfaces:
IUUIDBasedRepository
public class UUIDBasedFileRepository extends Object implements IUUIDBasedRepository
-
-
Constructor Summary
Constructors Constructor Description UUIDBasedFileRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(javax.servlet.http.HttpServlet servlet)
Configure the repository in the context of the servletbyte[]
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
-
-
-
Method Detail
-
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 interfaceIUUIDBasedRepository
- 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 interfaceIUUIDBasedRepository
- 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 interfaceIUUIDBasedRepository
- 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 interfaceIUUIDBasedRepository
- Returns:
- bpmn2 xml
- Throws:
Exception
-
-