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)
           
 org.imixs.workflow.xml.EntityCollection getActivityListXML(String version, int processid)
           
 String getAllVersions()
           
 org.imixs.workflow.xml.EntityCollection getProcessList(String version)
           
 org.imixs.workflow.xml.EntityCollection getProcessListXML(String version)
           
 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)

getProcessListXML

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

getActivityList

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

getActivityListXML

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

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-2011 Imixs Software Solutions GmbH. All Rights Reserved.