C# Class Catbert4.Services.UserManagement.RoleService

Inheritance: IRoleService
显示文件 Open project: ucdavis/Catbert Class Usage Examples

Public Methods

Method Description
GetManagementRolesForUserInApplication ( string application, string login ) : List

Return what kind of user management permissions the given user has in the application.

GetVisibleByUser ( string application, string login ) : IQueryable
RoleService ( IRepository permissionRepository, IRepository applicationRoleRepository ) : System.Collections.Generic

Private Methods

Method Description
GetManageableApplicationRoles ( string application, string login ) : IQueryable

Get all of the additionally manageable roles that the user has. This is found by taking the largest role level the user has and then finding all roles above that level.

GetRolesForUser ( string application, string login ) : IQueryable

Method Details

GetManagementRolesForUserInApplication() public method

Return what kind of user management permissions the given user has in the application.
public GetManagementRolesForUserInApplication ( string application, string login ) : List
application string
login string
return List

GetVisibleByUser() public method

public GetVisibleByUser ( string application, string login ) : IQueryable
application string
login string
return IQueryable

RoleService() public method

public RoleService ( IRepository permissionRepository, IRepository applicationRoleRepository ) : System.Collections.Generic
permissionRepository IRepository
applicationRoleRepository IRepository
return System.Collections.Generic