Package org.nuclos.api.provider
Class WebclientProvider
java.lang.Object
org.nuclos.api.provider.WebclientProvider
WebclientProvider provides support for handling the Nuclos webclient-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <PK,T extends BusinessObject<PK>>
URLbuildBusinessObjectUrl(Class<T> boClass) static <PK,T extends BusinessObject<PK>>
URLbuildBusinessObjectUrl(Class<T> boClass, PK boId) static <T extends BusinessObject>
URLbuildBusinessObjectUrl(T bo) static URLbuildUrl(WebclientUrl webclientUrl) voidsetWebclientService(WebclientService service)
-
Constructor Details
-
WebclientProvider
WebclientProvider()
-
-
Method Details
-
setWebclientService
-
buildBusinessObjectUrl
- Parameters:
bo-- Returns:
- a URL for the browser. Navigates the Nuclos webclient directly to the desired location.
- Throws:
BusinessException- if the Webclient URL could not be determined. In this case, set an absolut value in the system parameter WEBCLIENT_BASEURL.
-
buildBusinessObjectUrl
public static <PK,T extends BusinessObject<PK>> URL buildBusinessObjectUrl(Class<T> boClass) throws BusinessException - Parameters:
boClass-- Returns:
- a URL for the browser. Navigates the Nuclos webclient directly to the desired location.
- Throws:
BusinessException- if the Webclient URL could not be determined. In this case, set an absolut value in the system parameter WEBCLIENT_BASEURL.
-
buildBusinessObjectUrl
public static <PK,T extends BusinessObject<PK>> URL buildBusinessObjectUrl(Class<T> boClass, PK boId) throws BusinessException - Parameters:
boClass-boId-- Returns:
- a URL for the browser. Navigates the Nuclos webclient directly to the desired location.
- Throws:
BusinessException- if the Webclient URL could not be determined. In this case, set an absolut value in the system parameter WEBCLIENT_BASEURL.
-
buildUrl
- Parameters:
webclientUrl-- Returns:
- a URL for the browser. Navigates the Nuclos webclient directly to the desired location.
- Throws:
BusinessException- if the Webclient URL could not be determined. In this case, set an absolut value in the system parameter WEBCLIENT_BASEURL.
-