jBPM Designer - Backend 6.0.0.CR1

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

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

public class UUIDBasedFileRepository
extends Object
implements IUUIDBasedRepository


Constructor Summary
UUIDBasedFileRepository()
           
 
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

UUIDBasedFileRepository

public UUIDBasedFileRepository()
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)
Description copied from interface: IUUIDBasedRepository
Transforms given json to bpmn2 xml

Specified by:
toXML in interface IUUIDBasedRepository
Returns:
bpmn2 xml

jBPM Designer - Backend 6.0.0.CR1

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