Skip to main content

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
TypeName
System.StringuserAuthId

GetPermissions(String)

View Source
Declaration
ICollection<string> GetPermissions(string userAuthId)
Returns

System.Collections.Generic.ICollection<System.String>

Parameters
TypeName
System.StringuserAuthId

GetRolesAndPermissions(String, out ICollection<String>, out ICollection<String>)

View Source
Declaration
void GetRolesAndPermissions(string userAuthId, out ICollection<string> roles, out ICollection<string> permissions)
Parameters
TypeName
System.StringuserAuthId
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
TypeName
System.StringuserAuthId
System.Stringrole

HasPermission(String, String)

View Source
Declaration
bool HasPermission(string userAuthId, string permission)
Returns

System.Boolean

Parameters
TypeName
System.StringuserAuthId
System.Stringpermission

AssignRoles(String, ICollection<String>, ICollection<String>)

View Source
Declaration
void AssignRoles(string userAuthId, ICollection<string> roles = null, ICollection<string> permissions = null)
Parameters
TypeName
System.StringuserAuthId
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
TypeName
System.StringuserAuthId
System.Collections.Generic.ICollection<System.String>roles
System.Collections.Generic.ICollection<System.String>permissions