/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: SMSessionData.java,v 1.2 2008/06/25 05:43:21 qcheng Exp $
*
*/
/* - NEED NOT LOG - */
/**
*/
{
private long timeRemain;
private long maxSessionTime;
private long idleTime;
private long maxIdleTime;
/**
* Sets session id.
*
* @param value session id.
*/
}
/**
* Sets user id.
*
* @param value user id.
*/
}
/**
* Sets time left.
*
* @param value Time left.
*/
timeRemain = value;
}
/**
* Sets max session time left.
*
* @param value Session max time.
*/
}
/**
* Sets idle time.
*
* @param value Idle time.
*/
}
/**
* Set maximum idle time.
*
* @param value Maximum idle time.
*/
maxIdleTime = value;
}
/**
* Returns session ID.
*
* @return session ID.
*/
return id;
}
/**
* Returns user ID.
*
* @return user ID.
*/
return userId;
}
/**
* Returns time left.
*
* @return time left.
*/
public long getTimeRemain() {
return timeRemain;
}
/**
* Returns maximum session time.
*
* @return maximum session time.
*/
public long getMaxSessionTime() {
return maxSessionTime;
}
/**
* Returns idle time.
*
* @return idle time.
*/
public long getIdleTime() {
return idleTime;
}
/**
* Returns max idle time.
*
* @return max idle time.
*/
public long getMaxIdleTime() {
return maxIdleTime;
}
}