Ignore:
Timestamp:
12/11/08 16:50:12 (12 years ago)
Author:
svonolfe
Message:

Added Job Adapter (#372)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/UserGroupAdapter.cs

    r965 r971  
    248248    }
    249249
     250    public UserGroup GetUserGroupByName(string name) {
     251      UserGroup group = new UserGroup();
     252
     253      PermissionOwner permOwner =
     254        PermOwnerAdapter.GetPermissionOwnerByName(name);
     255
     256      if (permOwner != null) {
     257        dsHiveServer.UserGroupRow row =
     258          data.FindByPermissionOwnerId(permOwner.PermissionOwnerId);
     259
     260        if (row != null) {
     261          Convert(row, group);
     262
     263          return group;
     264        }
     265      }
     266
     267      return null;
     268    }
     269
    250270    public ICollection<UserGroup> GetAllUserGroups() {
    251271      ICollection<UserGroup> allUserGroups =
Note: See TracChangeset for help on using the changeset viewer.