public class UserContextHandler extends AbstractResourceHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String | FORMAT_GROUP_NAME
Deprecated.
Replaced by UserContextHandler.
|
static java.lang.String | RESOURCE_NAME
The Constant RESOURCE_NAME.
|
Constructor and Description |
---|
UserContextHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response | getContextData(java.lang.String storeId, java.lang.String responseFormat)
This method returns the context data for a user from the tokens and cookies sent with the request.
|
java.util.Map | getContextDataMap(java.lang.String storeId, java.lang.Long userId)
Gets the context data from the tokens and cookies for this request.
|
java.lang.String | getExternalResourceName()
Get the resource name to show externally.
|
java.lang.String | getFormattingGroupName()
Returns the formatting group name for resolving the struts action of the formatting JSP.
|
javax.ws.rs.core.Response | getPersonalizationID(java.lang.String storeId, java.lang.String responseFormat)
This method returns personalization id.
|
protected java.lang.String | getPreviewToken()
Gets the preview token from the business context
|
java.lang.String | getResourceName()
This method returns the name of the resource used primarily to determine the representation of the resource.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String RESOURCE_NAME
public static final java.lang.String FORMAT_GROUP_NAME
public java.lang.String getResourceName()
public java.lang.String getFormattingGroupName()
public javax.ws.rs.core.Response getPersonalizationID(java.lang.String storeId, java.lang.String responseFormat)
public javax.ws.rs.core.Response getContextData(java.lang.String storeId, java.lang.String responseFormat)
protected java.lang.String getPreviewToken()
public java.util.Map getContextDataMap(java.lang.String storeId, java.lang.Long userId) throws QueryServiceApplicationException, java.sql.SQLException, java.lang.NumberFormatException, BusinessContextServiceException, java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
public java.lang.String getExternalResourceName()