org.jbpm.dashboard.renderer.service
Class DashboardURLBuilder
java.lang.Object
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.
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 |
DashboardURLBuilder
public DashboardURLBuilder()
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 parametersuffix
- The URL value after the language parameterlocaleInfo
- The GWT locale instance for building the URL.
- Returns:
- The url for the jBPM dashboard.
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.