Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/13/12 17:28:04 (12 years ago)
Author:
ascheibe
Message:

#1648

  • added a ws method for resetting a password
  • added user role checking for the service
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/ServiceClients/AccessServiceClient.cs

    r7611 r7612  
    1111namespace HeuristicLab.Clients.Access {
    1212
    13 
    14   [System.Diagnostics.DebuggerStepThroughAttribute()]
    15   [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    16   [System.Runtime.Serialization.DataContractAttribute(Name = "UserGroupBase", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    17       "")]
    18   [System.SerializableAttribute()]
    19   [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.UserGroup))]
    20   [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.User))]
    21   [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.LightweightUser))]
    22   public partial class UserGroupBase : HeuristicLab.Clients.Access.AccessItem {
    23 
    24     [System.Runtime.Serialization.OptionalFieldAttribute()]
    25     private System.Guid IdField;
    26 
    27     [System.Runtime.Serialization.DataMemberAttribute()]
    28     public System.Guid Id {
    29       get {
    30         return this.IdField;
    31       }
    32       set {
    33         if ((this.IdField.Equals(value) != true)) {
    34           this.IdField = value;
    35           this.RaisePropertyChanged("Id");
    36         }
    37       }
    38     }
    39   }
    4013
    4114  [System.Diagnostics.DebuggerStepThroughAttribute()]
     
    7346
    7447    public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
     48
     49
    7550  }
    7651
     
    680655          this.TimestampField = value;
    681656          this.RaisePropertyChanged("Timestamp");
     657        }
     658      }
     659    }
     660  }
     661
     662  [System.Diagnostics.DebuggerStepThroughAttribute()]
     663  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     664  [System.Runtime.Serialization.DataContractAttribute(Name = "UserGroupBase", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
     665      "")]
     666  [System.SerializableAttribute()]
     667  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.UserGroup))]
     668  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.User))]
     669  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.LightweightUser))]
     670  public partial class UserGroupBase : HeuristicLab.Clients.Access.AccessItem {
     671
     672    [System.Runtime.Serialization.OptionalFieldAttribute()]
     673    private System.Guid IdField;
     674
     675    [System.Runtime.Serialization.DataMemberAttribute()]
     676    public System.Guid Id {
     677      get {
     678        return this.IdField;
     679      }
     680      set {
     681        if ((this.IdField.Equals(value) != true)) {
     682          this.IdField = value;
     683          this.RaisePropertyChanged("Id");
    682684        }
    683685      }
     
    10591061  public interface IAccessService {
    10601062
     1063    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/RemoveUserGroupBaseFromGroup", ReplyAction = "http://tempuri.org/IAccessService/RemoveUserGroupBaseFromGroupResponse")]
     1064    void RemoveUserGroupBaseFromGroup(HeuristicLab.Clients.Access.UserGroupBase resource, HeuristicLab.Clients.Access.UserGroup group);
     1065
    10611066    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/GetUsersAndGroups", ReplyAction = "http://tempuri.org/IAccessService/GetUsersAndGroupsResponse")]
    10621067    System.Collections.Generic.List<HeuristicLab.Clients.Access.UserGroupBase> GetUsersAndGroups();
     
    12001205    void RemoveUserFromRole(HeuristicLab.Clients.Access.Role role, HeuristicLab.Clients.Access.User user);
    12011206
     1207    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/ChangePassword", ReplyAction = "http://tempuri.org/IAccessService/ChangePasswordResponse")]
     1208    bool ChangePassword(System.Guid userId, string oldPassword, string newPassword);
     1209
    12021210    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/ResetPassword", ReplyAction = "http://tempuri.org/IAccessService/ResetPasswordResponse")]
    1203     bool ResetPassword(System.Guid userId, string oldPassword, string newPassword);
     1211    string ResetPassword(System.Guid userId);
    12041212
    12051213    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/GetAllUserGroups", ReplyAction = "http://tempuri.org/IAccessService/GetAllUserGroupsResponse")]
     
    12231231    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/AddUserGroupBaseToGroup", ReplyAction = "http://tempuri.org/IAccessService/AddUserGroupBaseToGroupResponse")]
    12241232    void AddUserGroupBaseToGroup(HeuristicLab.Clients.Access.UserGroupBase resource, HeuristicLab.Clients.Access.UserGroup group);
    1225 
    1226     [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/RemoveUserGroupBaseFromGroup", ReplyAction = "http://tempuri.org/IAccessService/RemoveUserGroupBaseFromGroupResponse")]
    1227     void RemoveUserGroupBaseFromGroup(HeuristicLab.Clients.Access.UserGroupBase resource, HeuristicLab.Clients.Access.UserGroup group);
    12281233  }
    12291234
     
    12551260    }
    12561261
     1262    public void RemoveUserGroupBaseFromGroup(HeuristicLab.Clients.Access.UserGroupBase resource, HeuristicLab.Clients.Access.UserGroup group) {
     1263      base.Channel.RemoveUserGroupBaseFromGroup(resource, group);
     1264    }
     1265
    12571266    public System.Collections.Generic.List<HeuristicLab.Clients.Access.UserGroupBase> GetUsersAndGroups() {
    12581267      return base.Channel.GetUsersAndGroups();
     
    14431452    }
    14441453
    1445     public bool ResetPassword(System.Guid userId, string oldPassword, string newPassword) {
    1446       return base.Channel.ResetPassword(userId, oldPassword, newPassword);
     1454    public bool ChangePassword(System.Guid userId, string oldPassword, string newPassword) {
     1455      return base.Channel.ChangePassword(userId, oldPassword, newPassword);
     1456    }
     1457
     1458    public string ResetPassword(System.Guid userId) {
     1459      return base.Channel.ResetPassword(userId);
    14471460    }
    14481461
     
    14741487      base.Channel.AddUserGroupBaseToGroup(resource, group);
    14751488    }
    1476 
    1477     public void RemoveUserGroupBaseFromGroup(HeuristicLab.Clients.Access.UserGroupBase resource, HeuristicLab.Clients.Access.UserGroup group) {
    1478       base.Channel.RemoveUserGroupBaseFromGroup(resource, group);
    1479     }
    14801489  }
    14811490}
Note: See TracChangeset for help on using the changeset viewer.