Class BaseObjectListDAL<TList, TListType>
The base DAL for security/object lists.
Inheritance
System.Object
BaseObjectListDAL<TList, TListType>
Implements
IBaseObjectListDAL<TList, TListType>
Namespace: Microsoft.GNS.Roster.DataAccess
Assembly: Microsoft.GNS.Roster.DataAccess.dll
Syntax
public class BaseObjectListDAL<TList, TListType> : object, IBaseObjectListDAL<TList, TListType> where TList : class, IObjectRefList<TListType>
Type Parameters
Name | Description |
---|---|
TList | |
TListType |
Constructors
View SourceBaseObjectListDAL(IDocumentStore)
Initializes a new instance of the BaseObjectListDAL<TList, TListType> class.
Declaration
public BaseObjectListDAL(IDocumentStore docStore)
Parameters
Type | Name | Description |
---|---|---|
IDocumentStore | docStore |
Methods
View SourceDeleteObjectListsForParentAsync(Guid, String, Scope)
Deletes object lists for a given parent.
Declaration
public async Task DeleteObjectListsForParentAsync(Guid parentId, string listContainerName, Scope scope)
Parameters
Type | Name | Description |
---|---|---|
Guid | parentId | The parent object Id in which to delete object lists. |
System.String | listContainerName | The list type container. |
Scope | scope | The scope of the object list parent. |
Returns
Type | Description |
---|---|
Task | A task representing the work to delete an object list. |
GetObjectListAsync(Guid, String, String, Scope)
Gets an object list.
Declaration
public async Task<TList> GetObjectListAsync(Guid parentId, string name, string listContainerName, Scope scope)
Parameters
Type | Name | Description |
---|---|---|
Guid | parentId | The Id of the parent this list belongs to. |
System.String | name | The property name of the list in the parent object. |
System.String | listContainerName | The list type container. |
Scope | scope | The Roster scope. |
Returns
Type | Description |
---|---|
Task<TList> | An object that represents a permission entity list. |
SaveObjectListAsync(TList)
Saves an object list.
Declaration
public async Task<TList> SaveObjectListAsync(TList list)
Parameters
Type | Name | Description |
---|---|---|
TList | list | The list to save. |
Returns
Type | Description |
---|---|
Task<TList> | The saved list. |