org.silverpeas.web.token
Class TokenSettingTemplate

java.lang.Object
  extended by org.silverpeas.web.token.TokenSettingTemplate

public class TokenSettingTemplate
extends Object

A template from which a Javascript script is generated for setting the synchronizer tokens in the context of a web page.

Author:
mmoquillon

Nested Class Summary
static class TokenSettingTemplate.Parameter
           
 
Field Summary
static String CREATION_MENU_CONTAINER_ID
          The name of the parameter that set the name of the creation menu item container id.
static String EXPIRATION_TIMESTAMP_PARAMETER
          The name of the parameter that set the expiration timestamp of the cookies in which is stored the token.
static String NAVIGATION_TOKEN_NAME_PARAMETER
          The name of the parameter that set the name of the navigation token in the HTTP requests.
static String NAVIGATION_TOKEN_VALUE_PARAMETER
          The name of the parameter that set the value of the navigation token in the HTTP requests.
static String SECURED_COOKIE_PARAMETER
          The name of the parameter that set the cookie in which is stored the token as secured.
static String SESSION_TOKEN_NAME_PARAMETER
          The name of the parameter that set the name of the session token in the HTTP requests.
static String SESSION_TOKEN_VALUE_PARAMETER
          The name of the parameter that set the value of the session token in the HTTP requests.
 
Constructor Summary
TokenSettingTemplate()
           
 
Method Summary
 String apply(List<TokenSettingTemplate.Parameter> parameters)
           
 String apply(TokenSettingTemplate.Parameter... parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATION_MENU_CONTAINER_ID

public static final String CREATION_MENU_CONTAINER_ID
The name of the parameter that set the name of the creation menu item container id.

See Also:
Constant Field Values

SESSION_TOKEN_NAME_PARAMETER

public static final String SESSION_TOKEN_NAME_PARAMETER
The name of the parameter that set the name of the session token in the HTTP requests.

See Also:
Constant Field Values

SESSION_TOKEN_VALUE_PARAMETER

public static final String SESSION_TOKEN_VALUE_PARAMETER
The name of the parameter that set the value of the session token in the HTTP requests.

See Also:
Constant Field Values

NAVIGATION_TOKEN_NAME_PARAMETER

public static final String NAVIGATION_TOKEN_NAME_PARAMETER
The name of the parameter that set the name of the navigation token in the HTTP requests.

See Also:
Constant Field Values

NAVIGATION_TOKEN_VALUE_PARAMETER

public static final String NAVIGATION_TOKEN_VALUE_PARAMETER
The name of the parameter that set the value of the navigation token in the HTTP requests.

See Also:
Constant Field Values

EXPIRATION_TIMESTAMP_PARAMETER

public static final String EXPIRATION_TIMESTAMP_PARAMETER
The name of the parameter that set the expiration timestamp of the cookies in which is stored the token.

See Also:
Constant Field Values

SECURED_COOKIE_PARAMETER

public static final String SECURED_COOKIE_PARAMETER
The name of the parameter that set the cookie in which is stored the token as secured.

See Also:
Constant Field Values
Constructor Detail

TokenSettingTemplate

public TokenSettingTemplate()
Method Detail

apply

public String apply(TokenSettingTemplate.Parameter... parameters)

apply

public String apply(List<TokenSettingTemplate.Parameter> parameters)


Copyright © 2016 Silverpeas. All Rights Reserved.