jBPM Console NG - Dashboard API 6.1.0.CR1

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, String localeName)
          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,
                                     String localeName)

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
localeName - The GWT locale name.
Returns:
The url for the jBPM dashboard.

jBPM Console NG - Dashboard API 6.1.0.CR1

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