Class RoleProvider
Assembly: DotNetNuke.dll
Syntax
public abstract class RoleProvider
Constructors
RoleProvider()
Declaration
Methods
AddUserToRole(int, UserInfo, UserRoleInfo)
Declaration
public abstract bool AddUserToRole(int portalId, UserInfo user, UserRoleInfo userRole)
Parameters
Returns
CreateRole(RoleInfo)
Declaration
public virtual bool CreateRole(RoleInfo role)
Parameters
Returns
CreateRoleGroup(RoleGroupInfo)
Declaration
public abstract int CreateRoleGroup(RoleGroupInfo roleGroup)
Parameters
Returns
DeleteRole(RoleInfo)
Declaration
public virtual void DeleteRole(RoleInfo role)
Parameters
DeleteRoleGroup(RoleGroupInfo)
Declaration
public abstract void DeleteRoleGroup(RoleGroupInfo roleGroup)
Parameters
GetRoleGroup(int, int)
Declaration
public abstract RoleGroupInfo GetRoleGroup(int portalId, int roleGroupId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
int |
roleGroupId |
|
Returns
GetRoleGroupByName(int, string)
Declaration
public virtual RoleGroupInfo GetRoleGroupByName(int portalID, string roleGroupName)
Parameters
Type |
Name |
Description |
int |
portalID |
|
string |
roleGroupName |
|
Returns
GetRoleGroups(int)
Declaration
public abstract ArrayList GetRoleGroups(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
GetRoleSettings(int)
Declaration
public virtual IDictionary<string, string> GetRoleSettings(int roleId)
Parameters
Type |
Name |
Description |
int |
roleId |
|
Returns
GetRoles(int)
Declaration
public abstract ArrayList GetRoles(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
GetRolesBasicSearch(int, int, string)
Declaration
public abstract IList<RoleInfo> GetRolesBasicSearch(int portalID, int pageSize, string filterBy)
Parameters
Type |
Name |
Description |
int |
portalID |
|
int |
pageSize |
|
string |
filterBy |
|
Returns
GetUserRole(int, int, int)
Declaration
public abstract UserRoleInfo GetUserRole(int portalId, int userId, int roleId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
int |
userId |
|
int |
roleId |
|
Returns
GetUserRoles(UserInfo, bool)
Declaration
public virtual IList<UserRoleInfo> GetUserRoles(UserInfo user, bool includePrivate)
Parameters
Returns
GetUserRoles(int, string, string)
Declaration
public abstract ArrayList GetUserRoles(int portalId, string username, string rolename)
Parameters
Returns
GetUsersByRoleName(int, string)
Declaration
public abstract ArrayList GetUsersByRoleName(int portalId, string roleName)
Parameters
Type |
Name |
Description |
int |
portalId |
|
string |
roleName |
|
Returns
Instance()
Declaration
public static RoleProvider Instance()
Returns
RemoveUserFromRole(int, UserInfo, UserRoleInfo)
Declaration
public abstract void RemoveUserFromRole(int portalId, UserInfo user, UserRoleInfo userRole)
Parameters
UpdateRole(RoleInfo)
Declaration
public abstract void UpdateRole(RoleInfo role)
Parameters
UpdateRoleGroup(RoleGroupInfo)
Declaration
public abstract void UpdateRoleGroup(RoleGroupInfo roleGroup)
Parameters
UpdateRoleSettings(RoleInfo)
Declaration
public virtual void UpdateRoleSettings(RoleInfo role)
Parameters
UpdateUserRole(UserRoleInfo)
Declaration
public abstract void UpdateUserRole(UserRoleInfo userRole)
Parameters
Extension Methods