org.sakaiproject.entitybroker.providers.model
Class EntitySession
java.lang.Object
org.sakaiproject.entitybroker.providers.model.EntitySession
- All Implemented Interfaces:
- org.sakaiproject.tool.api.Session
public class EntitySession
- extends Object
- implements org.sakaiproject.tool.api.Session
This models a Sakai Session and hopefully provides all the information one might need about a session,
attributes which are passed back are limited for security reasons
- Author:
- Aaron Zeckoski (azeckoski @ gmail.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attributes
public Map<String,Object> attributes
EntitySession
public EntitySession()
EntitySession
public EntitySession(org.sakaiproject.tool.api.Session session)
getCurrentTime
public long getCurrentTime()
setAttributes
public void setAttributes(Map<String,Object> attributes)
getAttributes
public Map<String,Object> getAttributes()
setAttribute
public void setAttribute(String key,
Object value)
- Specified by:
setAttribute in interface org.sakaiproject.tool.api.Session
getAttribute
public Object getAttribute(String key)
- Specified by:
getAttribute in interface org.sakaiproject.tool.api.Session
getId
public String getId()
- Specified by:
getId in interface org.sakaiproject.tool.api.Session
setId
public void setId(String id)
getCreationTime
public long getCreationTime()
- Specified by:
getCreationTime in interface org.sakaiproject.tool.api.Session
setCreationTime
public void setCreationTime(long creationTime)
getLastAccessedTime
public long getLastAccessedTime()
- Specified by:
getLastAccessedTime in interface org.sakaiproject.tool.api.Session
setLastAccessedTime
public void setLastAccessedTime(long lastAccessedTime)
getMaxInactiveInterval
public int getMaxInactiveInterval()
- Specified by:
getMaxInactiveInterval in interface org.sakaiproject.tool.api.Session
setMaxInactiveInterval
public void setMaxInactiveInterval(int maxInactiveInterval)
- Specified by:
setMaxInactiveInterval in interface org.sakaiproject.tool.api.Session
getUserEid
public String getUserEid()
- Specified by:
getUserEid in interface org.sakaiproject.tool.api.Session
setUserEid
public void setUserEid(String userEid)
- Specified by:
setUserEid in interface org.sakaiproject.tool.api.Session
getUserId
public String getUserId()
- Specified by:
getUserId in interface org.sakaiproject.tool.api.Session
setUserId
public void setUserId(String userId)
- Specified by:
setUserId in interface org.sakaiproject.tool.api.Session
isActive
public boolean isActive()
clear
public void clear()
- Specified by:
clear in interface org.sakaiproject.tool.api.Session
clearExcept
public void clearExcept(Collection arg0)
- Specified by:
clearExcept in interface org.sakaiproject.tool.api.Session
getAttributeNames
public Enumeration getAttributeNames()
- Specified by:
getAttributeNames in interface org.sakaiproject.tool.api.Session
getContextSession
public org.sakaiproject.tool.api.ContextSession getContextSession(String arg0)
- Specified by:
getContextSession in interface org.sakaiproject.tool.api.Session
getToolSession
public org.sakaiproject.tool.api.ToolSession getToolSession(String arg0)
- Specified by:
getToolSession in interface org.sakaiproject.tool.api.Session
invalidate
public void invalidate()
- Specified by:
invalidate in interface org.sakaiproject.tool.api.Session
removeAttribute
public void removeAttribute(String key)
- Specified by:
removeAttribute in interface org.sakaiproject.tool.api.Session
setActive
public void setActive()
- Specified by:
setActive in interface org.sakaiproject.tool.api.Session
Copyright © 2007-2012 Sakai Project. All Rights Reserved.