C# Class TeamMentor.CoreLib.TM_WebServices

Show file Open project: TeamMentor/Master Class Usage Examples

Public Properties

Property Type Description
guiObjectsCacheOk bool
last_Gui_Objects TM_GUI_Objects
tmAuthentication TM_Authentication
tmFileStorage TM_FileStorage
tmXmlDatabase TM_Xml_Database
userData TM_UserData

Public Methods

Method Description
GetAllGuidanceItems ( ) : List
GetGuidanceItemsInLibrary ( System.Guid libraryId ) : List
TM_WebServices ( ) : System.ComponentModel
TM_WebServices ( bool disable_Csrf_Check ) : System.ComponentModel
getDataTableFromGuidanceItems ( List rawGuidanceItems ) : JsDataTable
resetCache ( ) : void

Private Methods

Method Description
AddGuidanceItemsToView ( System.Guid viewId, List guidanceItemIds ) : bool
BatchUserCreation ( string batchUserData ) : List
ClearGUIObjects ( ) : bool
CreateArticle ( TeamMentor_Article article ) : System.Guid
CreateArticle_Simple ( System.Guid libraryId, string title, string dataType, string htmlCode ) : System.Guid
CreateFolder ( System.Guid libraryId, System.Guid parentFolderId, string newFolderName ) : Folder_V3
CreateGuidanceItem ( GuidanceItem_V3 guidanceItem ) : System.Guid
CreateLibrary ( Library library ) : Library_V3
CreateUser ( NewUser newUser ) : int
CreateUser_AuthToken ( int userId ) : System.Guid
CreateUser_Random ( ) : TM_User
CreateUser_Response ( NewUser newUser ) : Signup_Result
CreateUser_Validate ( NewUser newUser ) : List
CreateUsers ( List newUsers ) : List
CreateView ( System.Guid folderId, View view ) : TeamMentor.CoreLib.View_V3
Current_SessionID ( ) : System.Guid
Current_User ( ) : TM_User
DeleteFolder ( System.Guid libraryId, System.Guid folderId ) : bool
DeleteGuidanceItem ( System.Guid guidanceItemId ) : bool
DeleteGuidanceItems ( List guidanceItemIds ) : bool
DeleteLibrary ( System.Guid libraryId ) : bool
DeleteUser ( int userId ) : bool
DeleteUsers ( List userIds ) : List
GetAllFolders ( ) : List
GetAllLibraryIds ( ) : List
GetCurrentSessionLibrary ( ) : System.Guid
GetCurrentUserPasswordExpiryUrl ( ) : string
GetCurrentUserRoles ( ) : List
GetFolderStructure_Libraries ( ) : List
GetFolderStructure_Library ( System.Guid libraryId ) : Library_V3
GetFolders ( System.Guid libraryId ) : List
GetGUIObjects ( ) : TM_GUI_Objects
GetGuidanceItemById ( System.Guid guidanceItemId ) : TeamMentor_Article
GetGuidanceItemHtml ( System.Guid guidanceItemId ) : string
GetGuidanceItemsHtml ( List guidanceItemsIds ) : List
GetGuidanceItemsInFolder ( System.Guid folderId ) : List
GetGuidanceItemsInView ( System.Guid viewId ) : List
GetGuidanceItemsInViews ( List viewIds ) : List
GetGuidanceItemsMappings ( ) : List
GetLibraries ( ) : List
GetLibraryById ( System.Guid libraryId ) : Library
GetLibraryByName ( string libraryName ) : Library
GetLogs ( ) : string
GetStringIndexes ( ) : List
GetTime ( ) : string
GetUploadToken ( ) : System.Guid
GetUserGroupId ( int userId ) : int
GetUserGroupName ( int userId ) : string
GetUserRoles ( int userId ) : List
GetUser_AuthTokens ( int userId ) : List
GetUser_byID ( int userId ) : TM_User
GetUser_byName ( string name ) : TM_User
GetUsers ( ) : List
GetUsers_byID ( List userIds ) : List
GetViewById ( System.Guid viewId ) : TeamMentor.CoreLib.View_V3
GetViews ( ) : List
GetViewsInLibraryRoot ( System.Guid libraryId ) : List
Get_Firebase_ClientConfig ( ) : Firebase_ClientConfig
Get_Libraries_Zip_Folder ( ) : string
Get_Libraries_Zip_Folder_Files ( ) : List
IsGuidMappedInThisServer ( System.Guid guid ) : bool
JsDataTableWithAllGuidanceItemsInViews ( ) : JsDataTable
JsTreeWithFolders ( ) : JsTree
JsTreeWithFoldersAndGuidanceItems ( ) : JsTree
Login ( string username, string password ) : System.Guid
Login_Response ( string username, string password ) : Login_Result
Login_Using_AuthToken ( System.Guid authToken ) : System.Guid
Logout ( ) : System.Guid
MarkdownTransform ( string markdownText ) : string
MoveViewToFolder ( System.Guid viewId, System.Guid targetFolderId, System.Guid targetLibraryId ) : bool
NewPasswordResetToken ( string email ) : System.Guid
PasswordReset ( string userName, System.Guid token, string newPassword ) : bool
Ping ( string message ) : string
RBAC_CurrentIdentity_IsAuthenticated ( ) : bool
RBAC_CurrentIdentity_Name ( ) : string
RBAC_CurrentPrincipal_Roles ( ) : List
RBAC_Demand_Admin ( ) : bool
RBAC_Demand_EditArticles ( ) : bool
RBAC_Demand_ManageUsers ( ) : bool
RBAC_Demand_None ( ) : bool
RBAC_Demand_ReadArticles ( ) : bool
RBAC_Demand_ReadArticlesTitles ( ) : bool
RBAC_Demand_ViewLibrary ( ) : bool
RBAC_HasRole ( string role ) : bool
RBAC_IsAdmin ( ) : bool
REPL_ExecuteSnippet ( string snippet ) : string
RemoveGuidanceItemsFromView ( System.Guid viewId, List guidanceItemIds ) : bool
RemoveViewFromFolder ( System.Guid libraryId, System.Guid viewId ) : bool
RenameFolder ( System.Guid libraryId, System.Guid folderId, string newFolderName ) : bool
RenameLibrary ( System.Guid libraryId, string newName ) : bool
ResetLogs ( ) : string
SendEmail ( EmailMessage_Post emailMessagePost ) : bool
SendPasswordReminder ( string email ) : bool
SendPasswordReminder_Response ( string email ) : ResetPassword_Result
SetArticleContent ( System.Guid articleId, string dataType, string content ) : bool
SetArticleHtml ( System.Guid articleId, string htmlContent ) : bool
SetCurrentUserPassword ( string currentPassword, string newPassword ) : bool
SetCurrentUserPassword_Response ( string currentPassword, string newPassword ) : ChangePassword_Result
SetTMConfigFile ( TMConfig tmConfig ) : bool
SetTMServerFile ( TM_Server tmServer ) : bool
SetUserGroupId ( int userId, int roleId ) : bool
SetUserPassword ( int userId, string password ) : bool
Set_Libraries_Zip_Folder ( string folder ) : string
TMConfigFile ( ) : TMConfig
TMConfigFileLocation ( ) : string
TMServerFile ( ) : TM_Server
TMServerFileLocation ( ) : string
UpdateGuidanceItem ( TeamMentor_Article guidanceItem ) : bool
UpdateLibrary ( Library library ) : bool
UpdateTmUser ( TM_User user ) : bool
UpdateUser ( int userId, string userName, string firstname, string lastname, string title, string company, string email, string country, string state, DateTime accountExpiration, bool passwordExpired, bool userEnabled, bool accountNeverExpires, int groupId ) : bool
UpdateView ( View view ) : bool
Upload_File_To_Library ( Guid libraryId, string filename, byte contents ) : bool
VirtualArticle_Add_Mapping_ExternalArticle ( Guid id, string tmServer, Guid externalId ) : VirtualArticleAction
VirtualArticle_Add_Mapping_ExternalService ( Guid id, string service, string data ) : VirtualArticleAction
VirtualArticle_Add_Mapping_Redirect ( Guid id, string redirectUri ) : VirtualArticleAction
VirtualArticle_Add_Mapping_VirtualId ( Guid id, Guid virtualId ) : VirtualArticleAction
VirtualArticle_CreateArticle_from_ExternalServiceData ( string service, string serviceData ) : TeamMentor_Article
VirtualArticle_GetCurrentMappings ( ) : List
VirtualArticle_Get_GuidRedirect ( Guid id ) : string
VirtualArticle_Remove_Mapping ( Guid id ) : bool
XmlDatabase_GetDatabasePath ( ) : string
XmlDatabase_GetGuidanceItemPath ( Guid guidanceItemId ) : string
XmlDatabase_GetGuidanceItemXml ( Guid guidanceItemId ) : string
XmlDatabase_GetLibraryPath ( ) : string
XmlDatabase_GetUserDataPath ( ) : string
XmlDatabase_GuidanceItems_SearchTitleAndHtml ( List guidanceItemsIds, string searchText ) : List
XmlDatabase_ImportLibrary_fromZipFile ( string pathToZipFile, string unzipPassword ) : bool
XmlDatabase_IsUsingFileStorage ( ) : bool
XmlDatabase_ReloadData ( ) : string
getGuidForMapping ( string mapping ) : Guid

