com.github.dandelion.datatables.core.configuration
Class ConfigurationStore

java.lang.Object
  extended by com.github.dandelion.datatables.core.configuration.ConfigurationStore

public class ConfigurationStore
extends Object

Storage class for all configurations by Locale and group.

Since:
0.9.0
Author:
Thibault Duchateau

Constructor Summary
ConfigurationStore()
           
 
Method Summary
static void clear()
          FOR INTERNAL USE ONLY
static Map<Locale,Map<String,Map<ConfigToken<?>,Object>>> getConfigurationStore()
          FOR INTERNAL USE ONLY
static TableConfiguration getPrototype(javax.servlet.http.HttpServletRequest request, String groupName)
           Return the TableConfiguration prototype for the given locale (extracted from the request) and the given group.
static void resolveGroupsForLocale(Locale locale, javax.servlet.http.HttpServletRequest request)
          Resolves configurations groups for the given locale and stores them in the ConfigurationStore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationStore

public ConfigurationStore()
Method Detail

getPrototype

public static TableConfiguration getPrototype(javax.servlet.http.HttpServletRequest request,
                                              String groupName)

Return the TableConfiguration prototype for the given locale (extracted from the request) and the given group.

Parameters:
request - The request sent by the user.
groupName - The group name requested by the user to activate the corresponding configuration.
Returns:
the stored proptotype of a TableConfiguration.

resolveGroupsForLocale

public static void resolveGroupsForLocale(Locale locale,
                                          javax.servlet.http.HttpServletRequest request)
Resolves configurations groups for the given locale and stores them in the ConfigurationStore.

Parameters:
locale -

getConfigurationStore

public static Map<Locale,Map<String,Map<ConfigToken<?>,Object>>> getConfigurationStore()
FOR INTERNAL USE ONLY

Returns:

clear

public static void clear()
FOR INTERNAL USE ONLY



Copyright © 2013–2014 Dandelion Project. All rights reserved.