jBPM Designer - Backend 6.0.3-SNAPSHOT

org.jbpm.designer.web.repository.impl
Class UUIDBasedJbpmRepository

java.lang.Object
  extended by org.jbpm.designer.web.repository.impl.UUIDBasedJbpmRepository
All Implemented Interfaces:
IUUIDBasedRepository

public class UUIDBasedJbpmRepository
extends Object
implements IUUIDBasedRepository


Constructor Summary
UUIDBasedJbpmRepository()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UUIDBasedJbpmRepository

public UUIDBasedJbpmRepository()
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 interface IUUIDBasedRepository
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 interface IUUIDBasedRepository
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 interface IUUIDBasedRepository
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

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 interface IUUIDBasedRepository
Returns:
bpmn2 xml
Throws:
Exception

jBPM Designer - Backend 6.0.3-SNAPSHOT

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