public class

BatchedJSONi18NBuilderFactory.BatchedJSONI18nBuilder

extends Object
java.lang.Object
   ↳ com.atlassian.applinks.ui.BatchedJSONi18NBuilderFactory.BatchedJSONI18nBuilder

Summary

Public Constructors
BatchedJSONi18NBuilderFactory.BatchedJSONI18nBuilder()
Public Methods
String build()
BatchedJSONi18NBuilderFactory.BatchedJSONI18nBuilder with(Map<StringString> properties)
BatchedJSONi18NBuilderFactory.BatchedJSONI18nBuilder with(String key, String value)
Add a single key value pair
BatchedJSONi18NBuilderFactory.BatchedJSONI18nBuilder withPluggableApplinksModules()
Add i18n properties for all enabled ApplicationType, EntityType and AuthenticationProviders
BatchedJSONi18NBuilderFactory.BatchedJSONI18nBuilder withProperties(String prefix)
NB: This method should be called from a servlet or rest resource, because it attempt to look at the request and to detect the request locale.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BatchedJSONi18NBuilderFactory.BatchedJSONI18nBuilder ()

Public Methods

public String build ()

Returns
  • a JSON object that contains all i18n keys and values added by the builder methods above.

public BatchedJSONi18NBuilderFactory.BatchedJSONI18nBuilder with (Map<StringString> properties)

Parameters
properties a Map of properties to add
Returns
  • the builder

public BatchedJSONi18NBuilderFactory.BatchedJSONI18nBuilder with (String key, String value)

Add a single key value pair

Parameters
key a String key
value a String value
Returns
  • the builder

public BatchedJSONi18NBuilderFactory.BatchedJSONI18nBuilder withPluggableApplinksModules ()

Add i18n properties for all enabled ApplicationType, EntityType and AuthenticationProviders

Returns
  • the builder

public BatchedJSONi18NBuilderFactory.BatchedJSONI18nBuilder withProperties (String prefix)

NB: This method should be called from a servlet or rest resource, because it attempt to look at the request and to detect the request locale.

Parameters
prefix the prefix for the i18n keys, used to fetch a subset of all i18n keys of the application
Returns
  • the builder