/*
* $Header: /export/home/cvsroot/MyPersonalizerRepository/MyPersonalizer/Subsystems/Portal/Sources/es/udc/mypersonalizer/portal/conventions/SessionAttributeNames.java,v 1.1.1.1 2004/03/25 12:08:41 fbellas Exp $
* $Revision: 1.1.1.1 $
* $Date: 2004/03/25 12:08:41 $
*
* =============================================================================
*
* Copyright (c) 2003, The MyPersonalizer Development Group
* (http://www.tic.udc.es/~fbellas/mypersonalizer/index.html) at
* University Of A Coruna
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* - Neither the name of the University Of A Coruna nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
*/
package es.udc.mypersonalizer.portal.conventions;
/**
* Defines standard names for the attributes maintained in the session.
*
* @author Daniel Fernandez
* @since 1.0
*/
public class SessionAttributeNames {
/**
* Name of the session attribute which will store the user credentials.
* Set to <tt>userCredentials</tt>.
*/
public static final String USER_CREDENTIALS_SESSION_NAME =
"userCredentials";
/**
* Name of the session attribute which will store the desktop layout.
* Set to <tt>desktopLayout</tt>.
*/
public static final String DESKTOP_LAYOUT_SESSION_NAME = "desktopLayout";
/**
* Prefix for the names of the attributes which will store workspace layout
* objects in the session. Set to <tt>workspaceLayout</tt>.
*/
public static final String WORKSPACE_LAYOUT_SESSION_NAME_PREFIX =
"workspaceLayout";
/**
* Prefix for the names of the attributes which will store session buttons
* state objects. Set to <tt>sessionButtonsState</tt>.
*/
public static final String SESSION_BUTTONS_STATE_SESSION_NAME_PREFIX =
"sessionButtonsState";
/**
* Name of the session attribute which will store the identifier of the
* current workspace.
*/
public static final String
CURRENT_WORKSPACE_LAYOUT_IDENTIFIER_SESSION_NAME =
"currentWorkspaceLayoutIdentifier";
/**
* Name of the session attribute which will store the names of
* the workspaces that are available for a user in his / her workspace,
* besides other relevant information such as workspace layout identifier or
* workspace type. Set to <tt>availableWorkspaces</tt>
*/
public static final String AVAILABLE_WORKSPACES_SESSION_NAME =
"availableWorkspaces";
/**
* Name of the session attribute which will store the flag indicating if
* the user is authenticated or not.
*/
public static final String USER_AUTHENTICATED_SESSION_NAME =
"userAuthenticated";
/**
* Name of the session attribute which stores a flag indicating if the
* user has workspaces in his / her desktop.
*/
public static final String USER_HAS_WORKSPACES_SESSION_NAME =
"userHasWorkspaces";
/**
* Disallows creation of instances.
*/
private SessionAttributeNames() {}
}
|