Class WebclientProvider

java.lang.Object
org.nuclos.api.provider.WebclientProvider

public class WebclientProvider extends Object
WebclientProvider provides support for handling the Nuclos webclient
  • Constructor Details

    • WebclientProvider

      WebclientProvider()
  • Method Details

    • setWebclientService

      public void setWebclientService(WebclientService service)
    • buildBusinessObjectUrl

      public static <T extends BusinessObject> URL buildBusinessObjectUrl(T bo) throws BusinessException
      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

      public static URL buildUrl(WebclientUrl webclientUrl) throws BusinessException
      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.