Class UUIDBasedJbpmRepository
- java.lang.Object
-
- org.jbpm.designer.web.repository.impl.UUIDBasedJbpmRepository
-
- All Implemented Interfaces:
IUUIDBasedRepository
@ApplicationScoped public class UUIDBasedJbpmRepository extends Object implements IUUIDBasedRepository
-
-
Constructor Summary
Constructors Constructor Description UUIDBasedJbpmRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(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)voidsave(javax.servlet.http.HttpServletRequest req, String uuid, String json, String svg, IDiagramProfile profile, Boolean autosave)Saves the model inside the repository.StringtoXML(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:IUUIDBasedRepositoryConfigure the repository in the context of the servlet- Specified by:
configurein 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:
loadin 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:IUUIDBasedRepositorySaves the model inside the repository.- Specified by:
savein 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:IUUIDBasedRepositoryTransforms given json to bpmn2 xml- Specified by:
toXMLin interfaceIUUIDBasedRepository- Returns:
- bpmn2 xml
- Throws:
Exception
-
-