org.wso2.carbon.identity.thrift.authentication.dao
Interface ThriftSessionDAO

All Known Implementing Classes:
DBThriftSessionDAO, InMemoryThriftSessionDAO

public interface ThriftSessionDAO

Interface to manipulate thrift session info in database.


Method Summary
 void addSession(org.wso2.carbon.utils.ThriftSession session)
           
 List<org.wso2.carbon.utils.ThriftSession> getAllSessions()
           
 ThriftSessionDAO getInstance()
           
 org.wso2.carbon.utils.ThriftSession getSession(String sessionId)
           
 boolean isSessionExisting(String sessionId)
           
 void removeSession(String sessionId)
           
 void updateLastAccessTime(String sessionId, long lastAccessTime)
           
 

Method Detail

getAllSessions

List<org.wso2.carbon.utils.ThriftSession> getAllSessions()
                                                         throws org.wso2.carbon.identity.base.IdentityException
Throws:
org.wso2.carbon.identity.base.IdentityException

isSessionExisting

boolean isSessionExisting(String sessionId)
                          throws org.wso2.carbon.identity.base.IdentityException
Throws:
org.wso2.carbon.identity.base.IdentityException

addSession

void addSession(org.wso2.carbon.utils.ThriftSession session)
                throws org.wso2.carbon.identity.base.IdentityException
Throws:
org.wso2.carbon.identity.base.IdentityException

removeSession

void removeSession(String sessionId)
                   throws org.wso2.carbon.identity.base.IdentityException
Throws:
org.wso2.carbon.identity.base.IdentityException

updateLastAccessTime

void updateLastAccessTime(String sessionId,
                          long lastAccessTime)
                          throws org.wso2.carbon.identity.base.IdentityException
Throws:
org.wso2.carbon.identity.base.IdentityException

getSession

org.wso2.carbon.utils.ThriftSession getSession(String sessionId)
                                               throws org.wso2.carbon.identity.base.IdentityException
Throws:
org.wso2.carbon.identity.base.IdentityException

getInstance

ThriftSessionDAO getInstance()


Copyright © 2015 WSO2. All rights reserved.