C# Class Disco.Services.JobTableExtensions

Exibir arquivo Open project: garysharp/Disco

Public Methods

Method Description
DetermineItems ( this model, DiscoDataContext Database, IQueryable Jobs, bool FilterAuthorization ) : IEnumerable
Fill ( this model, DiscoDataContext Database, IQueryable Jobs, bool FilterAuthorization ) : JobTableModel
FilterPermissions ( this model, IQueryable Jobs, AuthorizationToken Authorization ) : IQueryable
JobLocationReferences ( this Items ) : IEnumerable
JobLocationReferences ( this Items, IEnumerable IncludeLocations ) : IEnumerable
MultiCampusModels ( this Model ) : JobTableModel>.IDictionary
PermissionsFiltered ( this Items, AuthorizationToken Authorization ) : IEnumerable
Score ( this model, string Test, double Fuzziness ) : JobTableModel
SlaPrecentageRemaining ( this queueItems ) : double?
UsersQueueItems ( this queueItems, AuthorizationToken Authorization ) : IEnumerable

Private Methods

Method Description
CloneEmptyJobTableModel ( JobTableModel Model ) : JobTableModel
FilterAllowedTypes ( AuthorizationToken Authorization ) : List

Method Details

DetermineItems() public static method

public static DetermineItems ( this model, DiscoDataContext Database, IQueryable Jobs, bool FilterAuthorization ) : IEnumerable
model this
Database Disco.Data.Repository.DiscoDataContext
Jobs IQueryable
FilterAuthorization bool
return IEnumerable

Fill() public static method

public static Fill ( this model, DiscoDataContext Database, IQueryable Jobs, bool FilterAuthorization ) : JobTableModel
model this
Database Disco.Data.Repository.DiscoDataContext
Jobs IQueryable
FilterAuthorization bool
return Disco.Models.Services.Jobs.JobLists.JobTableModel

FilterPermissions() public static method

public static FilterPermissions ( this model, IQueryable Jobs, AuthorizationToken Authorization ) : IQueryable
model this
Jobs IQueryable
Authorization Disco.Services.Authorization.AuthorizationToken
return IQueryable

JobLocationReferences() public static method

public static JobLocationReferences ( this Items ) : IEnumerable
Items this
return IEnumerable

JobLocationReferences() public static method

public static JobLocationReferences ( this Items, IEnumerable IncludeLocations ) : IEnumerable
Items this
IncludeLocations IEnumerable
return IEnumerable

MultiCampusModels() public static method

public static MultiCampusModels ( this Model ) : JobTableModel>.IDictionary
Model this
return JobTableModel>.IDictionary

PermissionsFiltered() public static method

public static PermissionsFiltered ( this Items, AuthorizationToken Authorization ) : IEnumerable
Items this
Authorization Disco.Services.Authorization.AuthorizationToken
return IEnumerable

Score() public static method

public static Score ( this model, string Test, double Fuzziness ) : JobTableModel
model this
Test string
Fuzziness double
return Disco.Models.Services.Jobs.JobLists.JobTableModel

SlaPrecentageRemaining() public static method

public static SlaPrecentageRemaining ( this queueItems ) : double?
queueItems this
return double?

UsersQueueItems() public static method

public static UsersQueueItems ( this queueItems, AuthorizationToken Authorization ) : IEnumerable
queueItems this
Authorization Disco.Services.Authorization.AuthorizationToken
return IEnumerable