com.softwareag.centrasite.policy.api
Class URLGenerator

java.lang.Object
  extended by com.softwareag.centrasite.policy.api.URLGenerator

public final class URLGenerator
extends java.lang.Object

URL Generator


Constructor Summary
URLGenerator()
           
 
Method Summary
 java.net.URL getBUIApprovalFlowURL(java.lang.String queryManagerURL, com.centrasite.jaxr.infomodel.CentraSiteRegistryEntry approvalFlow)
           
 java.net.URL getBUIAssetDetailsURL(java.lang.String queryManagerURL, javax.xml.registry.infomodel.RegistryObject asset)
          Returns the Business UI Asset URL.
 java.net.URL getBUIAssetDetailsURL(java.lang.String queryManagerURL, java.lang.String assetID)
          Returns the Business UI Asset URL.
 java.net.URL getBUIBaseURL(java.lang.String queryManagerURL)
          Returns the Base(Tomcat) URL of Business UI.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLGenerator

public URLGenerator()
Method Detail

getBUIBaseURL

public java.net.URL getBUIBaseURL(java.lang.String queryManagerURL)
                           throws java.net.MalformedURLException
Returns the Base(Tomcat) URL of Business UI.
Eg: http://localhost:53305/

Parameters:
queryManagerURL - The JAXR Query Manager URL.
Returns:
The Business UI base URL.
Throws:
java.net.MalformedURLException

getBUIAssetDetailsURL

public java.net.URL getBUIAssetDetailsURL(java.lang.String queryManagerURL,
                                          javax.xml.registry.infomodel.RegistryObject asset)
                                   throws java.net.MalformedURLException,
                                          javax.xml.registry.JAXRException
Returns the Business UI Asset URL.
Eg: http://mcanki02:53307/BusinessUI/#assetdetail:uddi:8faf14d0-2395-11e0-8dee-9f5bfa31b3fc

Parameters:
queryManagerURL - The JAXR Query Manager URL.
asset - The asset RegistryObject of which the deep link URL of it's details is required.
Returns:
The deep link URL of asset details for the provided asset.
Throws:
java.net.MalformedURLException
javax.xml.registry.JAXRException

getBUIAssetDetailsURL

public java.net.URL getBUIAssetDetailsURL(java.lang.String queryManagerURL,
                                          java.lang.String assetID)
                                   throws java.net.MalformedURLException
Returns the Business UI Asset URL.
Eg: http://mcanki02:53307/BusinessUI/#assetdetail:uddi:8faf14d0-2395-11e0-8dee-9f5bfa31b3fc

Parameters:
queryManagerURL - The JAXR Query Manager URL.
assetID - The Key of the asset of which the deep link URL of it's details is required.
Returns:
The deep link URL of asset details for the provided asset.
Throws:
java.net.MalformedURLException

getBUIApprovalFlowURL

public java.net.URL getBUIApprovalFlowURL(java.lang.String queryManagerURL,
                                          com.centrasite.jaxr.infomodel.CentraSiteRegistryEntry approvalFlow)
                                   throws javax.xml.registry.JAXRException,
                                          java.net.MalformedURLException
Throws:
javax.xml.registry.JAXRException
java.net.MalformedURLException