jBPM Console NG - Dashboard API 6.0.3-SNAPSHOT

org.jbpm.dashboard.renderer.service
Class DashboardURLBuilder

java.lang.Object
  extended by org.jbpm.dashboard.renderer.service.DashboardURLBuilder

public class DashboardURLBuilder
extends Object

This class builds the URL to navigate to a dashbuilder application. Basically, adds the locale support, so the locale of the gwt application and the locale for the dashbuilder app will be the same.


Constructor Summary
DashboardURLBuilder()
           
 
Method Summary
static String getDashboardURL(String preffix, String suffix, com.google.gwt.i18n.client.LocaleInfo localeInfo)
          Returns the url for jBPM dashboard using the current locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DashboardURLBuilder

public DashboardURLBuilder()
Method Detail

getDashboardURL

public static String getDashboardURL(String preffix,
                                     String suffix,
                                     com.google.gwt.i18n.client.LocaleInfo localeInfo)

Returns the url for jBPM dashboard using the current locale.

As GWT does not emulate JRE String#format (https://code.google.com/p/google-web-toolkit/issues/detail?id=3945), the URL is splitted in:a preffix and a suffix.

Parameters:
preffix - The URL value before the language parameter
suffix - The URL value after the language parameter
localeInfo - The GWT locale instance for building the URL.
Returns:
The url for the jBPM dashboard.

jBPM Console NG - Dashboard API 6.0.3-SNAPSHOT

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