jBPM Designer - Backend 6.0.0.CR1

org.jbpm.designer.web.server
Class ServletUtil

java.lang.Object
  extended by org.jbpm.designer.web.server.ServletUtil

public class ServletUtil
extends Object

Utility class for web servlets.


Field Summary
static String EXT_BPMN
           
static String EXT_BPMN2
           
 
Method Summary
static void applyAuth(IDiagramProfile profile, HttpURLConnection connection)
           
static boolean assetExistsInRepository(String packageName, String assetName, IDiagramProfile profile)
           
static boolean existsProcessImageInRepository(String assetURL, IDiagramProfile profile)
           
static Collection<Asset> findAssetsInRepository(String assetName, IDiagramProfile profile)
           
static String[] findPackageAndAssetInfo(String uuid, IDiagramProfile profile)
           
static List<String> getAllProcessesInPackage(String pkgName, IDiagramProfile profile)
           
static List<String> getFormWidgetList(IDiagramProfile profile, Repository repository, String uuid)
           
static InputStream getInputStreamForURL(String urlLocation, String requestMethod, IDiagramProfile profile)
           
static List<String> getPackageNamesFromRepository(IDiagramProfile profile)
           
static String getProcessImageContent(String packageName, String processid, IDiagramProfile profile)
           
static Asset getProcessSourceContent(String uuid, IDiagramProfile profile)
           
static String streamToString(InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

getFormWidgetList

public static List<String> getFormWidgetList(IDiagramProfile profile,
                                             Repository repository,
                                             String uuid)

findPackageAndAssetInfo

public static String[] findPackageAndAssetInfo(String uuid,
                                               IDiagramProfile profile)

getInputStreamForURL

public static InputStream getInputStreamForURL(String urlLocation,
                                               String requestMethod,
                                               IDiagramProfile profile)
                                        throws Exception
Throws:
Exception

applyAuth

public static void applyAuth(IDiagramProfile profile,
                             HttpURLConnection connection)

assetExistsInRepository

public static boolean assetExistsInRepository(String packageName,
                                              String assetName,
                                              IDiagramProfile profile)

existsProcessImageInRepository

public static boolean existsProcessImageInRepository(String assetURL,
                                                     IDiagramProfile profile)

getPackageNamesFromRepository

public static List<String> getPackageNamesFromRepository(IDiagramProfile profile)

getAllProcessesInPackage

public static List<String> getAllProcessesInPackage(String pkgName,
                                                    IDiagramProfile profile)

getProcessImageContent

public static String getProcessImageContent(String packageName,
                                            String processid,
                                            IDiagramProfile profile)

findAssetsInRepository

public static Collection<Asset> findAssetsInRepository(String assetName,
                                                       IDiagramProfile profile)

getProcessSourceContent

public static Asset getProcessSourceContent(String uuid,
                                            IDiagramProfile profile)

streamToString

public static String streamToString(InputStream is)

jBPM Designer - Backend 6.0.0.CR1

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