org.imixs.workflow.jaxrs
Class ModelRestService

java.lang.Object
  extended by org.imixs.workflow.jaxrs.ModelRestService

public class ModelRestService
extends Object

The WorkflowService Handler supports methods to process different kind of request URIs

Author:
rsoika

Constructor Summary
ModelRestService()
           
 
Method Summary
 void deleteModel(String version)
           
 org.imixs.workflow.xml.EntityCollection getActivityList(String version, int processid, String items)
           
 org.imixs.workflow.xml.EntityCollection getActivityListJSON(String version, int processid, String items)
           
 org.imixs.workflow.xml.EntityCollection getActivityListXML(String version, int processid, String items)
           
 String getAllVersions()
           
 org.imixs.workflow.xml.XMLItemCollection getProcessEntity(String version, int processid, String items)
           
 org.imixs.workflow.xml.XMLItemCollection getProcessEntityJSON(String version, int processid, String items)
           
 org.imixs.workflow.xml.XMLItemCollection getProcessEntityXML(String version, int processid, String items)
           
 org.imixs.workflow.xml.EntityCollection getProcessList(String version, String items)
           
 org.imixs.workflow.xml.EntityCollection getProcessListJSON(String version, String items)
           
 org.imixs.workflow.xml.EntityCollection getProcessListXML(String version, String items)
           
 org.imixs.workflow.xml.EntityCollection getStartProcessList(String version, String items)
          Retuns a list of all Start Entities from each workflowgroup
 org.imixs.workflow.xml.EntityCollection getStartProcessListJSON(String version, String items)
           
 org.imixs.workflow.xml.EntityCollection getStartProcessListXML(String version, String items)
           
 void postModel(org.imixs.workflow.xml.EntityCollection ecol)
           
 void postModelByVersion(String sModelVersion, org.imixs.workflow.xml.EntityCollection ecol)
           
 void putModel(org.imixs.workflow.xml.EntityCollection ecol)
          This method updates a Model provided in a EntityCollection object.
 void putModelByVersion(String sModelVersion, org.imixs.workflow.xml.EntityCollection ecol)
          This method updates a Model provided in a EntityCollection object for a provided model version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelRestService

public ModelRestService()
Method Detail

getAllVersions

public String getAllVersions()

getProcessList

public org.imixs.workflow.xml.EntityCollection getProcessList(String version,
                                                              String items)

getProcessListXML

public org.imixs.workflow.xml.EntityCollection getProcessListXML(String version,
                                                                 String items)

getProcessListJSON

public org.imixs.workflow.xml.EntityCollection getProcessListJSON(String version,
                                                                  String items)

getProcessEntity

public org.imixs.workflow.xml.XMLItemCollection getProcessEntity(String version,
                                                                 int processid,
                                                                 String items)

getProcessEntityXML

public org.imixs.workflow.xml.XMLItemCollection getProcessEntityXML(String version,
                                                                    int processid,
                                                                    String items)

getProcessEntityJSON

public org.imixs.workflow.xml.XMLItemCollection getProcessEntityJSON(String version,
                                                                     int processid,
                                                                     String items)

getStartProcessList

public org.imixs.workflow.xml.EntityCollection getStartProcessList(String version,
                                                                   String items)
Retuns a list of all Start Entities from each workflowgroup

Parameters:
version -
Returns:

getStartProcessListXML

public org.imixs.workflow.xml.EntityCollection getStartProcessListXML(String version,
                                                                      String items)

getStartProcessListJSON

public org.imixs.workflow.xml.EntityCollection getStartProcessListJSON(String version,
                                                                       String items)

getActivityList

public org.imixs.workflow.xml.EntityCollection getActivityList(String version,
                                                               int processid,
                                                               String items)

getActivityListXML

public org.imixs.workflow.xml.EntityCollection getActivityListXML(String version,
                                                                  int processid,
                                                                  String items)

getActivityListJSON

public org.imixs.workflow.xml.EntityCollection getActivityListJSON(String version,
                                                                   int processid,
                                                                   String items)

deleteModel

public void deleteModel(String version)

putModelByVersion

public void putModelByVersion(String sModelVersion,
                              org.imixs.workflow.xml.EntityCollection ecol)
This method updates a Model provided in a EntityCollection object for a provided model version. The Method expects a subresource with a ModelVersion. Next the method updates each Entity object with the property $ModelVersion. An old version will be automatically removed before update.

Parameters:
version - - $modelversion
ecol - - model data

putModel

public void putModel(org.imixs.workflow.xml.EntityCollection ecol)
This method updates a Model provided in a EntityCollection object. The method takes the first entity to get the provided $modelVersion. An old version will be automatically removed before update.

Parameters:
ecol -

postModelByVersion

public void postModelByVersion(String sModelVersion,
                               org.imixs.workflow.xml.EntityCollection ecol)

postModel

public void postModel(org.imixs.workflow.xml.EntityCollection ecol)


Copyright © 2010-2012 Imixs Software Solutions GmbH. All Rights Reserved.