|
DCL 3.7.4
|
#include <Session.h>
Public Types | |
| enum | { NOUSER_USER_ID = (int) - 1 , SYSTEM_USER_ID = 0 , DEFAULT_USER_ID = 1 , DEFAULT_GROUP_ID = 2 , GUEST_USER_ID = 10 , NOUSER_ROLE_ID = -1 , SYSTEM_ROLE_ID = 0 , ADMIN_ROLE_ID = 2 , GUEST_ROLE_ID = 10 , DEFAULT_ROLE_ID = 9 } |
Public Member Functions | |
| Session (HttpServletContextEx &ctx, SQLQuery &q, int nServiceUserID) | |
| void | check () |
| bool | login (const String &strLoginID, const String &strPassword) |
| void | logout () |
| bool | getMemberRole (int nServiceUserID) |
| bool | isSysGuest () const |
| bool | isSysAdmin () const |
| bool | isMemberGuest () const |
| bool | isMemberAdmin () const |
| bool | isOwner (int nResourceUserID) const |
Static Public Member Functions | |
| static String | toString (uint64_t n) |
Public Attributes | |
| String | __strSessionID |
| int | __nUserID |
| String | __strUserName |
| int | __nRoleID |
| String | __strRoleName |
| int | __nSiteUserID |
| int | __nMemberRoleID |
| HttpServletContextEx & | __ctx |
| SQLQuery & | __query |
| int | __nServiceUserID |
Static Public Attributes | |
| static const wchar_t * | SESSION_COOKIE_NAME = L"dclhscsid" |
Protected Member Functions | |
| String | create (SQLQuery &q, int nUserID) |
| anonymous enum |
| Enumerator | |
|---|---|
| NOUSER_USER_ID | |
| SYSTEM_USER_ID | |
| DEFAULT_USER_ID | |
| DEFAULT_GROUP_ID | |
| GUEST_USER_ID | |
| NOUSER_ROLE_ID | |
| SYSTEM_ROLE_ID | |
| ADMIN_ROLE_ID | |
| GUEST_ROLE_ID | |
| DEFAULT_ROLE_ID | |
Definition at line 18 of file Session.h.
| Session::Session | ( | HttpServletContextEx & | ctx, |
| SQLQuery & | q, | ||
| int | nServiceUserID ) |
Definition at line 48 of file Session.cpp.
| void Session::check | ( | ) |
Definition at line 106 of file Session.cpp.
|
protected |
Definition at line 63 of file Session.cpp.
| bool Session::getMemberRole | ( | int | nServiceUserID | ) |
Definition at line 223 of file Session.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool Session::login | ( | const String & | strLoginID, |
| const String & | strPassword ) |
Definition at line 161 of file Session.cpp.
| void Session::logout | ( | ) |
Definition at line 209 of file Session.cpp.
|
static |
Definition at line 25 of file Session.cpp.
| HttpServletContextEx& Session::__ctx |
|
static |