C# Class TeamMentor.CoreLib.TM_REST

ファイルを表示 Open project: TeamMentor/Master Class Usage Examples

Public Properties

Property Type Description
originalWebHttpBehaviour WebHttpBehavior
serviceHostBase ServiceHostBase
serviceRoute ServiceRoute
tmWebHttpBehavior TMWebHttpBehavior
urlPath string
urlPath_Tests string
webServiceHostFactory TMWebServiceHostFactory

Public Methods

Method Description
Admin_Logs ( ) : string
Admin_Logs_Reset ( ) : string
Admin_Restart ( ) : string
Article ( string articleId ) : string
Article_Html ( string articleId ) : string
Folders ( string libraryId ) : List
Libraries ( ) : List
Library ( string nameOrId ) : Library_V3
Login ( string username, string password ) : System.Guid
LoginResponse ( string username, string password ) : Login_Result
Login_using_Credentials ( TM_Credentials credentials ) : System.Guid
Logout ( ) : System.Guid
RBAC_CurrentIdentity_IsAuthenticated ( ) : bool
RBAC_CurrentIdentity_Name ( ) : string
RBAC_CurrentPrincipal_Roles ( ) : List
RBAC_HasRole ( string role ) : bool
RBAC_IsAdmin ( ) : bool
Redirect_Login ( string referer ) : Stream
SendEmail ( EmailMessage_Post emailMessagePost ) : bool
SessionId ( ) : string
SetRouteTable ( ) : void
TBot_Json ( string what ) : Stream
TBot_List ( ) : Stream
TBot_Render ( string what ) : Stream
TBot_Run ( string what ) : Stream
TM_REST ( ) : System
User_LoggedIn ( ) : bool
Version ( ) : string
View ( string viewId ) : TeamMentor.CoreLib.View_V3
check_CSRF_Header ( ) : void

Private Methods

Method Description
Admin_ReloadCache ( ) : string
CreateCSVUsers ( string payload ) : string
DeleteUser ( string userId ) : bool
Get_TM_SecretData ( ) : TM_SecretData
Publish_Data ( ) : bool
Redirect_PasswordResetPage ( string userId ) : Stream
Reload_Cache ( ) : string
Reload_TMConfig ( ) : bool
Reload_UserData ( ) : bool
Set_TM_SecretData ( TM_SecretData tmSecretData ) : bool
VerifyUserData ( string payload ) : string
user ( string userNameOrId ) : TM_User
user_Create ( NewUser newUser ) : int
user_Delete ( string userId ) : bool
user_New ( TM_User user ) : int
user_Save ( TM_User user ) : bool
user_Update ( TM_User user ) : bool
user_Verify ( NewUser newUser ) : List
user_inDomain ( string domain, string user ) : TM_User
users ( ) : List
users ( string usersIds ) : List

Method Details

Admin_Logs() public method

public Admin_Logs ( ) : string
return string

Admin_Logs_Reset() public method

public Admin_Logs_Reset ( ) : string
return string

Admin_Restart() public method

public Admin_Restart ( ) : string
return string

Article() public method

public Article ( string articleId ) : string
articleId string
return string

Article_Html() public method

public Article_Html ( string articleId ) : string
articleId string
return string

Folders() public method

public Folders ( string libraryId ) : List
libraryId string
return List

Libraries() public method

public Libraries ( ) : List
return List

Library() public method

public Library ( string nameOrId ) : Library_V3
nameOrId string
return Library_V3

Login() public method

public Login ( string username, string password ) : System.Guid
username string
password string
return System.Guid

LoginResponse() public method

public LoginResponse ( string username, string password ) : Login_Result
username string
password string
return Login_Result

Login_using_Credentials() public method

public Login_using_Credentials ( TM_Credentials credentials ) : System.Guid
credentials TM_Credentials
return System.Guid

Logout() public method

public Logout ( ) : System.Guid
return System.Guid

RBAC_CurrentIdentity_IsAuthenticated() public method

public RBAC_CurrentIdentity_IsAuthenticated ( ) : bool
return bool

RBAC_CurrentIdentity_Name() public method

public RBAC_CurrentIdentity_Name ( ) : string
return string

RBAC_CurrentPrincipal_Roles() public method

public RBAC_CurrentPrincipal_Roles ( ) : List
return List

RBAC_HasRole() public method

public RBAC_HasRole ( string role ) : bool
role string
return bool

RBAC_IsAdmin() public method

public RBAC_IsAdmin ( ) : bool
return bool

Redirect_Login() public method

public Redirect_Login ( string referer ) : Stream
referer string
return Stream

SendEmail() public method

public SendEmail ( EmailMessage_Post emailMessagePost ) : bool
emailMessagePost EmailMessage_Post
return bool

SessionId() public method

public SessionId ( ) : string
return string

SetRouteTable() public static method

public static SetRouteTable ( ) : void
return void

TBot_Json() public method

public TBot_Json ( string what ) : Stream
what string
return Stream

TBot_List() public method

public TBot_List ( ) : Stream
return Stream

TBot_Render() public method

public TBot_Render ( string what ) : Stream
what string
return Stream

TBot_Run() public method

public TBot_Run ( string what ) : Stream
what string
return Stream

TM_REST() public method

public TM_REST ( ) : System
return System

User_LoggedIn() public method

public User_LoggedIn ( ) : bool
return bool

Version() public method

public Version ( ) : string
return string

View() public method

public View ( string viewId ) : TeamMentor.CoreLib.View_V3
viewId string
return TeamMentor.CoreLib.View_V3

check_CSRF_Header() public method

public check_CSRF_Header ( ) : void
return void

Property Details

originalWebHttpBehaviour public_oe static_oe property

public static WebHttpBehavior originalWebHttpBehaviour
return WebHttpBehavior

serviceHostBase public_oe static_oe property

public static ServiceHostBase serviceHostBase
return ServiceHostBase

serviceRoute public_oe static_oe property

public static ServiceRoute serviceRoute
return ServiceRoute

tmWebHttpBehavior public_oe static_oe property

public static TMWebHttpBehavior,TeamMentor.CoreLib tmWebHttpBehavior
return TMWebHttpBehavior

urlPath public_oe static_oe property

public static string urlPath
return string

urlPath_Tests public_oe static_oe property

public static string urlPath_Tests
return string

webServiceHostFactory public_oe static_oe property

public static TMWebServiceHostFactory,TeamMentor.CoreLib webServiceHostFactory
return TMWebServiceHostFactory