Method Details

GetAllGuidanceItems() public method

public GetAllGuidanceItems ( ) : List
return List

GetGuidanceItemsInLibrary() public method

public GetGuidanceItemsInLibrary ( System.Guid libraryId ) : List
libraryId System.Guid
return List

TM_WebServices() public method

public TM_WebServices ( ) : System.ComponentModel
return System.ComponentModel

TM_WebServices() public method

public TM_WebServices ( bool disable_Csrf_Check ) : System.ComponentModel
disable_Csrf_Check bool
return System.ComponentModel

getDataTableFromGuidanceItems() public method

public getDataTableFromGuidanceItems ( List rawGuidanceItems ) : JsDataTable
rawGuidanceItems List
return JsDataTable

resetCache() public method

public resetCache ( ) : void
return void

Property Details

guiObjectsCacheOk public static property

public static bool guiObjectsCacheOk
return bool

last_Gui_Objects public static property

public static TM_GUI_Objects last_Gui_Objects
return TM_GUI_Objects

tmAuthentication public property

public TM_Authentication tmAuthentication
return TM_Authentication

tmFileStorage public property

public TM_FileStorage tmFileStorage
return TM_FileStorage

tmXmlDatabase public property

public TM_Xml_Database tmXmlDatabase
return TM_Xml_Database

userData public property

public TM_UserData userData
return TM_UserData