jBPM Designer - Backend 6.0.0.CR1

org.jbpm.designer.web.repository
Interface IUUIDBasedRepository

All Known Implementing Classes:
UUIDBasedEpnRepository, UUIDBasedFileRepository, UUIDBasedJbpmRepository

public interface 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
 

Method Detail

configure

void configure(javax.servlet.http.HttpServlet servlet)
Configure the repository in the context of the servlet

Parameters:
servlet - the servlet which will use this repository.

load

byte[] load(javax.servlet.http.HttpServletRequest req,
            String uuid,
            IDiagramProfile profile,
            javax.servlet.ServletContext servletContext)
            throws Exception
Parameters:
req - the request from the user.
uuid - the id of the model.
ext - the file extension to apply to the model.
loadExt - the external url to load from
Returns:
the model as a set of bytes.
Throws:
Exception

save

void save(javax.servlet.http.HttpServletRequest req,
          String uuid,
          String json,
          String svg,
          IDiagramProfile profile,
          Boolean autosave)
Saves the model inside the repository.

Parameters:
req - the request from the user.
uuid - the id of the model
json - the json model
svg - the svg representation of the model
profile - the profile

toXML

String toXML(String json,
             IDiagramProfile profile,
             String preProcessingData)
Transforms given json to bpmn2 xml

Parameters:
json -
profile -
preProcessingData -
Returns:
bpmn2 xml

jBPM Designer - Backend 6.0.0.CR1

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.