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
AssignRoles(String[], String[])
Declaration
void AssignRoles(string[] usernames, string[] roleNames)
Parameters
Type |
Name |
Description |
System.String[] |
usernames |
|
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
DissociateRoles(String[], String[])
Declaration
void DissociateRoles(string[] usernames, string[] roleNames)
Parameters
Type |
Name |
Description |
System.String[] |
usernames |
|
System.String[] |
roleNames |
|
View Source
Get(Guid)
Gets a member group by it's uniqueId
Declaration
IMemberGroup Get(Guid uniqueId)
Parameters
Type |
Name |
Description |
System.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
Type |
Description |
System.Collections.Generic.IEnumerable<IMemberGroup> |
|
View Source
Returns the member groups for a given member
Declaration
IEnumerable<IMemberGroup> GetMemberGroupsForMember(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IMemberGroup> |
|
View Source
GetMemberIds(String[])
Declaration
int[] GetMemberIds(string[] names)
Parameters
Type |
Name |
Description |
System.String[] |
names |
|
Returns
Type |
Description |
System.Int32[] |
|