Changeset 7426


Ignore:
Timestamp:
01/27/12 21:27:49 (9 years ago)
Author:
ascheibe
Message:

#1648 worked on user and group selection views

Location:
branches/ClientUserManagement
Files:
5 added
9 edited

Legend:

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

    r7380 r7426  
    3737
    3838    #region Properties
    39     private ItemList<LightweightUser> users;
    40     public ItemList<LightweightUser> Users {
    41       get { return users; }
     39    private ItemList<UserGroupBase> usersAndGroups;
     40    public ItemList<UserGroupBase> UsersAndGroups {
     41      get { return usersAndGroups; }
    4242    }
    4343    #endregion
    4444
    45     private AccessClient() {
    46       users = new ItemList<LightweightUser>();
    47     }
     45    private AccessClient() { }
    4846
    4947    #region Refresh
    5048    public void Refresh() {
    51       users = new ItemList<LightweightUser>();
    52       users.AddRange(CallRunCreationService<ItemList<LightweightUser>>(s => new ItemList<LightweightUser>(s.GetAllLightweightUsers())));
     49      usersAndGroups = new ItemList<UserGroupBase>();
     50      usersAndGroups.AddRange(CallRunCreationService<ItemList<UserGroupBase>>(s => new ItemList<UserGroupBase>(s.GetAllLeightweightUsersAndGroups())));
    5351    }
    5452    public void RefreshAsync(Action<Exception> exceptionCallback) {
  • branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/HeuristicLab.Clients.Access-3.3.csproj

    r7368 r7426  
    102102    <Compile Include="ServiceClients\IAccessItem.cs" />
    103103    <Compile Include="ServiceClients\LightweightUser.cs" />
     104    <Compile Include="ServiceClients\UserGroup.cs" />
    104105    <Compile Include="ServiceClients\UserGroupBase.cs" />
     106    <Compile Include="Views\LightweightUserGroupSelectionDialog.cs">
     107      <SubType>Form</SubType>
     108    </Compile>
     109    <Compile Include="Views\LightweightUserGroupSelectionDialog.Designer.cs">
     110      <DependentUpon>LightweightUserGroupSelectionDialog.cs</DependentUpon>
     111    </Compile>
     112    <Compile Include="Views\LightweightUserGroupSelectionView.cs">
     113      <SubType>UserControl</SubType>
     114    </Compile>
     115    <Compile Include="Views\LightweightUserGroupSelectionView.Designer.cs">
     116      <DependentUpon>LightweightUserGroupSelectionView.cs</DependentUpon>
     117    </Compile>
    105118    <Compile Include="Views\LightweightUserView.cs">
    106119      <SubType>UserControl</SubType>
  • branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/ServiceClients/AccessServiceClient.cs

    r7368 r7426  
    1414  [System.Diagnostics.DebuggerStepThroughAttribute()]
    1515  [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  }
     40
     41  [System.Diagnostics.DebuggerStepThroughAttribute()]
     42  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    1643  [System.Runtime.Serialization.DataContractAttribute(Name = "AccessItem", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    1744      "")]
    1845  [System.SerializableAttribute()]
    19   [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.UserGroupBase))]
    20   [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.User))]
    21   [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.UserGroup))]
    22   [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.LightweightUser))]
     46  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.Role))]
    2347  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.ClientError))]
    2448  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.Resource))]
     
    3054  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.ClientGroup))]
    3155  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.ClientLog))]
    32   [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.Role))]
     56  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.UserGroupBase))]
     57  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.UserGroup))]
     58  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.User))]
     59  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.LightweightUser))]
    3360  public partial class AccessItem : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
    3461
     
    5077  [System.Diagnostics.DebuggerStepThroughAttribute()]
    5178  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    52   [System.Runtime.Serialization.DataContractAttribute(Name = "UserGroupBase", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    53       "")]
    54   [System.SerializableAttribute()]
    55   [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.User))]
    56   [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.UserGroup))]
    57   [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.LightweightUser))]
    58   public partial class UserGroupBase : HeuristicLab.Clients.Access.AccessItem {
     79  [System.Runtime.Serialization.DataContractAttribute(Name = "Role", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
     80      "")]
     81  [System.SerializableAttribute()]
     82  public partial class Role : HeuristicLab.Clients.Access.AccessItem {
     83
     84    [System.Runtime.Serialization.OptionalFieldAttribute()]
     85    private string NameField;
     86
     87    [System.Runtime.Serialization.DataMemberAttribute()]
     88    public string Name {
     89      get {
     90        return this.NameField;
     91      }
     92      set {
     93        if ((object.ReferenceEquals(this.NameField, value) != true)) {
     94          this.NameField = value;
     95          this.RaisePropertyChanged("Name");
     96        }
     97      }
     98    }
     99  }
     100
     101  [System.Diagnostics.DebuggerStepThroughAttribute()]
     102  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     103  [System.Runtime.Serialization.DataContractAttribute(Name = "ClientError", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
     104      "")]
     105  [System.SerializableAttribute()]
     106  public partial class ClientError : HeuristicLab.Clients.Access.AccessItem {
     107
     108    [System.Runtime.Serialization.OptionalFieldAttribute()]
     109    private System.Guid ClientIdField;
     110
     111    [System.Runtime.Serialization.OptionalFieldAttribute()]
     112    private string ConfigDumpField;
     113
     114    [System.Runtime.Serialization.OptionalFieldAttribute()]
     115    private string ExceptionField;
    59116
    60117    [System.Runtime.Serialization.OptionalFieldAttribute()]
    61118    private System.Guid IdField;
     119
     120    [System.Runtime.Serialization.OptionalFieldAttribute()]
     121    private System.DateTime TimestampField;
     122
     123    [System.Runtime.Serialization.OptionalFieldAttribute()]
     124    private string UserCommentField;
     125
     126    [System.Runtime.Serialization.OptionalFieldAttribute()]
     127    private System.Guid UserIdField;
     128
     129    [System.Runtime.Serialization.DataMemberAttribute()]
     130    public System.Guid ClientId {
     131      get {
     132        return this.ClientIdField;
     133      }
     134      set {
     135        if ((this.ClientIdField.Equals(value) != true)) {
     136          this.ClientIdField = value;
     137          this.RaisePropertyChanged("ClientId");
     138        }
     139      }
     140    }
     141
     142    [System.Runtime.Serialization.DataMemberAttribute()]
     143    public string ConfigDump {
     144      get {
     145        return this.ConfigDumpField;
     146      }
     147      set {
     148        if ((object.ReferenceEquals(this.ConfigDumpField, value) != true)) {
     149          this.ConfigDumpField = value;
     150          this.RaisePropertyChanged("ConfigDump");
     151        }
     152      }
     153    }
     154
     155    [System.Runtime.Serialization.DataMemberAttribute()]
     156    public string Exception {
     157      get {
     158        return this.ExceptionField;
     159      }
     160      set {
     161        if ((object.ReferenceEquals(this.ExceptionField, value) != true)) {
     162          this.ExceptionField = value;
     163          this.RaisePropertyChanged("Exception");
     164        }
     165      }
     166    }
    62167
    63168    [System.Runtime.Serialization.DataMemberAttribute()]
     
    73178      }
    74179    }
     180
     181    [System.Runtime.Serialization.DataMemberAttribute()]
     182    public System.DateTime Timestamp {
     183      get {
     184        return this.TimestampField;
     185      }
     186      set {
     187        if ((this.TimestampField.Equals(value) != true)) {
     188          this.TimestampField = value;
     189          this.RaisePropertyChanged("Timestamp");
     190        }
     191      }
     192    }
     193
     194    [System.Runtime.Serialization.DataMemberAttribute()]
     195    public string UserComment {
     196      get {
     197        return this.UserCommentField;
     198      }
     199      set {
     200        if ((object.ReferenceEquals(this.UserCommentField, value) != true)) {
     201          this.UserCommentField = value;
     202          this.RaisePropertyChanged("UserComment");
     203        }
     204      }
     205    }
     206
     207    [System.Runtime.Serialization.DataMemberAttribute()]
     208    public System.Guid UserId {
     209      get {
     210        return this.UserIdField;
     211      }
     212      set {
     213        if ((this.UserIdField.Equals(value) != true)) {
     214          this.UserIdField = value;
     215          this.RaisePropertyChanged("UserId");
     216        }
     217      }
     218    }
     219  }
     220
     221  [System.Diagnostics.DebuggerStepThroughAttribute()]
     222  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     223  [System.Runtime.Serialization.DataContractAttribute(Name = "Resource", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
     224      "")]
     225  [System.SerializableAttribute()]
     226  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.Client))]
     227  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.ClientGroup))]
     228  public partial class Resource : HeuristicLab.Clients.Access.AccessItem {
     229
     230    [System.Runtime.Serialization.OptionalFieldAttribute()]
     231    private string DescriptionField;
     232
     233    [System.Runtime.Serialization.OptionalFieldAttribute()]
     234    private System.Guid IdField;
     235
     236    [System.Runtime.Serialization.OptionalFieldAttribute()]
     237    private string NameField;
     238
     239    [System.Runtime.Serialization.DataMemberAttribute()]
     240    public string Description {
     241      get {
     242        return this.DescriptionField;
     243      }
     244      set {
     245        if ((object.ReferenceEquals(this.DescriptionField, value) != true)) {
     246          this.DescriptionField = value;
     247          this.RaisePropertyChanged("Description");
     248        }
     249      }
     250    }
     251
     252    [System.Runtime.Serialization.DataMemberAttribute()]
     253    public System.Guid Id {
     254      get {
     255        return this.IdField;
     256      }
     257      set {
     258        if ((this.IdField.Equals(value) != true)) {
     259          this.IdField = value;
     260          this.RaisePropertyChanged("Id");
     261        }
     262      }
     263    }
     264
     265    [System.Runtime.Serialization.DataMemberAttribute()]
     266    public string Name {
     267      get {
     268        return this.NameField;
     269      }
     270      set {
     271        if ((object.ReferenceEquals(this.NameField, value) != true)) {
     272          this.NameField = value;
     273          this.RaisePropertyChanged("Name");
     274        }
     275      }
     276    }
     277  }
     278
     279  [System.Diagnostics.DebuggerStepThroughAttribute()]
     280  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     281  [System.Runtime.Serialization.DataContractAttribute(Name = "Client", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
     282      "")]
     283  [System.SerializableAttribute()]
     284  public partial class Client : HeuristicLab.Clients.Access.Resource {
     285
     286    [System.Runtime.Serialization.OptionalFieldAttribute()]
     287    private HeuristicLab.Clients.Access.ClientConfiguration ClientConfigurationField;
     288
     289    [System.Runtime.Serialization.OptionalFieldAttribute()]
     290    private HeuristicLab.Clients.Access.ClientType ClientTypeField;
     291
     292    [System.Runtime.Serialization.OptionalFieldAttribute()]
     293    private HeuristicLab.Clients.Access.Country CountryField;
     294
     295    [System.Runtime.Serialization.OptionalFieldAttribute()]
     296    private string HeuristicLabVersionField;
     297
     298    [System.Runtime.Serialization.OptionalFieldAttribute()]
     299    private int MemorySizeField;
     300
     301    [System.Runtime.Serialization.OptionalFieldAttribute()]
     302    private int NumberOfCoresField;
     303
     304    [System.Runtime.Serialization.OptionalFieldAttribute()]
     305    private HeuristicLab.Clients.Access.OperatingSystem OperatingSystemField;
     306
     307    [System.Runtime.Serialization.OptionalFieldAttribute()]
     308    private string ProcessorTypeField;
     309
     310    [System.Runtime.Serialization.OptionalFieldAttribute()]
     311    private System.DateTime TimestampField;
     312
     313    [System.Runtime.Serialization.DataMemberAttribute()]
     314    public HeuristicLab.Clients.Access.ClientConfiguration ClientConfiguration {
     315      get {
     316        return this.ClientConfigurationField;
     317      }
     318      set {
     319        if ((object.ReferenceEquals(this.ClientConfigurationField, value) != true)) {
     320          this.ClientConfigurationField = value;
     321          this.RaisePropertyChanged("ClientConfiguration");
     322        }
     323      }
     324    }
     325
     326    [System.Runtime.Serialization.DataMemberAttribute()]
     327    public HeuristicLab.Clients.Access.ClientType ClientType {
     328      get {
     329        return this.ClientTypeField;
     330      }
     331      set {
     332        if ((object.ReferenceEquals(this.ClientTypeField, value) != true)) {
     333          this.ClientTypeField = value;
     334          this.RaisePropertyChanged("ClientType");
     335        }
     336      }
     337    }
     338
     339    [System.Runtime.Serialization.DataMemberAttribute()]
     340    public HeuristicLab.Clients.Access.Country Country {
     341      get {
     342        return this.CountryField;
     343      }
     344      set {
     345        if ((object.ReferenceEquals(this.CountryField, value) != true)) {
     346          this.CountryField = value;
     347          this.RaisePropertyChanged("Country");
     348        }
     349      }
     350    }
     351
     352    [System.Runtime.Serialization.DataMemberAttribute()]
     353    public string HeuristicLabVersion {
     354      get {
     355        return this.HeuristicLabVersionField;
     356      }
     357      set {
     358        if ((object.ReferenceEquals(this.HeuristicLabVersionField, value) != true)) {
     359          this.HeuristicLabVersionField = value;
     360          this.RaisePropertyChanged("HeuristicLabVersion");
     361        }
     362      }
     363    }
     364
     365    [System.Runtime.Serialization.DataMemberAttribute()]
     366    public int MemorySize {
     367      get {
     368        return this.MemorySizeField;
     369      }
     370      set {
     371        if ((this.MemorySizeField.Equals(value) != true)) {
     372          this.MemorySizeField = value;
     373          this.RaisePropertyChanged("MemorySize");
     374        }
     375      }
     376    }
     377
     378    [System.Runtime.Serialization.DataMemberAttribute()]
     379    public int NumberOfCores {
     380      get {
     381        return this.NumberOfCoresField;
     382      }
     383      set {
     384        if ((this.NumberOfCoresField.Equals(value) != true)) {
     385          this.NumberOfCoresField = value;
     386          this.RaisePropertyChanged("NumberOfCores");
     387        }
     388      }
     389    }
     390
     391    [System.Runtime.Serialization.DataMemberAttribute()]
     392    public HeuristicLab.Clients.Access.OperatingSystem OperatingSystem {
     393      get {
     394        return this.OperatingSystemField;
     395      }
     396      set {
     397        if ((object.ReferenceEquals(this.OperatingSystemField, value) != true)) {
     398          this.OperatingSystemField = value;
     399          this.RaisePropertyChanged("OperatingSystem");
     400        }
     401      }
     402    }
     403
     404    [System.Runtime.Serialization.DataMemberAttribute()]
     405    public string ProcessorType {
     406      get {
     407        return this.ProcessorTypeField;
     408      }
     409      set {
     410        if ((object.ReferenceEquals(this.ProcessorTypeField, value) != true)) {
     411          this.ProcessorTypeField = value;
     412          this.RaisePropertyChanged("ProcessorType");
     413        }
     414      }
     415    }
     416
     417    [System.Runtime.Serialization.DataMemberAttribute()]
     418    public System.DateTime Timestamp {
     419      get {
     420        return this.TimestampField;
     421      }
     422      set {
     423        if ((this.TimestampField.Equals(value) != true)) {
     424          this.TimestampField = value;
     425          this.RaisePropertyChanged("Timestamp");
     426        }
     427      }
     428    }
     429  }
     430
     431  [System.Diagnostics.DebuggerStepThroughAttribute()]
     432  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     433  [System.Runtime.Serialization.DataContractAttribute(Name = "ClientConfiguration", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
     434      "")]
     435  [System.SerializableAttribute()]
     436  public partial class ClientConfiguration : HeuristicLab.Clients.Access.AccessItem {
     437
     438    [System.Runtime.Serialization.OptionalFieldAttribute()]
     439    private string DescriptionField;
     440
     441    [System.Runtime.Serialization.OptionalFieldAttribute()]
     442    private string HashField;
     443
     444    [System.Runtime.Serialization.OptionalFieldAttribute()]
     445    private System.Guid IdField;
     446
     447    [System.Runtime.Serialization.DataMemberAttribute()]
     448    public string Description {
     449      get {
     450        return this.DescriptionField;
     451      }
     452      set {
     453        if ((object.ReferenceEquals(this.DescriptionField, value) != true)) {
     454          this.DescriptionField = value;
     455          this.RaisePropertyChanged("Description");
     456        }
     457      }
     458    }
     459
     460    [System.Runtime.Serialization.DataMemberAttribute()]
     461    public string Hash {
     462      get {
     463        return this.HashField;
     464      }
     465      set {
     466        if ((object.ReferenceEquals(this.HashField, value) != true)) {
     467          this.HashField = value;
     468          this.RaisePropertyChanged("Hash");
     469        }
     470      }
     471    }
     472
     473    [System.Runtime.Serialization.DataMemberAttribute()]
     474    public System.Guid Id {
     475      get {
     476        return this.IdField;
     477      }
     478      set {
     479        if ((this.IdField.Equals(value) != true)) {
     480          this.IdField = value;
     481          this.RaisePropertyChanged("Id");
     482        }
     483      }
     484    }
     485  }
     486
     487  [System.Diagnostics.DebuggerStepThroughAttribute()]
     488  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     489  [System.Runtime.Serialization.DataContractAttribute(Name = "ClientType", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
     490      "")]
     491  [System.SerializableAttribute()]
     492  public partial class ClientType : HeuristicLab.Clients.Access.AccessItem {
     493
     494    [System.Runtime.Serialization.OptionalFieldAttribute()]
     495    private System.Guid IdField;
     496
     497    [System.Runtime.Serialization.OptionalFieldAttribute()]
     498    private string NameField;
     499
     500    [System.Runtime.Serialization.DataMemberAttribute()]
     501    public System.Guid Id {
     502      get {
     503        return this.IdField;
     504      }
     505      set {
     506        if ((this.IdField.Equals(value) != true)) {
     507          this.IdField = value;
     508          this.RaisePropertyChanged("Id");
     509        }
     510      }
     511    }
     512
     513    [System.Runtime.Serialization.DataMemberAttribute()]
     514    public string Name {
     515      get {
     516        return this.NameField;
     517      }
     518      set {
     519        if ((object.ReferenceEquals(this.NameField, value) != true)) {
     520          this.NameField = value;
     521          this.RaisePropertyChanged("Name");
     522        }
     523      }
     524    }
     525  }
     526
     527  [System.Diagnostics.DebuggerStepThroughAttribute()]
     528  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     529  [System.Runtime.Serialization.DataContractAttribute(Name = "Country", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
     530      "")]
     531  [System.SerializableAttribute()]
     532  public partial class Country : HeuristicLab.Clients.Access.AccessItem {
     533
     534    [System.Runtime.Serialization.OptionalFieldAttribute()]
     535    private System.Guid IdField;
     536
     537    [System.Runtime.Serialization.OptionalFieldAttribute()]
     538    private string NameField;
     539
     540    [System.Runtime.Serialization.DataMemberAttribute()]
     541    public System.Guid Id {
     542      get {
     543        return this.IdField;
     544      }
     545      set {
     546        if ((this.IdField.Equals(value) != true)) {
     547          this.IdField = value;
     548          this.RaisePropertyChanged("Id");
     549        }
     550      }
     551    }
     552
     553    [System.Runtime.Serialization.DataMemberAttribute()]
     554    public string Name {
     555      get {
     556        return this.NameField;
     557      }
     558      set {
     559        if ((object.ReferenceEquals(this.NameField, value) != true)) {
     560          this.NameField = value;
     561          this.RaisePropertyChanged("Name");
     562        }
     563      }
     564    }
     565  }
     566
     567  [System.Diagnostics.DebuggerStepThroughAttribute()]
     568  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     569  [System.Runtime.Serialization.DataContractAttribute(Name = "OperatingSystem", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
     570      "")]
     571  [System.SerializableAttribute()]
     572  public partial class OperatingSystem : HeuristicLab.Clients.Access.AccessItem {
     573
     574    [System.Runtime.Serialization.OptionalFieldAttribute()]
     575    private System.Guid IdField;
     576
     577    [System.Runtime.Serialization.OptionalFieldAttribute()]
     578    private string NameField;
     579
     580    [System.Runtime.Serialization.DataMemberAttribute()]
     581    public System.Guid Id {
     582      get {
     583        return this.IdField;
     584      }
     585      set {
     586        if ((this.IdField.Equals(value) != true)) {
     587          this.IdField = value;
     588          this.RaisePropertyChanged("Id");
     589        }
     590      }
     591    }
     592
     593    [System.Runtime.Serialization.DataMemberAttribute()]
     594    public string Name {
     595      get {
     596        return this.NameField;
     597      }
     598      set {
     599        if ((object.ReferenceEquals(this.NameField, value) != true)) {
     600          this.NameField = value;
     601          this.RaisePropertyChanged("Name");
     602        }
     603      }
     604    }
     605  }
     606
     607  [System.Diagnostics.DebuggerStepThroughAttribute()]
     608  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     609  [System.Runtime.Serialization.DataContractAttribute(Name = "ClientGroup", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
     610      "")]
     611  [System.SerializableAttribute()]
     612  public partial class ClientGroup : HeuristicLab.Clients.Access.Resource {
     613  }
     614
     615  [System.Diagnostics.DebuggerStepThroughAttribute()]
     616  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     617  [System.Runtime.Serialization.DataContractAttribute(Name = "ClientLog", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
     618      "")]
     619  [System.SerializableAttribute()]
     620  public partial class ClientLog : HeuristicLab.Clients.Access.AccessItem {
     621
     622    [System.Runtime.Serialization.OptionalFieldAttribute()]
     623    private string MessageField;
     624
     625    [System.Runtime.Serialization.OptionalFieldAttribute()]
     626    private System.Guid ResourceIdField;
     627
     628    [System.Runtime.Serialization.OptionalFieldAttribute()]
     629    private System.DateTime TimestampField;
     630
     631    [System.Runtime.Serialization.DataMemberAttribute()]
     632    public string Message {
     633      get {
     634        return this.MessageField;
     635      }
     636      set {
     637        if ((object.ReferenceEquals(this.MessageField, value) != true)) {
     638          this.MessageField = value;
     639          this.RaisePropertyChanged("Message");
     640        }
     641      }
     642    }
     643
     644    [System.Runtime.Serialization.DataMemberAttribute()]
     645    public System.Guid ResourceId {
     646      get {
     647        return this.ResourceIdField;
     648      }
     649      set {
     650        if ((this.ResourceIdField.Equals(value) != true)) {
     651          this.ResourceIdField = value;
     652          this.RaisePropertyChanged("ResourceId");
     653        }
     654      }
     655    }
     656
     657    [System.Runtime.Serialization.DataMemberAttribute()]
     658    public System.DateTime Timestamp {
     659      get {
     660        return this.TimestampField;
     661      }
     662      set {
     663        if ((this.TimestampField.Equals(value) != true)) {
     664          this.TimestampField = value;
     665          this.RaisePropertyChanged("Timestamp");
     666        }
     667      }
     668    }
     669  }
     670
     671  [System.Diagnostics.DebuggerStepThroughAttribute()]
     672  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     673  [System.Runtime.Serialization.DataContractAttribute(Name = "UserGroup", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
     674      "")]
     675  [System.SerializableAttribute()]
     676  public partial class UserGroup : HeuristicLab.Clients.Access.UserGroupBase {
     677
     678    [System.Runtime.Serialization.OptionalFieldAttribute()]
     679    private string NameField;
     680
     681    [System.Runtime.Serialization.DataMemberAttribute()]
     682    public string Name {
     683      get {
     684        return this.NameField;
     685      }
     686      set {
     687        if ((object.ReferenceEquals(this.NameField, value) != true)) {
     688          this.NameField = value;
     689          this.RaisePropertyChanged("Name");
     690        }
     691      }
     692    }
    75693  }
    76694
     
    229847  [System.Diagnostics.DebuggerStepThroughAttribute()]
    230848  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    231   [System.Runtime.Serialization.DataContractAttribute(Name = "UserGroup", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    232       "")]
    233   [System.SerializableAttribute()]
    234   public partial class UserGroup : HeuristicLab.Clients.Access.UserGroupBase {
    235 
    236     [System.Runtime.Serialization.OptionalFieldAttribute()]
    237     private string NameField;
    238 
    239     [System.Runtime.Serialization.DataMemberAttribute()]
    240     public string Name {
    241       get {
    242         return this.NameField;
    243       }
    244       set {
    245         if ((object.ReferenceEquals(this.NameField, value) != true)) {
    246           this.NameField = value;
    247           this.RaisePropertyChanged("Name");
    248         }
    249       }
    250     }
    251   }
    252 
    253   [System.Diagnostics.DebuggerStepThroughAttribute()]
    254   [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    255849  [System.Runtime.Serialization.DataContractAttribute(Name = "LightweightUser", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    256850      "")]
     
    293887  [System.Diagnostics.DebuggerStepThroughAttribute()]
    294888  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    295   [System.Runtime.Serialization.DataContractAttribute(Name = "ClientError", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    296       "")]
    297   [System.SerializableAttribute()]
    298   public partial class ClientError : HeuristicLab.Clients.Access.AccessItem {
    299 
    300     [System.Runtime.Serialization.OptionalFieldAttribute()]
    301     private System.Guid ClientIdField;
    302 
    303     [System.Runtime.Serialization.OptionalFieldAttribute()]
    304     private string ConfigDumpField;
    305 
    306     [System.Runtime.Serialization.OptionalFieldAttribute()]
    307     private string ExceptionField;
    308 
    309     [System.Runtime.Serialization.OptionalFieldAttribute()]
    310     private System.Guid IdField;
    311 
    312     [System.Runtime.Serialization.OptionalFieldAttribute()]
    313     private System.DateTime TimestampField;
    314 
    315     [System.Runtime.Serialization.OptionalFieldAttribute()]
    316     private string UserCommentField;
    317 
    318     [System.Runtime.Serialization.OptionalFieldAttribute()]
    319     private System.Guid UserIdField;
    320 
    321     [System.Runtime.Serialization.DataMemberAttribute()]
    322     public System.Guid ClientId {
    323       get {
    324         return this.ClientIdField;
    325       }
    326       set {
    327         if ((this.ClientIdField.Equals(value) != true)) {
    328           this.ClientIdField = value;
    329           this.RaisePropertyChanged("ClientId");
    330         }
    331       }
    332     }
    333 
    334     [System.Runtime.Serialization.DataMemberAttribute()]
    335     public string ConfigDump {
    336       get {
    337         return this.ConfigDumpField;
    338       }
    339       set {
    340         if ((object.ReferenceEquals(this.ConfigDumpField, value) != true)) {
    341           this.ConfigDumpField = value;
    342           this.RaisePropertyChanged("ConfigDump");
    343         }
    344       }
    345     }
    346 
    347     [System.Runtime.Serialization.DataMemberAttribute()]
    348     public string Exception {
    349       get {
    350         return this.ExceptionField;
    351       }
    352       set {
    353         if ((object.ReferenceEquals(this.ExceptionField, value) != true)) {
    354           this.ExceptionField = value;
    355           this.RaisePropertyChanged("Exception");
    356         }
    357       }
    358     }
    359 
    360     [System.Runtime.Serialization.DataMemberAttribute()]
    361     public System.Guid Id {
    362       get {
    363         return this.IdField;
    364       }
    365       set {
    366         if ((this.IdField.Equals(value) != true)) {
    367           this.IdField = value;
    368           this.RaisePropertyChanged("Id");
    369         }
    370       }
    371     }
    372 
    373     [System.Runtime.Serialization.DataMemberAttribute()]
    374     public System.DateTime Timestamp {
    375       get {
    376         return this.TimestampField;
    377       }
    378       set {
    379         if ((this.TimestampField.Equals(value) != true)) {
    380           this.TimestampField = value;
    381           this.RaisePropertyChanged("Timestamp");
    382         }
    383       }
    384     }
    385 
    386     [System.Runtime.Serialization.DataMemberAttribute()]
    387     public string UserComment {
    388       get {
    389         return this.UserCommentField;
    390       }
    391       set {
    392         if ((object.ReferenceEquals(this.UserCommentField, value) != true)) {
    393           this.UserCommentField = value;
    394           this.RaisePropertyChanged("UserComment");
    395         }
    396       }
    397     }
    398 
    399     [System.Runtime.Serialization.DataMemberAttribute()]
    400     public System.Guid UserId {
    401       get {
    402         return this.UserIdField;
    403       }
    404       set {
    405         if ((this.UserIdField.Equals(value) != true)) {
    406           this.UserIdField = value;
    407           this.RaisePropertyChanged("UserId");
    408         }
    409       }
    410     }
    411   }
    412 
    413   [System.Diagnostics.DebuggerStepThroughAttribute()]
    414   [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    415   [System.Runtime.Serialization.DataContractAttribute(Name = "Resource", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    416       "")]
    417   [System.SerializableAttribute()]
    418   [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.Client))]
    419   [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Access.ClientGroup))]
    420   public partial class Resource : HeuristicLab.Clients.Access.AccessItem {
    421 
    422     [System.Runtime.Serialization.OptionalFieldAttribute()]
    423     private string DescriptionField;
    424 
    425     [System.Runtime.Serialization.OptionalFieldAttribute()]
    426     private System.Guid IdField;
    427 
    428     [System.Runtime.Serialization.OptionalFieldAttribute()]
    429     private string NameField;
    430 
    431     [System.Runtime.Serialization.DataMemberAttribute()]
    432     public string Description {
    433       get {
    434         return this.DescriptionField;
    435       }
    436       set {
    437         if ((object.ReferenceEquals(this.DescriptionField, value) != true)) {
    438           this.DescriptionField = value;
    439           this.RaisePropertyChanged("Description");
    440         }
    441       }
    442     }
    443 
    444     [System.Runtime.Serialization.DataMemberAttribute()]
    445     public System.Guid Id {
    446       get {
    447         return this.IdField;
    448       }
    449       set {
    450         if ((this.IdField.Equals(value) != true)) {
    451           this.IdField = value;
    452           this.RaisePropertyChanged("Id");
    453         }
    454       }
    455     }
    456 
    457     [System.Runtime.Serialization.DataMemberAttribute()]
    458     public string Name {
    459       get {
    460         return this.NameField;
    461       }
    462       set {
    463         if ((object.ReferenceEquals(this.NameField, value) != true)) {
    464           this.NameField = value;
    465           this.RaisePropertyChanged("Name");
    466         }
    467       }
    468     }
    469   }
    470 
    471   [System.Diagnostics.DebuggerStepThroughAttribute()]
    472   [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    473   [System.Runtime.Serialization.DataContractAttribute(Name = "Client", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    474       "")]
    475   [System.SerializableAttribute()]
    476   public partial class Client : HeuristicLab.Clients.Access.Resource {
    477 
    478     [System.Runtime.Serialization.OptionalFieldAttribute()]
    479     private HeuristicLab.Clients.Access.ClientConfiguration ClientConfigurationField;
    480 
    481     [System.Runtime.Serialization.OptionalFieldAttribute()]
    482     private HeuristicLab.Clients.Access.ClientType ClientTypeField;
    483 
    484     [System.Runtime.Serialization.OptionalFieldAttribute()]
    485     private HeuristicLab.Clients.Access.Country CountryField;
    486 
    487     [System.Runtime.Serialization.OptionalFieldAttribute()]
    488     private string HeuristicLabVersionField;
    489 
    490     [System.Runtime.Serialization.OptionalFieldAttribute()]
    491     private int MemorySizeField;
    492 
    493     [System.Runtime.Serialization.OptionalFieldAttribute()]
    494     private int NumberOfCoresField;
    495 
    496     [System.Runtime.Serialization.OptionalFieldAttribute()]
    497     private HeuristicLab.Clients.Access.OperatingSystem OperatingSystemField;
    498 
    499     [System.Runtime.Serialization.OptionalFieldAttribute()]
    500     private string ProcessorTypeField;
    501 
    502     [System.Runtime.Serialization.OptionalFieldAttribute()]
    503     private System.DateTime TimestampField;
    504 
    505     [System.Runtime.Serialization.DataMemberAttribute()]
    506     public HeuristicLab.Clients.Access.ClientConfiguration ClientConfiguration {
    507       get {
    508         return this.ClientConfigurationField;
    509       }
    510       set {
    511         if ((object.ReferenceEquals(this.ClientConfigurationField, value) != true)) {
    512           this.ClientConfigurationField = value;
    513           this.RaisePropertyChanged("ClientConfiguration");
    514         }
    515       }
    516     }
    517 
    518     [System.Runtime.Serialization.DataMemberAttribute()]
    519     public HeuristicLab.Clients.Access.ClientType ClientType {
    520       get {
    521         return this.ClientTypeField;
    522       }
    523       set {
    524         if ((object.ReferenceEquals(this.ClientTypeField, value) != true)) {
    525           this.ClientTypeField = value;
    526           this.RaisePropertyChanged("ClientType");
    527         }
    528       }
    529     }
    530 
    531     [System.Runtime.Serialization.DataMemberAttribute()]
    532     public HeuristicLab.Clients.Access.Country Country {
    533       get {
    534         return this.CountryField;
    535       }
    536       set {
    537         if ((object.ReferenceEquals(this.CountryField, value) != true)) {
    538           this.CountryField = value;
    539           this.RaisePropertyChanged("Country");
    540         }
    541       }
    542     }
    543 
    544     [System.Runtime.Serialization.DataMemberAttribute()]
    545     public string HeuristicLabVersion {
    546       get {
    547         return this.HeuristicLabVersionField;
    548       }
    549       set {
    550         if ((object.ReferenceEquals(this.HeuristicLabVersionField, value) != true)) {
    551           this.HeuristicLabVersionField = value;
    552           this.RaisePropertyChanged("HeuristicLabVersion");
    553         }
    554       }
    555     }
    556 
    557     [System.Runtime.Serialization.DataMemberAttribute()]
    558     public int MemorySize {
    559       get {
    560         return this.MemorySizeField;
    561       }
    562       set {
    563         if ((this.MemorySizeField.Equals(value) != true)) {
    564           this.MemorySizeField = value;
    565           this.RaisePropertyChanged("MemorySize");
    566         }
    567       }
    568     }
    569 
    570     [System.Runtime.Serialization.DataMemberAttribute()]
    571     public int NumberOfCores {
    572       get {
    573         return this.NumberOfCoresField;
    574       }
    575       set {
    576         if ((this.NumberOfCoresField.Equals(value) != true)) {
    577           this.NumberOfCoresField = value;
    578           this.RaisePropertyChanged("NumberOfCores");
    579         }
    580       }
    581     }
    582 
    583     [System.Runtime.Serialization.DataMemberAttribute()]
    584     public HeuristicLab.Clients.Access.OperatingSystem OperatingSystem {
    585       get {
    586         return this.OperatingSystemField;
    587       }
    588       set {
    589         if ((object.ReferenceEquals(this.OperatingSystemField, value) != true)) {
    590           this.OperatingSystemField = value;
    591           this.RaisePropertyChanged("OperatingSystem");
    592         }
    593       }
    594     }
    595 
    596     [System.Runtime.Serialization.DataMemberAttribute()]
    597     public string ProcessorType {
    598       get {
    599         return this.ProcessorTypeField;
    600       }
    601       set {
    602         if ((object.ReferenceEquals(this.ProcessorTypeField, value) != true)) {
    603           this.ProcessorTypeField = value;
    604           this.RaisePropertyChanged("ProcessorType");
    605         }
    606       }
    607     }
    608 
    609     [System.Runtime.Serialization.DataMemberAttribute()]
    610     public System.DateTime Timestamp {
    611       get {
    612         return this.TimestampField;
    613       }
    614       set {
    615         if ((this.TimestampField.Equals(value) != true)) {
    616           this.TimestampField = value;
    617           this.RaisePropertyChanged("Timestamp");
    618         }
    619       }
    620     }
    621   }
    622 
    623   [System.Diagnostics.DebuggerStepThroughAttribute()]
    624   [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    625   [System.Runtime.Serialization.DataContractAttribute(Name = "ClientConfiguration", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    626       "")]
    627   [System.SerializableAttribute()]
    628   public partial class ClientConfiguration : HeuristicLab.Clients.Access.AccessItem {
    629 
    630     [System.Runtime.Serialization.OptionalFieldAttribute()]
    631     private string DescriptionField;
    632 
    633     [System.Runtime.Serialization.OptionalFieldAttribute()]
    634     private string HashField;
    635 
    636     [System.Runtime.Serialization.OptionalFieldAttribute()]
    637     private System.Guid IdField;
    638 
    639     [System.Runtime.Serialization.DataMemberAttribute()]
    640     public string Description {
    641       get {
    642         return this.DescriptionField;
    643       }
    644       set {
    645         if ((object.ReferenceEquals(this.DescriptionField, value) != true)) {
    646           this.DescriptionField = value;
    647           this.RaisePropertyChanged("Description");
    648         }
    649       }
    650     }
    651 
    652     [System.Runtime.Serialization.DataMemberAttribute()]
    653     public string Hash {
    654       get {
    655         return this.HashField;
    656       }
    657       set {
    658         if ((object.ReferenceEquals(this.HashField, value) != true)) {
    659           this.HashField = value;
    660           this.RaisePropertyChanged("Hash");
    661         }
    662       }
    663     }
    664 
    665     [System.Runtime.Serialization.DataMemberAttribute()]
    666     public System.Guid Id {
    667       get {
    668         return this.IdField;
    669       }
    670       set {
    671         if ((this.IdField.Equals(value) != true)) {
    672           this.IdField = value;
    673           this.RaisePropertyChanged("Id");
    674         }
    675       }
    676     }
    677   }
    678 
    679   [System.Diagnostics.DebuggerStepThroughAttribute()]
    680   [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    681   [System.Runtime.Serialization.DataContractAttribute(Name = "ClientType", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    682       "")]
    683   [System.SerializableAttribute()]
    684   public partial class ClientType : HeuristicLab.Clients.Access.AccessItem {
    685 
    686     [System.Runtime.Serialization.OptionalFieldAttribute()]
    687     private System.Guid IdField;
    688 
    689     [System.Runtime.Serialization.OptionalFieldAttribute()]
    690     private string NameField;
    691 
    692     [System.Runtime.Serialization.DataMemberAttribute()]
    693     public System.Guid Id {
    694       get {
    695         return this.IdField;
    696       }
    697       set {
    698         if ((this.IdField.Equals(value) != true)) {
    699           this.IdField = value;
    700           this.RaisePropertyChanged("Id");
    701         }
    702       }
    703     }
    704 
    705     [System.Runtime.Serialization.DataMemberAttribute()]
    706     public string Name {
    707       get {
    708         return this.NameField;
    709       }
    710       set {
    711         if ((object.ReferenceEquals(this.NameField, value) != true)) {
    712           this.NameField = value;
    713           this.RaisePropertyChanged("Name");
    714         }
    715       }
    716     }
    717   }
    718 
    719   [System.Diagnostics.DebuggerStepThroughAttribute()]
    720   [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    721   [System.Runtime.Serialization.DataContractAttribute(Name = "Country", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    722       "")]
    723   [System.SerializableAttribute()]
    724   public partial class Country : HeuristicLab.Clients.Access.AccessItem {
    725 
    726     [System.Runtime.Serialization.OptionalFieldAttribute()]
    727     private System.Guid IdField;
    728 
    729     [System.Runtime.Serialization.OptionalFieldAttribute()]
    730     private string NameField;
    731 
    732     [System.Runtime.Serialization.DataMemberAttribute()]
    733     public System.Guid Id {
    734       get {
    735         return this.IdField;
    736       }
    737       set {
    738         if ((this.IdField.Equals(value) != true)) {
    739           this.IdField = value;
    740           this.RaisePropertyChanged("Id");
    741         }
    742       }
    743     }
    744 
    745     [System.Runtime.Serialization.DataMemberAttribute()]
    746     public string Name {
    747       get {
    748         return this.NameField;
    749       }
    750       set {
    751         if ((object.ReferenceEquals(this.NameField, value) != true)) {
    752           this.NameField = value;
    753           this.RaisePropertyChanged("Name");
    754         }
    755       }
    756     }
    757   }
    758 
    759   [System.Diagnostics.DebuggerStepThroughAttribute()]
    760   [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    761   [System.Runtime.Serialization.DataContractAttribute(Name = "OperatingSystem", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    762       "")]
    763   [System.SerializableAttribute()]
    764   public partial class OperatingSystem : HeuristicLab.Clients.Access.AccessItem {
    765 
    766     [System.Runtime.Serialization.OptionalFieldAttribute()]
    767     private System.Guid IdField;
    768 
    769     [System.Runtime.Serialization.OptionalFieldAttribute()]
    770     private string NameField;
    771 
    772     [System.Runtime.Serialization.DataMemberAttribute()]
    773     public System.Guid Id {
    774       get {
    775         return this.IdField;
    776       }
    777       set {
    778         if ((this.IdField.Equals(value) != true)) {
    779           this.IdField = value;
    780           this.RaisePropertyChanged("Id");
    781         }
    782       }
    783     }
    784 
    785     [System.Runtime.Serialization.DataMemberAttribute()]
    786     public string Name {
    787       get {
    788         return this.NameField;
    789       }
    790       set {
    791         if ((object.ReferenceEquals(this.NameField, value) != true)) {
    792           this.NameField = value;
    793           this.RaisePropertyChanged("Name");
    794         }
    795       }
    796     }
    797   }
    798 
    799   [System.Diagnostics.DebuggerStepThroughAttribute()]
    800   [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    801   [System.Runtime.Serialization.DataContractAttribute(Name = "ClientGroup", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    802       "")]
    803   [System.SerializableAttribute()]
    804   public partial class ClientGroup : HeuristicLab.Clients.Access.Resource {
    805   }
    806 
    807   [System.Diagnostics.DebuggerStepThroughAttribute()]
    808   [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    809   [System.Runtime.Serialization.DataContractAttribute(Name = "ClientLog", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    810       "")]
    811   [System.SerializableAttribute()]
    812   public partial class ClientLog : HeuristicLab.Clients.Access.AccessItem {
    813 
    814     [System.Runtime.Serialization.OptionalFieldAttribute()]
    815     private string MessageField;
    816 
    817     [System.Runtime.Serialization.OptionalFieldAttribute()]
    818     private System.Guid ResourceIdField;
    819 
    820     [System.Runtime.Serialization.OptionalFieldAttribute()]
    821     private System.DateTime TimestampField;
    822 
    823     [System.Runtime.Serialization.DataMemberAttribute()]
    824     public string Message {
    825       get {
    826         return this.MessageField;
    827       }
    828       set {
    829         if ((object.ReferenceEquals(this.MessageField, value) != true)) {
    830           this.MessageField = value;
    831           this.RaisePropertyChanged("Message");
    832         }
    833       }
    834     }
    835 
    836     [System.Runtime.Serialization.DataMemberAttribute()]
    837     public System.Guid ResourceId {
    838       get {
    839         return this.ResourceIdField;
    840       }
    841       set {
    842         if ((this.ResourceIdField.Equals(value) != true)) {
    843           this.ResourceIdField = value;
    844           this.RaisePropertyChanged("ResourceId");
    845         }
    846       }
    847     }
    848 
    849     [System.Runtime.Serialization.DataMemberAttribute()]
    850     public System.DateTime Timestamp {
    851       get {
    852         return this.TimestampField;
    853       }
    854       set {
    855         if ((this.TimestampField.Equals(value) != true)) {
    856           this.TimestampField = value;
    857           this.RaisePropertyChanged("Timestamp");
    858         }
    859       }
    860     }
    861   }
    862 
    863   [System.Diagnostics.DebuggerStepThroughAttribute()]
    864   [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    865   [System.Runtime.Serialization.DataContractAttribute(Name = "Role", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    866       "")]
    867   [System.SerializableAttribute()]
    868   public partial class Role : HeuristicLab.Clients.Access.AccessItem {
    869 
    870     [System.Runtime.Serialization.OptionalFieldAttribute()]
    871     private string NameField;
    872 
    873     [System.Runtime.Serialization.DataMemberAttribute()]
    874     public string Name {
    875       get {
    876         return this.NameField;
    877       }
    878       set {
    879         if ((object.ReferenceEquals(this.NameField, value) != true)) {
    880           this.NameField = value;
    881           this.RaisePropertyChanged("Name");
    882         }
    883       }
    884     }
    885   }
    886 
    887   [System.Diagnostics.DebuggerStepThroughAttribute()]
    888   [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    889   [System.Runtime.Serialization.DataContractAttribute(Name = "ClientGroupMapping", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    890       "")]
    891   [System.SerializableAttribute()]
    892   public partial class ClientGroupMapping : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
     889  [System.Runtime.Serialization.DataContractAttribute(Name = "UserGroupMapping", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
     890      "")]
     891  [System.SerializableAttribute()]
     892  public partial class UserGroupMapping : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
    893893
    894894    [System.NonSerializedAttribute()]
     
    948948  [System.Diagnostics.DebuggerStepThroughAttribute()]
    949949  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    950   [System.Runtime.Serialization.DataContractAttribute(Name = "UserGroupMapping", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
    951       "")]
    952   [System.SerializableAttribute()]
    953   public partial class UserGroupMapping : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
     950  [System.Runtime.Serialization.DataContractAttribute(Name = "ClientGroupMapping", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Access.DataTransfer" +
     951      "")]
     952  [System.SerializableAttribute()]
     953  public partial class ClientGroupMapping : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
    954954
    955955    [System.NonSerializedAttribute()]
     
    10111011  public interface IAccessService {
    10121012
     1013    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/GetLeightweightUsersAndGroups", ReplyAction = "http://tempuri.org/IAccessService/GetLeightweightUsersAndGroupsResponse")]
     1014    System.Collections.Generic.List<HeuristicLab.Clients.Access.UserGroupBase> GetLeightweightUsersAndGroups(System.Collections.Generic.List<System.Guid> ids);
     1015
     1016    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/GetUserGroupMapping", ReplyAction = "http://tempuri.org/IAccessService/GetUserGroupMappingResponse")]
     1017    System.Collections.Generic.List<HeuristicLab.Clients.Access.UserGroupMapping> GetUserGroupMapping();
     1018
     1019    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/GetRoles", ReplyAction = "http://tempuri.org/IAccessService/GetRolesResponse")]
     1020    System.Collections.Generic.List<HeuristicLab.Clients.Access.Role> GetRoles();
     1021
    10131022    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/AddRole", ReplyAction = "http://tempuri.org/IAccessService/AddRoleResponse")]
    10141023    HeuristicLab.Clients.Access.Role AddRole(HeuristicLab.Clients.Access.Role role);
     
    11071116    System.Collections.Generic.List<HeuristicLab.Clients.Access.LightweightUser> GetAllLightweightUsers();
    11081117
     1118    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/GetLightweightUsers", ReplyAction = "http://tempuri.org/IAccessService/GetLightweightUsersResponse")]
     1119    System.Collections.Generic.List<HeuristicLab.Clients.Access.LightweightUser> GetLightweightUsers(System.Collections.Generic.List<System.Guid> ids);
     1120
    11091121    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/GetAllUsers", ReplyAction = "http://tempuri.org/IAccessService/GetAllUsersResponse")]
    11101122    System.Collections.Generic.List<HeuristicLab.Clients.Access.User> GetAllUsers();
     
    11581170    System.Collections.Generic.List<HeuristicLab.Clients.Access.UserGroupBase> GetUsersAndGroups();
    11591171
    1160     [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/GetUserGroupMapping", ReplyAction = "http://tempuri.org/IAccessService/GetUserGroupMappingResponse")]
    1161     System.Collections.Generic.List<HeuristicLab.Clients.Access.UserGroupMapping> GetUserGroupMapping();
    1162 
    1163     [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/GetRoles", ReplyAction = "http://tempuri.org/IAccessService/GetRolesResponse")]
    1164     System.Collections.Generic.List<HeuristicLab.Clients.Access.Role> GetRoles();
     1172    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/GetAllLeightweightUsersAndGroups", ReplyAction = "http://tempuri.org/IAccessService/GetAllLeightweightUsersAndGroupsResponse")]
     1173    System.Collections.Generic.List<HeuristicLab.Clients.Access.UserGroupBase> GetAllLeightweightUsersAndGroups();
    11651174  }
    11661175
     
    11921201    }
    11931202
     1203    public System.Collections.Generic.List<HeuristicLab.Clients.Access.UserGroupBase> GetLeightweightUsersAndGroups(System.Collections.Generic.List<System.Guid> ids) {
     1204      return base.Channel.GetLeightweightUsersAndGroups(ids);
     1205    }
     1206
     1207    public System.Collections.Generic.List<HeuristicLab.Clients.Access.UserGroupMapping> GetUserGroupMapping() {
     1208      return base.Channel.GetUserGroupMapping();
     1209    }
     1210
     1211    public System.Collections.Generic.List<HeuristicLab.Clients.Access.Role> GetRoles() {
     1212      return base.Channel.GetRoles();
     1213    }
     1214
    11941215    public HeuristicLab.Clients.Access.Role AddRole(HeuristicLab.Clients.Access.Role role) {
    11951216      return base.Channel.AddRole(role);
     
    13201341    }
    13211342
     1343    public System.Collections.Generic.List<HeuristicLab.Clients.Access.LightweightUser> GetLightweightUsers(System.Collections.Generic.List<System.Guid> ids) {
     1344      return base.Channel.GetLightweightUsers(ids);
     1345    }
     1346
    13221347    public System.Collections.Generic.List<HeuristicLab.Clients.Access.User> GetAllUsers() {
    13231348      return base.Channel.GetAllUsers();
     
    13881413    }
    13891414
    1390     public System.Collections.Generic.List<HeuristicLab.Clients.Access.UserGroupMapping> GetUserGroupMapping() {
    1391       return base.Channel.GetUserGroupMapping();
    1392     }
    1393 
    1394     public System.Collections.Generic.List<HeuristicLab.Clients.Access.Role> GetRoles() {
    1395       return base.Channel.GetRoles();
     1415    public System.Collections.Generic.List<HeuristicLab.Clients.Access.UserGroupBase> GetAllLeightweightUsersAndGroups() {
     1416      return base.Channel.GetAllLeightweightUsersAndGroups();
    13961417    }
    13971418  }
  • branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/ServiceClients/LightweightUser.cs

    r7375 r7426  
    2020#endregion
    2121
     22using System.Drawing;
    2223using HeuristicLab.Common;
    2324using HeuristicLab.Core;
     
    3031      FullName = original.FullName;
    3132      UserName = original.UserName;
     33    }
     34
     35    public static Image StaticItemImage {
     36      get { return HeuristicLab.Common.Resources.VSImageLibrary.User; }
    3237    }
    3338
  • branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/ServiceClients/UserGroupBase.cs

    r7368 r7426  
    3636      return new UserGroupBase(this, cloner);
    3737    }
     38
     39    public override bool Equals(object obj) {
     40      var o = obj as UserGroupBase;
     41      if (o == null) {
     42        return false;
     43      } else {
     44        return this.Id == o.Id;
     45      }
     46    }
    3847  }
    3948}
  • branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/Views/LightweightUserView.cs

    r7380 r7426  
    2222using System;
    2323using System.Windows.Forms;
    24 using HeuristicLab.Collections;
    2524using HeuristicLab.Core;
    2625using HeuristicLab.Core.Views;
     
    2928
    3029namespace HeuristicLab.Clients.Access.Views {
    31 
    3230  [View("LightweightUser View")]
    33   [Content(typeof(ReadOnlyCheckedItemList<LightweightUser>), true)]
    34   public partial class LightweightUserView : CheckedItemListView<LightweightUser> {
     31  [Content(typeof(ItemList<UserGroupBase>), true)]
     32  public partial class LightweightUserView : ItemListView<UserGroupBase> {
    3533    public LightweightUserView() {
    3634      InitializeComponent();
    3735      this.showDetailsCheckBox.Checked = false;
    38       this.itemsGroupBox.Text = "Users";
     36      this.itemsGroupBox.Text = "Users and Groups";
     37    }
     38
     39    protected override void addButton_Click(object sender, System.EventArgs e) {
     40      using (LightweightUserGroupSelectionDialog dlg = new LightweightUserGroupSelectionDialog()) {
     41        DialogResult res = dlg.ShowDialog(this);
     42        if (res == DialogResult.OK) {
     43          dlg.SelectedUsersAndGroups.ForEach(x => {
     44            if (!Content.Contains(x)) {
     45              Content.Add(x);
     46              OnSelectedUsersChanged();
     47            }
     48          });
     49        }
     50      }
     51    }
     52
     53    protected override void removeButton_Click(object sender, EventArgs e) {
     54      base.removeButton_Click(sender, e);
     55      OnSelectedUsersChanged();
    3956    }
    4057
     
    4259      base.SetEnabledStateOfControls();
    4360      this.showDetailsCheckBox.Enabled = false;
    44     }
    45 
    46     protected override void Content_CheckedItemsChanged(object sender, CollectionItemsChangedEventArgs<IndexedItem<LightweightUser>> e) {
    47       base.Content_CheckedItemsChanged(sender, e);
    48       OnSelectedUsersChanged();
    4961    }
    5062
  • branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/Views/RefreshableLightweightUserView.cs

    r7380 r7426  
    2222using System;
    2323using System.Collections.Generic;
     24using System.Linq;
    2425using System.Windows.Forms;
    2526using HeuristicLab.Core;
     
    5758      base.Content_Refreshed(sender, e);
    5859
    59       var checkedUsers = new CheckedItemList<LightweightUser>(Content.Users);
    60       checkedUsers.ForEach(u => {
    61         int idx = checkedUsers.IndexOf(u);
    62         checkedUsers.SetItemCheckedState(idx, selectedUsers.Contains(u.Id));
    63       });
    64       lightweightUserView.Content = checkedUsers.AsReadOnly();
     60      lightweightUserView.Content = new ItemList<UserGroupBase>(Content.UsersAndGroups.Where(x => selectedUsers.Contains(x.Id)));
    6561    }
    6662
     
    7066    }
    7167
    72     public ICheckedItemList<LightweightUser> GetCheckedUsers() {
     68    public IItemList<UserGroupBase> GetCheckedUsers() {
    7369      return (lightweightUserView.Content == null) ? null : lightweightUserView.Content;
    7470    }
  • branches/ClientUserManagement/HeuristicLab.Services.Access/3.3/AccessService.cs

    r7380 r7426  
    397397      }
    398398
     399      if (accessUserGuids.Count() != ids.Count()) {
     400        throw new Exception("Couldn't find one or more users for the given user ids.");
     401      }
     402
    399403      return accessUserGuids.Select(x => BuildUserDto(x));
     404    }
     405
     406    public IEnumerable<DT.LightweightUser> GetLightweightUsers(IEnumerable<Guid> ids) {
     407      List<Guid> accessUserGuids = null;
     408
     409      using (DA.ClientManagementDataContext context = new DA.ClientManagementDataContext()) {
     410        var query = from u in context.UserGroupBases.OfType<DA.User>()
     411                    where ids.Contains(u.Id)
     412                    select u.Id;
     413        accessUserGuids = query.ToList();
     414      }
     415
     416      if (accessUserGuids.Count() != ids.Count()) {
     417        throw new Exception("Couldn't find one or more users for the given user ids.");
     418      }
     419
     420      return accessUserGuids.Select(x => BuildLightweightUserDto(x));
    400421    }
    401422
     
    589610    #endregion
    590611
     612    #region UserGroupBase
     613    public IEnumerable<DT.UserGroupBase> GetAllLeightweightUsersAndGroups() {
     614      List<DA.UserGroupBase> dbUserGroupsBases = new List<DA.UserGroupBase>();
     615      List<DT.UserGroupBase> result = new List<DT.UserGroupBase>();
     616
     617      using (DA.ClientManagementDataContext context = new DA.ClientManagementDataContext()) {
     618        var query = from u in context.UserGroupBases
     619                    select u;
     620        dbUserGroupsBases = query.ToList();
     621      }
     622
     623      foreach (var ugb in dbUserGroupsBases) {
     624        if (ugb.GetType() == typeof(DA.User)) {
     625          var user = BuildLightweightUserDto(ugb.Id);
     626          result.Add(user);
     627        } else if (ugb.GetType() == typeof(DA.UserGroup)) {
     628          var group = Convert.ToDto(ugb as DA.UserGroup);
     629          result.Add(group);
     630        }
     631      }
     632      return result;
     633    }
     634
     635    public IEnumerable<DT.UserGroupBase> GetLeightweightUsersAndGroups(IEnumerable<Guid> ids) {
     636      List<DA.UserGroupBase> dbUserGroupsBases = new List<DA.UserGroupBase>();
     637      List<DT.UserGroupBase> result = new List<DT.UserGroupBase>();
     638
     639      using (DA.ClientManagementDataContext context = new DA.ClientManagementDataContext()) {
     640        var query = from u in context.UserGroupBases
     641                    where ids.Contains(u.Id)
     642                    select u;
     643        dbUserGroupsBases = query.ToList();
     644      }
     645
     646      foreach (var ugb in dbUserGroupsBases) {
     647        if (ugb.GetType() == typeof(DA.User)) {
     648          var user = BuildLightweightUserDto(ugb.Id);
     649          result.Add(user);
     650        } else if (ugb.GetType() == typeof(DA.UserGroup)) {
     651          var group = Convert.ToDto(ugb as DA.UserGroup);
     652          result.Add(group);
     653        }
     654      }
     655      return result;
     656    }
     657    #endregion
     658
    591659    #region Roles
    592660    public IEnumerable<DT.Role> GetRoles() {
  • branches/ClientUserManagement/HeuristicLab.Services.Access/3.3/IAccessService.cs

    r7367 r7426  
    112112
    113113    [OperationContract]
     114    IEnumerable<LightweightUser> GetLightweightUsers(IEnumerable<Guid> ids);
     115
     116    [OperationContract]
    114117    IEnumerable<User> GetAllUsers();
    115118
     
    165168    [OperationContract]
    166169    IEnumerable<UserGroupBase> GetUsersAndGroups();
     170
     171    [OperationContract]
     172    IEnumerable<UserGroupBase> GetAllLeightweightUsersAndGroups();
     173
     174    [OperationContract]
     175    IEnumerable<UserGroupBase> GetLeightweightUsersAndGroups(IEnumerable<Guid> ids);
    167176    #endregion
    168177
Note: See TracChangeset for help on using the changeset viewer.