#region License Information /* HeuristicLab * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace HeuristicLab.Services.Authentication { using System.Runtime.Serialization; [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] [System.Runtime.Serialization.DataContractAttribute(Name = "AuthenticationItem", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Authentication.Data" + "Transfer")] [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication.Role))] [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication.Application))] [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Services.Authentication.User))] public partial class AuthenticationItem : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged { private System.Runtime.Serialization.ExtensionDataObject extensionDataField; private string DescriptionField; private System.Guid IdField; private string NameField; public System.Runtime.Serialization.ExtensionDataObject ExtensionData { get { return this.extensionDataField; } set { this.extensionDataField = value; } } [System.Runtime.Serialization.DataMemberAttribute()] public string Description { get { return this.DescriptionField; } set { if ((object.ReferenceEquals(this.DescriptionField, value) != true)) { this.DescriptionField = value; this.RaisePropertyChanged("Description"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public System.Guid Id { get { return this.IdField; } set { if ((this.IdField.Equals(value) != true)) { this.IdField = value; this.RaisePropertyChanged("Id"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public string Name { get { return this.NameField; } set { if ((object.ReferenceEquals(this.NameField, value) != true)) { this.NameField = value; this.RaisePropertyChanged("Name"); } } } public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] [System.Runtime.Serialization.DataContractAttribute(Name = "Role", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Authentication.Data" + "Transfer")] public partial class Role : HeuristicLab.Services.Authentication.AuthenticationItem { private System.Guid ApplicationIdField; [System.Runtime.Serialization.DataMemberAttribute()] public System.Guid ApplicationId { get { return this.ApplicationIdField; } set { if ((this.ApplicationIdField.Equals(value) != true)) { this.ApplicationIdField = value; this.RaisePropertyChanged("ApplicationId"); } } } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] [System.Runtime.Serialization.DataContractAttribute(Name = "Application", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Authentication.Data" + "Transfer")] public partial class Application : HeuristicLab.Services.Authentication.AuthenticationItem { } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] [System.Runtime.Serialization.DataContractAttribute(Name = "User", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Authentication.Data" + "Transfer")] public partial class User : HeuristicLab.Services.Authentication.AuthenticationItem { private System.Guid ApplicationIdField; private System.DateTime CreateDateField; private string EmailField; private bool IsApprovedField; private bool IsLookedOutField; private System.DateTime LastActivityDateField; private System.DateTime LastLockoutDateField; private System.DateTime LastLoginDateField; private System.DateTime LastPasswordChangeDateField; [System.Runtime.Serialization.DataMemberAttribute()] public System.Guid ApplicationId { get { return this.ApplicationIdField; } set { if ((this.ApplicationIdField.Equals(value) != true)) { this.ApplicationIdField = value; this.RaisePropertyChanged("ApplicationId"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public System.DateTime CreateDate { get { return this.CreateDateField; } set { if ((this.CreateDateField.Equals(value) != true)) { this.CreateDateField = value; this.RaisePropertyChanged("CreateDate"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public string Email { get { return this.EmailField; } set { if ((object.ReferenceEquals(this.EmailField, value) != true)) { this.EmailField = value; this.RaisePropertyChanged("Email"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public bool IsApproved { get { return this.IsApprovedField; } set { if ((this.IsApprovedField.Equals(value) != true)) { this.IsApprovedField = value; this.RaisePropertyChanged("IsApproved"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public bool IsLookedOut { get { return this.IsLookedOutField; } set { if ((this.IsLookedOutField.Equals(value) != true)) { this.IsLookedOutField = value; this.RaisePropertyChanged("IsLookedOut"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public System.DateTime LastActivityDate { get { return this.LastActivityDateField; } set { if ((this.LastActivityDateField.Equals(value) != true)) { this.LastActivityDateField = value; this.RaisePropertyChanged("LastActivityDate"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public System.DateTime LastLockoutDate { get { return this.LastLockoutDateField; } set { if ((this.LastLockoutDateField.Equals(value) != true)) { this.LastLockoutDateField = value; this.RaisePropertyChanged("LastLockoutDate"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public System.DateTime LastLoginDate { get { return this.LastLoginDateField; } set { if ((this.LastLoginDateField.Equals(value) != true)) { this.LastLoginDateField = value; this.RaisePropertyChanged("LastLoginDate"); } } } [System.Runtime.Serialization.DataMemberAttribute()] public System.DateTime LastPasswordChangeDate { get { return this.LastPasswordChangeDateField; } set { if ((this.LastPasswordChangeDateField.Equals(value) != true)) { this.LastPasswordChangeDateField = value; this.RaisePropertyChanged("LastPasswordChangeDate"); } } } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ServiceModel.ServiceContractAttribute(ConfigurationName = "HeuristicLab.Services.Authentication.IAuthenticationService")] public interface IAuthenticationService { [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/GetUser", ReplyAction = "http://tempuri.org/IAuthenticationService/GetUserResponse")] HeuristicLab.Services.Authentication.User GetUser(System.Guid id); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/GetUsers", ReplyAction = "http://tempuri.org/IAuthenticationService/GetUsersResponse")] HeuristicLab.Services.Authentication.User[] GetUsers(); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/GetUsersForApplication", ReplyAction = "http://tempuri.org/IAuthenticationService/GetUsersForApplicationResponse")] HeuristicLab.Services.Authentication.User[] GetUsersForApplication(System.Guid applicationId); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/AddUser", ReplyAction = "http://tempuri.org/IAuthenticationService/AddUserResponse")] System.Guid AddUser(HeuristicLab.Services.Authentication.User user); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/DeleteUser", ReplyAction = "http://tempuri.org/IAuthenticationService/DeleteUserResponse")] void DeleteUser(System.Guid id); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/UpdateUser", ReplyAction = "http://tempuri.org/IAuthenticationService/UpdateUserResponse")] void UpdateUser(HeuristicLab.Services.Authentication.User user); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/AddUserToRole", ReplyAction = "http://tempuri.org/IAuthenticationService/AddUserToRoleResponse")] void AddUserToRole(System.Guid roleId, System.Guid userId); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/GetUsersInRole", ReplyAction = "http://tempuri.org/IAuthenticationService/GetUsersInRoleResponse")] System.Guid[] GetUsersInRole(System.Guid roleId); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/RemoveUserFromRole", ReplyAction = "http://tempuri.org/IAuthenticationService/RemoveUserFromRoleResponse")] void RemoveUserFromRole(System.Guid roleId, System.Guid userId); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/IsUserInRole", ReplyAction = "http://tempuri.org/IAuthenticationService/IsUserInRoleResponse")] bool IsUserInRole(System.Guid userId, System.Guid roleId); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/ResetPassword", ReplyAction = "http://tempuri.org/IAuthenticationService/ResetPasswordResponse")] HeuristicLab.Services.Authentication.User ResetPassword(string applicationName, string userName, string password); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/GetRole", ReplyAction = "http://tempuri.org/IAuthenticationService/GetRoleResponse")] HeuristicLab.Services.Authentication.Role GetRole(System.Guid id); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/GetRoles", ReplyAction = "http://tempuri.org/IAuthenticationService/GetRolesResponse")] HeuristicLab.Services.Authentication.Role[] GetRoles(); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/GetRolesForApplication", ReplyAction = "http://tempuri.org/IAuthenticationService/GetRolesForApplicationResponse")] HeuristicLab.Services.Authentication.Role[] GetRolesForApplication(System.Guid applicationId); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/AddRole", ReplyAction = "http://tempuri.org/IAuthenticationService/AddRoleResponse")] System.Guid AddRole(HeuristicLab.Services.Authentication.Role role); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/UpdateRole", ReplyAction = "http://tempuri.org/IAuthenticationService/UpdateRoleResponse")] void UpdateRole(HeuristicLab.Services.Authentication.Role role); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/DeleteRole", ReplyAction = "http://tempuri.org/IAuthenticationService/DeleteRoleResponse")] void DeleteRole(System.Guid id); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/GetRolesForUser", ReplyAction = "http://tempuri.org/IAuthenticationService/GetRolesForUserResponse")] System.Guid[] GetRolesForUser(System.Guid userId); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/GetApplication", ReplyAction = "http://tempuri.org/IAuthenticationService/GetApplicationResponse")] HeuristicLab.Services.Authentication.Application GetApplication(System.Guid id); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/AddApplication", ReplyAction = "http://tempuri.org/IAuthenticationService/AddApplicationResponse")] System.Guid AddApplication(HeuristicLab.Services.Authentication.Application application); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/DeleteApplication", ReplyAction = "http://tempuri.org/IAuthenticationService/DeleteApplicationResponse")] void DeleteApplication(System.Guid id); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/GetApplications", ReplyAction = "http://tempuri.org/IAuthenticationService/GetApplicationsResponse")] HeuristicLab.Services.Authentication.Application[] GetApplications(); [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAuthenticationService/UpdateApplication", ReplyAction = "http://tempuri.org/IAuthenticationService/UpdateApplicationResponse")] void UpdateApplication(HeuristicLab.Services.Authentication.Application application); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] public interface IAuthenticationServiceChannel : HeuristicLab.Services.Authentication.IAuthenticationService, System.ServiceModel.IClientChannel { } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] public partial class AuthenticationServiceClient : System.ServiceModel.ClientBase, HeuristicLab.Services.Authentication.IAuthenticationService { public AuthenticationServiceClient() { } public AuthenticationServiceClient(string endpointConfigurationName) : base(endpointConfigurationName) { } public AuthenticationServiceClient(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } public AuthenticationServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } public AuthenticationServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } public HeuristicLab.Services.Authentication.User GetUser(System.Guid id) { return base.Channel.GetUser(id); } public HeuristicLab.Services.Authentication.User[] GetUsers() { return base.Channel.GetUsers(); } public HeuristicLab.Services.Authentication.User[] GetUsersForApplication(System.Guid applicationId) { return base.Channel.GetUsersForApplication(applicationId); } public System.Guid AddUser(HeuristicLab.Services.Authentication.User user) { return base.Channel.AddUser(user); } public void DeleteUser(System.Guid id) { base.Channel.DeleteUser(id); } public void UpdateUser(HeuristicLab.Services.Authentication.User user) { base.Channel.UpdateUser(user); } public void AddUserToRole(System.Guid roleId, System.Guid userId) { base.Channel.AddUserToRole(roleId, userId); } public System.Guid[] GetUsersInRole(System.Guid roleId) { return base.Channel.GetUsersInRole(roleId); } public void RemoveUserFromRole(System.Guid roleId, System.Guid userId) { base.Channel.RemoveUserFromRole(roleId, userId); } public bool IsUserInRole(System.Guid userId, System.Guid roleId) { return base.Channel.IsUserInRole(userId, roleId); } public HeuristicLab.Services.Authentication.User ResetPassword(string applicationName, string userName, string password) { return base.Channel.ResetPassword(applicationName, userName, password); } public HeuristicLab.Services.Authentication.Role GetRole(System.Guid id) { return base.Channel.GetRole(id); } public HeuristicLab.Services.Authentication.Role[] GetRoles() { return base.Channel.GetRoles(); } public HeuristicLab.Services.Authentication.Role[] GetRolesForApplication(System.Guid applicationId) { return base.Channel.GetRolesForApplication(applicationId); } public System.Guid AddRole(HeuristicLab.Services.Authentication.Role role) { return base.Channel.AddRole(role); } public void UpdateRole(HeuristicLab.Services.Authentication.Role role) { base.Channel.UpdateRole(role); } public void DeleteRole(System.Guid id) { base.Channel.DeleteRole(id); } public System.Guid[] GetRolesForUser(System.Guid userId) { return base.Channel.GetRolesForUser(userId); } public HeuristicLab.Services.Authentication.Application GetApplication(System.Guid id) { return base.Channel.GetApplication(id); } public System.Guid AddApplication(HeuristicLab.Services.Authentication.Application application) { return base.Channel.AddApplication(application); } public void DeleteApplication(System.Guid id) { base.Channel.DeleteApplication(id); } public HeuristicLab.Services.Authentication.Application[] GetApplications() { return base.Channel.GetApplications(); } public void UpdateApplication(HeuristicLab.Services.Authentication.Application application) { base.Channel.UpdateApplication(application); } } }