public MezzoObject(string Identifier, string Password, string ProvidedServerURL) { _sec.CredentialSoapHeaderValue = new CredentialSoapHeader(); //System.Console.WriteLine(_sec.Url); _sec.CredentialSoapHeaderValue.Login = Identifier; _sec.CredentialSoapHeaderValue.Password = Password; if (ProvidedServerURL[ProvidedServerURL.Length - 1].ToString() != "/") ProvidedServerURL = ProvidedServerURL + "/"; ServerBaseURL = ProvidedServerURL; _sec.Url = ServerBaseURL + "ws/security.asmx"; _logonReturn = _sec.Logon(); if (_logonReturn != null) { SetWSDefaults(_logonReturn.SecurityKey); UserCurrent = _sec.GetConnectedUser(); UserCurrentFullName = UserCurrent.FirstName + " " + UserCurrent.LastName; } }
public System.Data.DataSet WorkspaceSearchAsDataset(User user, string category, string text) { object[] results = this.Invoke("WorkspaceSearchAsDataset", new object[] { user, category, text}); return ((System.Data.DataSet)(results[0])); }
/// <remarks/> public void WorkspaceGetListToRecycleBinAsync(User user, string category, object userState) { if ((this.WorkspaceGetListToRecycleBinOperationCompleted == null)) { this.WorkspaceGetListToRecycleBinOperationCompleted = new System.Threading.SendOrPostCallback(this.OnWorkspaceGetListToRecycleBinOperationCompleted); } this.InvokeAsync("WorkspaceGetListToRecycleBin", new object[] { user, category}, this.WorkspaceGetListToRecycleBinOperationCompleted, userState); }
/// <remarks/> public void WorkspaceGetListToRecycleBinAsync(User user, string category) { this.WorkspaceGetListToRecycleBinAsync(user, category, null); }
public System.Data.DataSet WorkspaceGetListToRecycleBin(User user, string category) { object[] results = this.Invoke("WorkspaceGetListToRecycleBin", new object[] { user, category}); return ((System.Data.DataSet)(results[0])); }
/// <remarks/> public void WorkspaceGetListAsync(User user, object userState) { if ((this.WorkspaceGetListOperationCompleted == null)) { this.WorkspaceGetListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnWorkspaceGetListOperationCompleted); } this.InvokeAsync("WorkspaceGetList", new object[] { user}, this.WorkspaceGetListOperationCompleted, userState); }
/// <remarks/> public System.IAsyncResult BeginWorkspaceGetList(User user, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("WorkspaceGetList", new object[] { user}, callback, asyncState); }
public string UserGetFullName(User myUser) { return myUser.FirstName + " " + myUser.LastName; }
public Workspace[] WorkspaceGetList(User user) { object[] results = this.Invoke("WorkspaceGetList", new object[] { user}); return ((Workspace[])(results[0])); }
/// <remarks/> public void UserSaveAsync(User user, object userState) { if ((this.UserSaveOperationCompleted == null)) { this.UserSaveOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUserSaveOperationCompleted); } this.InvokeAsync("UserSave", new object[] { user}, this.UserSaveOperationCompleted, userState); }
/// <remarks/> public void UserSaveAsync(User user) { this.UserSaveAsync(user, null); }
public User UserSave(User user) { object[] results = this.Invoke("UserSave", new object[] { user}); return ((User)(results[0])); }
/// <remarks/> public System.IAsyncResult BeginWorkspaceSearchAsDataset(User user, string category, string text, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("WorkspaceSearchAsDataset", new object[] { user, category, text}, callback, asyncState); }
/// <remarks/> public System.IAsyncResult BeginWorkspaceGetListToRecycleBin(User user, string category, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("WorkspaceGetListToRecycleBin", new object[] { user, category}, callback, asyncState); }
/// <remarks/> public void WorkspaceSearchAsDatasetAsync(User user, string category, string text) { this.WorkspaceSearchAsDatasetAsync(user, category, text, null); }
/// <remarks/> public void WorkspaceSearchAsDatasetAsync(User user, string category, string text, object userState) { if ((this.WorkspaceSearchAsDatasetOperationCompleted == null)) { this.WorkspaceSearchAsDatasetOperationCompleted = new System.Threading.SendOrPostCallback(this.OnWorkspaceSearchAsDatasetOperationCompleted); } this.InvokeAsync("WorkspaceSearchAsDataset", new object[] { user, category, text}, this.WorkspaceSearchAsDatasetOperationCompleted, userState); }
/// <remarks/> public void WorkspaceGetListAsDatasetAsync(User user, string category) { this.WorkspaceGetListAsDatasetAsync(user, category, null); }
/// <remarks/> public void WorkspaceGetListAsync(User user) { this.WorkspaceGetListAsync(user, null); }
/// <remarks/> public System.IAsyncResult BeginUserSave(User user, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("UserSave", new object[] { user}, callback, asyncState); }