IManageRoles
Assembly: ServiceStack.dll
View Source
Declaration
public interface IManageRoles
Methods
GetRoles(String)
View Source
Declaration
ICollection<string> GetRoles(string userAuthId)
Returns
System.Collections.Generic.ICollection<System.String>
Parameters
Type | Name |
---|---|
System.String | userAuthId |
GetPermissions(String)
View Source
Declaration
ICollection<string> GetPermissions(string userAuthId)
Returns
System.Collections.Generic.ICollection<System.String>
Parameters
Type | Name |
---|---|
System.String | userAuthId |
GetRolesAndPermissions(String, out ICollection<String>, out ICollection<String>)
View Source
Declaration
void GetRolesAndPermissions(string userAuthId, out ICollection<string> roles, out ICollection<string> permissions)
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.Collections.Generic.ICollection<System.String> | roles |
System.Collections.Generic.ICollection<System.String> | permissions |
HasRole(String, String)
View Source
Declaration
bool HasRole(string userAuthId, string role)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.String | role |
HasPermission(String, String)
View Source
Declaration
bool HasPermission(string userAuthId, string permission)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.String | permission |
AssignRoles(String, ICollection<String>, ICollection<String>)
View Source
Declaration
void AssignRoles(string userAuthId, ICollection<string> roles = null, ICollection<string> permissions = null)
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.Collections.Generic.ICollection<System.String> | roles |
System.Collections.Generic.ICollection<System.String> | permissions |
UnAssignRoles(String, ICollection<String>, ICollection<String>)
View Source
Declaration
void UnAssignRoles(string userAuthId, ICollection<string> roles = null, ICollection<string> permissions = null)
Parameters
Type | Name |
---|---|
System.String | userAuthId |
System.Collections.Generic.ICollection<System.String> | roles |
System.Collections.Generic.ICollection<System.String> | permissions |