Files
Brainstorm/Foundation Web Interfaces/src/com/foundation/web/interfaces/ISession.java
2014-05-30 10:31:51 -07:00

40 lines
1.5 KiB
Java

/*
* Copyright (c) 2008,2009 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.foundation.web.interfaces;
public interface ISession {
/**
* Gets the application specific session data.
* @return The data set by the application and retained by the session.
*/
public Object getApplicationData();
/**
* Gets the application specific secure session data.
* @return The secure data set by the application and retained by the session.
*/
public Object getApplicationSecureData();
/**
* Gets whether the user is currently logged in. This is intended for CLIENT state only, the server should maintain its own login state.
* @return The secure session's identifier used to identify the secure portion of the session when the client connects.
*/
public boolean getIsLoggedIn();
/**
* Gets the session id.
* @return The session's identifier used to identify the session when the client connects.
*/
public String getSessionId();
/**
* Gets the secure session id.
* @return The secure session's identifier used to identify the secure portion of the session when the client connects.
*/
public String getSecureSessionId();
/**
* Updates the repository with the latest session changes.
*/
public void updateRepository();
}//ISession//