Table of Contents

Class CourseCatalogSearch

Namespace
InSite.Persistence
Assembly
InSite.Persistence.dll
public class CourseCatalogSearch
Inheritance
CourseCatalogSearch
Inherited Members

Constructors

CourseCatalogSearch(Guid, Guid?, Guid[], bool)

public CourseCatalogSearch(Guid organization, Guid? catalog, Guid[] groups, bool viewEntireCatalog)

Parameters

organization Guid
catalog Guid?
groups Guid[]
viewEntireCatalog bool

Fields

PageSize

public const int PageSize = 24

Field Value

int

Properties

Catalogs

public List<CatalogMenu> Catalogs { get; set; }

Property Value

List<CatalogMenu>

ItemCount

public int ItemCount { get; set; }

Property Value

int

Items

public List<CourseCatalogItem> Items { get; set; }

Property Value

List<CourseCatalogItem>

Organizations

public List<CourseCatalogOrganization> Organizations { get; set; }

Property Value

List<CourseCatalogOrganization>

PageCount

public int PageCount { get; set; }

Property Value

int

Methods

ApplyFilter(string, CatalogItemFilter, string, int)

public List<CourseCatalogItem> ApplyFilter(string keyword, CatalogItemFilter filter, string sort, int page)

Parameters

keyword string
filter CatalogItemFilter
sort string
page int

Returns

List<CourseCatalogItem>

CreatePages(int, int)

public PaginationItem[] CreatePages(int current, int count)

Parameters

current int
count int

Returns

PaginationItem[]

FindCatalog(Guid?, string, bool)

public CatalogMenu FindCatalog(Guid? catalogId, string category, bool skipCategory)

Parameters

catalogId Guid?
category string
skipCategory bool

Returns

CatalogMenu

GetCatalogId(string)

public Guid? GetCatalogId(string catalogName)

Parameters

catalogName string

Returns

Guid?

Refresh(CatalogItemFilter)

public void Refresh(CatalogItemFilter filter)

Parameters

filter CatalogItemFilter