Class GlobalRoleHelper
Inheritance
System.Object
GlobalRoleHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Core
Assembly: ImageVault.Core.dll
Syntax
public class GlobalRoleHelper
Constructors
GlobalRoleHelper(IList<DbGlobalRoleIdentity>, IList<DbVaultAccess>)
Declaration
public GlobalRoleHelper(IList<DbGlobalRoleIdentity> globalRoleIdentities, IList<DbVaultAccess> vaultAccess)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<DbGlobalRoleIdentity> | globalRoleIdentities | |
System.Collections.Generic.IList<DbVaultAccess> | vaultAccess |
Methods
GetRolesForUser(IUser)
Declaration
public GlobalRoles GetRolesForUser(IUser user)
Parameters
Type | Name | Description |
---|---|---|
IUser | user |
Returns
Type | Description |
---|---|
GlobalRoles |
GetVaultRolesForUser(IUser, VaultRoles)
Declaration
public IDictionary<int, VaultRoles> GetVaultRolesForUser(IUser user, VaultRoles minimumRole)
Parameters
Type | Name | Description |
---|---|---|
IUser | user | |
VaultRoles | minimumRole |
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Int32, VaultRoles> |
GetVaultRolesForUser(IUser, Int32)
Declaration
public VaultRoles GetVaultRolesForUser(IUser user, int vaultId)
Parameters
Type | Name | Description |
---|---|---|
IUser | user | |
System.Int32 | vaultId |
Returns
Type | Description |
---|---|
VaultRoles |
Reset(IList<DbGlobalRoleIdentity>)
Declaration
public void Reset(IList<DbGlobalRoleIdentity> list)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<DbGlobalRoleIdentity> | list |
Reset(IList<DbVaultAccess>)
Declaration
public void Reset(IList<DbVaultAccess> list)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<DbVaultAccess> | list |