org.overlord.sramp.server.atom.services.brms
Class BrmsResource

java.lang.Object
  extended by org.overlord.sramp.server.atom.services.brms.BrmsResource

public class BrmsResource
extends Object

The JAX-RS resource that handles artifact specific tasks, including:


Constructor Summary
BrmsResource()
          Constructor.
 
Method Summary
 javax.ws.rs.core.Response getDroolsFile(String pkgName, String version, String fileName)
           
 javax.ws.rs.core.Response getDroolsPackage(String pkgName, String version)
          Returns the content of a Brms/Drools Package in the s-ramp repository.
 Packages getRestAllPackages()
          Returns an XML document with all BRMS packages in the system.
 javax.ws.rs.core.Response getRestAsset(String accept, String pkgName, String assetName)
          Returns the content of a Brms/Drools Package in the s-ramp repository.
 javax.ws.rs.core.Response getRestPackage(String pkgName)
          Returns the content of a Brms/Drools Package in the s-ramp repository.
 javax.ws.rs.core.Response getRestSourceAsset(String pkgName, String assetName)
           
 Assets getRestXMLAllAssetsInPackage(String pkgName)
          Returns an XML document with all BRMS packages in the system.
 org.jboss.resteasy.plugins.providers.atom.Entry getRestXMLAsset(String pkgName, String assetName)
          Returns an XML document with all BRMS packages in the system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrmsResource

public BrmsResource()
Constructor.

Method Detail

getRestAllPackages

public Packages getRestAllPackages()
                            throws SrampAtomException
Returns an XML document with all BRMS packages in the system. jBPM only needs the titles of the packages.

Throws:
SrampAtomException

getRestXMLAllAssetsInPackage

public Assets getRestXMLAllAssetsInPackage(String pkgName)
                                    throws SrampAtomException
Returns an XML document with all BRMS packages in the system. jBPM only needs the titles of the packages.

Throws:
SrampAtomException

getRestXMLAsset

public org.jboss.resteasy.plugins.providers.atom.Entry getRestXMLAsset(String pkgName,
                                                                       String assetName)
                                                                throws SrampAtomException
Returns an XML document with all BRMS packages in the system. jBPM only needs the titles of the packages.

Throws:
SrampAtomException

getDroolsPackage

public javax.ws.rs.core.Response getDroolsPackage(String pkgName,
                                                  String version)
                                           throws SrampAtomException
Returns the content of a Brms/Drools Package in the s-ramp repository. Note that if multiple droolsPackage with the name are found it simply takes the first one. This is probably a situation you want to avoid.

Parameters:
pkgName - - the name of the Brms Package
Throws:
SrampAtomException - http://localhost:8880/s-ramp-atom/brms/org.drools.guvnor.Guvnor/package/srampPackage/S-RAMP-0.0.3.0

getRestPackage

public javax.ws.rs.core.Response getRestPackage(String pkgName)
                                         throws SrampAtomException
Returns the content of a Brms/Drools Package in the s-ramp repository. Note that if multiple droolsPackage with the name are found it simply takes the first one. This is probably a situation you want to avoid.

Parameters:
pkgName - - the name of the Brms Package
Throws:
SrampAtomException

getDroolsFile

public javax.ws.rs.core.Response getDroolsFile(String pkgName,
                                               String version,
                                               String fileName)
                                        throws SrampAtomException
Throws:
SrampAtomException

getRestAsset

public javax.ws.rs.core.Response getRestAsset(@HeaderParam(value="Accept")
                                              String accept,
                                              String pkgName,
                                              String assetName)
                                       throws SrampAtomException
Returns the content of a Brms/Drools Package in the s-ramp repository. Note that if multiple droolsPackage with the name are found it simply takes the first one. This is probably a situation you want to avoid.

Parameters:
pkgName - - the name of the Brms Package
assetName - - the name of the Brms Asset
Throws:
SrampAtomException - http://localhost:8080/s-ramp-server/brms/rest/packages/SRAMPPackage/assets/overlord.demo.SimpleReleaseProcess-taskform http://localhost:8080/s-ramp-server/brms/org.drools.guvnor.Guvnor/package/SRAMPPackage/LATEST/overlord.demo.SimpleReleaseProcess-image.png

getRestSourceAsset

public javax.ws.rs.core.Response getRestSourceAsset(String pkgName,
                                                    String assetName)
                                             throws SrampAtomException
Throws:
SrampAtomException


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.