added createSession and getSessionInfo

This commit is contained in:
Peter 'Pita' Martischka 2011-08-09 16:45:49 +01:00
parent f01906d815
commit 4b48380a2f
4 changed files with 296 additions and 10 deletions

View file

@ -23,6 +23,7 @@ var padMessageHandler = require("../handler/PadMessageHandler");
var readOnlyManager = require("./ReadOnlyManager");
var groupManager = require("./GroupManager");
var authorManager = require("./AuthorManager");
var sessionManager = require("./SessionManager");
var async = require("async");
/**********************/
@ -118,10 +119,7 @@ Example returns:
{code: 1, message:"authorID doesn't exist", data: null}
{code: 1, message:"validUntil is in the past", data: null}
*/
exports.createSession = function(groupID, authorID, validUntil, callback)
{
}
exports.createSession = sessionManager.createSession;
/**
deleteSession(sessionID) deletes a session
@ -144,10 +142,7 @@ Example returns:
{code: 0, message:"ok", data: {authorID: 5, groupID: 7, validUntil: 1312201246}}
{code: 1, message:"sessionID does not exist", data: null}
*/
exports.getSessionInfo = function(sessionID, callback)
{
}
exports.getSessionInfo = sessionManager.getSessionInfo;
/**
listSessionsOfGroup(groupID) returns all sessions of a group