* Amended nullability of base Deploy classes.
* Ensured ContentItemDisplay.Variants is non-nullable.
* Set IArtifactSignature.Dependencies to be non-nullable.
* Update template collection retrieval to be non-nullable.
* IMediaService.GetRootMedia to be non-nullable.
* Non-nullable collection for IMemberService.GetMembersByMemberType.
* Non-nullable collection for member role retrieval.
* Non-nullable collection for root dictionary items.
* Non-nullable collection for child dictionary items.
* Applied suggestions from code review
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
* Remove extra dot
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
(cherry picked from commit 63b77b7743)
53 lines
1.5 KiB
C#
53 lines
1.5 KiB
C#
using System.Collections.Generic;
|
|
using Umbraco.Cms.Core.Models;
|
|
using Umbraco.Cms.Core.Models.Membership;
|
|
using Umbraco.Cms.Core.Persistence.Querying;
|
|
|
|
namespace Umbraco.Cms.Core.Services
|
|
{
|
|
public interface IMembershipRoleService<out T>
|
|
where T : class, IMembershipUser
|
|
{
|
|
void AddRole(string roleName);
|
|
|
|
IEnumerable<IMemberGroup> GetAllRoles();
|
|
|
|
IEnumerable<string> GetAllRoles(int memberId);
|
|
|
|
IEnumerable<string> GetAllRoles(string username);
|
|
|
|
IEnumerable<int> GetAllRolesIds();
|
|
|
|
IEnumerable<int> GetAllRolesIds(int memberId);
|
|
|
|
IEnumerable<int> GetAllRolesIds(string username);
|
|
|
|
IEnumerable<T> GetMembersInRole(string roleName);
|
|
|
|
IEnumerable<T> FindMembersInRole(string roleName, string usernameToMatch, StringPropertyMatchType matchType = StringPropertyMatchType.StartsWith);
|
|
|
|
bool DeleteRole(string roleName, bool throwIfBeingUsed);
|
|
|
|
void AssignRole(string username, string roleName);
|
|
|
|
void AssignRoles(string[] usernames, string[] roleNames);
|
|
|
|
void DissociateRole(string username, string roleName);
|
|
|
|
void DissociateRoles(string[] usernames, string[] roleNames);
|
|
|
|
void AssignRole(int memberId, string roleName);
|
|
|
|
void AssignRoles(int[] memberIds, string[] roleNames);
|
|
|
|
void DissociateRole(int memberId, string roleName);
|
|
|
|
void DissociateRoles(int[] memberIds, string[] roleNames);
|
|
|
|
void ReplaceRoles(string[] usernames, string[] roleNames);
|
|
|
|
void ReplaceRoles(int[] memberIds, string[] roleNames);
|
|
|
|
}
|
|
}
|