001: /*
002: * $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 $
003: * $Revision: 1.1.1.1 $
004: * $Date: 2004/03/25 12:08:41 $
005: *
006: * =============================================================================
007: *
008: * Copyright (c) 2003, The MyPersonalizer Development Group
009: * (http://www.tic.udc.es/~fbellas/mypersonalizer/index.html) at
010: * University Of A Coruna
011: * All rights reserved.
012: *
013: * Redistribution and use in source and binary forms, with or without
014: * modification, are permitted provided that the following conditions are met:
015: *
016: * - Redistributions of source code must retain the above copyright notice,
017: * this list of conditions and the following disclaimer.
018: *
019: * - Redistributions in binary form must reproduce the above copyright notice,
020: * this list of conditions and the following disclaimer in the documentation
021: * and/or other materials provided with the distribution.
022: *
023: * - Neither the name of the University Of A Coruna nor the names of its
024: * contributors may be used to endorse or promote products derived from
025: * this software without specific prior written permission.
026: *
027: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
028: * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
029: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
030: * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
031: * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
032: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
033: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
034: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
035: * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
036: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
037: * POSSIBILITY OF SUCH DAMAGE.
038: *
039: */
040:
041: package es.udc.mypersonalizer.portal.conventions;
042:
043: /**
044: * Defines standard names for the attributes maintained in the session.
045: *
046: * @author Daniel Fernandez
047: * @since 1.0
048: */
049: public class SessionAttributeNames {
050:
051: /**
052: * Name of the session attribute which will store the user credentials.
053: * Set to <tt>userCredentials</tt>.
054: */
055: public static final String USER_CREDENTIALS_SESSION_NAME = "userCredentials";
056:
057: /**
058: * Name of the session attribute which will store the desktop layout.
059: * Set to <tt>desktopLayout</tt>.
060: */
061: public static final String DESKTOP_LAYOUT_SESSION_NAME = "desktopLayout";
062:
063: /**
064: * Prefix for the names of the attributes which will store workspace layout
065: * objects in the session. Set to <tt>workspaceLayout</tt>.
066: */
067: public static final String WORKSPACE_LAYOUT_SESSION_NAME_PREFIX = "workspaceLayout";
068:
069: /**
070: * Prefix for the names of the attributes which will store session buttons
071: * state objects. Set to <tt>sessionButtonsState</tt>.
072: */
073: public static final String SESSION_BUTTONS_STATE_SESSION_NAME_PREFIX = "sessionButtonsState";
074:
075: /**
076: * Name of the session attribute which will store the identifier of the
077: * current workspace.
078: */
079: public static final String CURRENT_WORKSPACE_LAYOUT_IDENTIFIER_SESSION_NAME = "currentWorkspaceLayoutIdentifier";
080:
081: /**
082: * Name of the session attribute which will store the names of
083: * the workspaces that are available for a user in his / her workspace,
084: * besides other relevant information such as workspace layout identifier or
085: * workspace type. Set to <tt>availableWorkspaces</tt>
086: */
087: public static final String AVAILABLE_WORKSPACES_SESSION_NAME = "availableWorkspaces";
088:
089: /**
090: * Name of the session attribute which will store the flag indicating if
091: * the user is authenticated or not.
092: */
093: public static final String USER_AUTHENTICATED_SESSION_NAME = "userAuthenticated";
094:
095: /**
096: * Name of the session attribute which stores a flag indicating if the
097: * user has workspaces in his / her desktop.
098: */
099: public static final String USER_HAS_WORKSPACES_SESSION_NAME = "userHasWorkspaces";
100:
101: /**
102: * Disallows creation of instances.
103: */
104: private SessionAttributeNames() {
105: }
106:
107: }
|