Interface IAccessResolver
Assembly: Estrelica.Interfaces.dll
Syntax
[StayPublic]
[DoNotObfuscateType]
public interface IAccessResolver : IUserProvider, ICacheProvider
Properties
Declaration
IEnumerable<IArcherGroup> AllGroups { get; }
Property Value
Declaration
IEnumerable<IArcherRole> AllRoles { get; }
Property Value
Declaration
IEnumerable<ISecurityParameter> AllSecurityParameters { get; }
Property Value
Declaration
IEnumerable<IArcherUser> AllUsers { get; }
Property Value
Declaration
IArcherUser CurrentUser { get; }
Property Value
Methods
Declaration
IEnumerable<int> ChildGroupIdsForGroup(int groupId, bool throwExceptionIfInvalid = true)
Parameters
int
groupId
|
bool
throwExceptionIfInvalid
|
Returns
Declaration
IArcherGroup CreateGroup(string groupName, string description = null, IEnumerable<int> parentGroupIds = null, IEnumerable<int> childGroupIds = null, IEnumerable<int> userIds = null)
Parameters
Returns
Declaration
IArcherRole CreateRole(string roleName, string description = null, string alias = null, IEnumerable<int> groupIds = null, IEnumerable<int> userIds = null, bool isDefault = false)
Parameters
Returns
Creates a new Archer user, returning it as an IArcherUser
Declaration
IArcherUser CreateUser(string firstName, string lastName, string password, string middleName = null, string username = null, int? domainId = null, int? languageId = null, string timezone = null, bool forcePasswordChange = false, AccountStatus accountStatus = AccountStatus.Active, int securityParameterId = 1, IEnumerable<int> groupIds = null, IEnumerable<int> roleIds = null)
Parameters
Returns
Declaration
bool Delete(IArcherGroup group)
Parameters
Returns
Declaration
bool Delete(IArcherRole role)
Parameters
Returns
Declaration
bool Delete(IArcherUser user)
Parameters
Returns
Declaration
bool Delete(IEditableArcherEntity item)
Parameters
Returns
Declaration
bool DeleteGroup(int groupId)
Parameters
Returns
Declaration
bool DeleteRole(int roleId)
Parameters
Returns
Declaration
bool DeleteUser(int userId)
Parameters
Returns
Declaration
IArcherGroup GroupByAlias(string groupAlias, bool throwExceptionIfInvalid = true)
Parameters
Returns
Declaration
IArcherGroup GroupByGuid(Guid groupGuid, bool throwExceptionIfInvalid = true)
Parameters
Guid
groupGuid
|
bool
throwExceptionIfInvalid
|
Returns
Declaration
IArcherGroup GroupById(int groupId, bool throwExceptionIfInvalid = true)
Parameters
int
groupId
|
bool
throwExceptionIfInvalid
|
Returns
Declaration
IArcherGroup GroupByName(string groupName, bool throwExceptionIfInvalid = true)
Parameters
Returns
Declaration
IEnumerable<int> GroupIdsForUser(int userId, bool throwExceptionIfInvalid = true)
Parameters
int
userId
|
bool
throwExceptionIfInvalid
|
Returns
Declaration
IEnumerable<int> ParentGroupIdsForGroup(int groupId, bool throwExceptionIfInvalid = true)
Parameters
int
groupId
|
bool
throwExceptionIfInvalid
|
Returns
Declaration
IArcherRole RoleById(int roleId, bool throwExceptionIfInvalid = true)
Parameters
int
roleId
|
bool
throwExceptionIfInvalid
|
Returns
Declaration
IArcherRole RoleByName(string roleName, bool throwExceptionIfInvalid = true)
Parameters
Returns
Declaration
ISecurityParameter SecurityParameterById(int securityParameterId, bool throwExceptionIfInvalid = true)
Parameters
int
securityParameterId
|
bool
throwExceptionIfInvalid
|
Returns
Declaration
IArcherGroup Update(IArcherGroupEdit item)
Parameters
Returns
Declaration
IArcherRole Update(IArcherRoleEdit item)
Parameters
Returns
Declaration
IArcherUser Update(IArcherUserEdit item)
Parameters
Returns
Declaration
IArcherUser UserByUsername(string userName, bool throwExceptionIfInvalid = true)
Parameters
Returns
Declaration
IArcherUser UserByUsername(string userName, string userDomain, bool throwExceptionIfInvalid = true)
Parameters
Returns
Declaration
IEnumerable<int> UserIdsForGroup(int groupId, bool throwExceptionIfInvalid = true)
Parameters
int
groupId
|
bool
throwExceptionIfInvalid
|
Returns
Declaration
string UsernameForUserId(int userId, bool throwExceptionIfInvalid = true)
Parameters
int
userId
|
bool
throwExceptionIfInvalid
|
Returns
Extension Methods