org.jbpm.integration.console.shared
Class GuvnorConnectionUtils

java.lang.Object
  extended by org.jbpm.integration.console.shared.GuvnorConnectionUtils

public class GuvnorConnectionUtils
extends Object


Field Summary
static String EXT_BPMN
           
static String EXT_BPMN2
           
static String GUVNOR_CONNECTTIMEOUT_KEY
           
static String GUVNOR_HOST_KEY
           
static String GUVNOR_PACKAGES_KEY
           
static String GUVNOR_PROTOCOL_KEY
           
static String GUVNOR_PWD_KEY
           
static String GUVNOR_READTIMEOUT_KEY
           
static String GUVNOR_SNAPSHOT_NAME
           
static String GUVNOR_SUBDOMAIN_KEY
           
static String GUVNOR_USR_KEY
           
 
Constructor Summary
GuvnorConnectionUtils()
           
 
Method Summary
protected  void applyAuth(HttpURLConnection connection)
           
 boolean canBuildPackage(String packageName)
           
 StringReader createChangeSet()
           
 StringReader createChangeSet(List<String> packageNames)
           
 List<String> getAllProcessesInPackage(String pkgName)
           
 List<String> getBuiltPackageNames()
           
 InputStream getFormTemplateFromGuvnor(String templateName)
           
 String getFormTemplateURLFromGuvnor(String templateName)
           
 String getFormTemplateURLFromGuvnor(String templateName, String format)
           
 String getGuvnorConnectTimeout()
           
 String getGuvnorHost()
           
 String getGuvnorPackages()
           
protected  Properties getGuvnorProperties()
           
 String getGuvnorProtocol()
           
 String getGuvnorPwd()
           
 String getGuvnorReadTimeout()
           
 String getGuvnorSnapshotName()
           
 String getGuvnorSubdomain()
           
 String getGuvnorUsr()
           
 List<String> getPackageNames()
           
 byte[] getProcessImageFromGuvnor(String processId)
           
 String getProcessImageURLFromGuvnor(String processId)
           
 boolean guvnorExists()
           
protected  boolean isEmpty(CharSequence str)
           
 boolean templateExistsInRepo(String templateName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GUVNOR_PROTOCOL_KEY

public static final String GUVNOR_PROTOCOL_KEY
See Also:
Constant Field Values

GUVNOR_HOST_KEY

public static final String GUVNOR_HOST_KEY
See Also:
Constant Field Values

GUVNOR_USR_KEY

public static final String GUVNOR_USR_KEY
See Also:
Constant Field Values

GUVNOR_PWD_KEY

public static final String GUVNOR_PWD_KEY
See Also:
Constant Field Values

GUVNOR_PACKAGES_KEY

public static final String GUVNOR_PACKAGES_KEY
See Also:
Constant Field Values

GUVNOR_SUBDOMAIN_KEY

public static final String GUVNOR_SUBDOMAIN_KEY
See Also:
Constant Field Values

GUVNOR_CONNECTTIMEOUT_KEY

public static final String GUVNOR_CONNECTTIMEOUT_KEY
See Also:
Constant Field Values

GUVNOR_READTIMEOUT_KEY

public static final String GUVNOR_READTIMEOUT_KEY
See Also:
Constant Field Values

GUVNOR_SNAPSHOT_NAME

public static final String GUVNOR_SNAPSHOT_NAME
See Also:
Constant Field Values

EXT_BPMN

public static final String EXT_BPMN
See Also:
Constant Field Values

EXT_BPMN2

public static final String EXT_BPMN2
See Also:
Constant Field Values
Constructor Detail

GuvnorConnectionUtils

public GuvnorConnectionUtils()
Method Detail

getProcessImageURLFromGuvnor

public String getProcessImageURLFromGuvnor(String processId)

getFormTemplateURLFromGuvnor

public String getFormTemplateURLFromGuvnor(String templateName)

getFormTemplateURLFromGuvnor

public String getFormTemplateURLFromGuvnor(String templateName,
                                           String format)

getFormTemplateFromGuvnor

public InputStream getFormTemplateFromGuvnor(String templateName)

getProcessImageFromGuvnor

public byte[] getProcessImageFromGuvnor(String processId)

getAllProcessesInPackage

public List<String> getAllProcessesInPackage(String pkgName)

getPackageNames

public List<String> getPackageNames()

getBuiltPackageNames

public List<String> getBuiltPackageNames()

canBuildPackage

public boolean canBuildPackage(String packageName)

createChangeSet

public StringReader createChangeSet()

createChangeSet

public StringReader createChangeSet(List<String> packageNames)

getGuvnorProtocol

public String getGuvnorProtocol()

getGuvnorHost

public String getGuvnorHost()

getGuvnorSubdomain

public String getGuvnorSubdomain()

getGuvnorUsr

public String getGuvnorUsr()

getGuvnorPwd

public String getGuvnorPwd()

getGuvnorPackages

public String getGuvnorPackages()

getGuvnorConnectTimeout

public String getGuvnorConnectTimeout()

getGuvnorReadTimeout

public String getGuvnorReadTimeout()

getGuvnorSnapshotName

public String getGuvnorSnapshotName()

getGuvnorProperties

protected Properties getGuvnorProperties()

templateExistsInRepo

public boolean templateExistsInRepo(String templateName)
                             throws Exception
Throws:
Exception

applyAuth

protected void applyAuth(HttpURLConnection connection)

isEmpty

protected boolean isEmpty(CharSequence str)

guvnorExists

public boolean guvnorExists()


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