Interface IRoleController
Assembly: DotNetNuke.dll
Syntax
public interface IRoleController
Methods
AddRole(RoleInfo)
Declaration
int AddRole(RoleInfo role)
Parameters
Returns
AddRole(RoleInfo, bool)
Declaration
int AddRole(RoleInfo role, bool addToExistUsers)
Parameters
Returns
AddUserRole(int, int, int, RoleStatus, bool, DateTime, DateTime)
Declaration
void AddUserRole(int portalId, int userId, int roleId, RoleStatus status, bool isOwner, DateTime effectiveDate, DateTime expiryDate)
Parameters
ClearRoleCache(int)
Declaration
void ClearRoleCache(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
DeleteRole(RoleInfo)
Declaration
void DeleteRole(RoleInfo role)
Parameters
GetRole(int, Func<RoleInfo, bool>)
Declaration
RoleInfo GetRole(int portalId, Func<RoleInfo, bool> predicate)
Parameters
Returns
GetRoleById(int, int)
Declaration
RoleInfo GetRoleById(int portalId, int roleId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
int |
roleId |
|
Returns
GetRoleByName(int, string)
Declaration
RoleInfo GetRoleByName(int portalId, string roleName)
Parameters
Type |
Name |
Description |
int |
portalId |
|
string |
roleName |
|
Returns
GetRoleSettings(int)
Declaration
IDictionary<string, string> GetRoleSettings(int roleId)
Parameters
Type |
Name |
Description |
int |
roleId |
|
Returns
GetRoles(int)
Declaration
IList<RoleInfo> GetRoles(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
Returns
GetRoles(int, Func<RoleInfo, bool>)
Declaration
IList<RoleInfo> GetRoles(int portalId, Func<RoleInfo, bool> predicate)
Parameters
Returns
GetRolesBasicSearch(int, int, string)
Declaration
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
UserRoleInfo GetUserRole(int portalId, int userId, int roleId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
int |
userId |
|
int |
roleId |
|
Returns
GetUserRoles(UserInfo, bool)
Declaration
IList<UserRoleInfo> GetUserRoles(UserInfo user, bool includePrivate)
Parameters
Returns
GetUserRoles(int, string, string)
Declaration
IList<UserRoleInfo> GetUserRoles(int portalId, string userName, string roleName)
Parameters
Returns
GetUsersByRole(int, string)
Declaration
IList<UserInfo> GetUsersByRole(int portalId, string roleName)
Parameters
Type |
Name |
Description |
int |
portalId |
|
string |
roleName |
|
Returns
UpdateRole(RoleInfo)
Declaration
void UpdateRole(RoleInfo role)
Parameters
UpdateRole(RoleInfo, bool)
Declaration
void UpdateRole(RoleInfo role, bool addToExistUsers)
Parameters
UpdateRoleSettings(RoleInfo, bool)
Declaration
void UpdateRoleSettings(RoleInfo role, bool clearCache)
Parameters
UpdateUserRole(int, int, int, RoleStatus, bool, bool)
Declaration
void UpdateUserRole(int portalId, int userId, int roleId, RoleStatus status, bool isOwner, bool cancel)
Parameters
Extension Methods