View Source
Interface IMemberGroupRepository
Assembly: Umbraco.Core.dll
Syntax
public interface IMemberGroupRepository : IReadWriteQueryRepository<int, IMemberGroup>, IReadRepository<int, IMemberGroup>, IWriteRepository<IMemberGroup>, IQueryRepository<IMemberGroup>, IRepository
Methods
View Source
AssignRoles(Int32[], String[])
Declaration
void AssignRoles(int[] memberIds, string[] roleNames)
Parameters
Type |
Name |
Description |
System.Int32[] |
memberIds |
|
System.String[] |
roleNames |
|
View Source
CreateIfNotExists(String)
Creates the new member group if it doesn't already exist
Declaration
IMemberGroup CreateIfNotExists(string roleName)
Parameters
Type |
Name |
Description |
System.String |
roleName |
|
Returns
View Source
DissociateRoles(Int32[], String[])
Declaration
void DissociateRoles(int[] memberIds, string[] roleNames)
Parameters
Type |
Name |
Description |
System.Int32[] |
memberIds |
|
System.String[] |
roleNames |
|
View Source
Get(Guid)
Gets a member group by it's uniqueId
Declaration
IMemberGroup Get(Guid uniqueId)
Parameters
Type |
Name |
Description |
Guid |
uniqueId |
|
Returns
View Source
GetByName(String)
Gets a member group by it's name
Declaration
IMemberGroup GetByName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
View Source
Returns the member groups for a given member
Declaration
IEnumerable<IMemberGroup> GetMemberGroupsForMember(int memberId)
Parameters
Type |
Name |
Description |
System.Int32 |
memberId |
|
Returns
View Source
Returns the member groups for a given member
Declaration
IEnumerable<IMemberGroup> GetMemberGroupsForMember(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
|
Returns
View Source
ReplaceRoles(Int32[], String[])
Declaration
void ReplaceRoles(int[] memberIds, string[] roleNames)
Parameters
Type |
Name |
Description |
System.Int32[] |
memberIds |
|
System.String[] |
roleNames |
|