C# Class Microsoft.Legal.MatterCenter.Repository.UserRepository

Inheritance: IUserRepository
ファイルを表示 Open project: Microsoft/mattercenter

Public Methods

Method Description
CheckUserPresentInMatterCenter ( Client client ) : bool

This method will check whether user exists in a sharepoint site or not

GetLoggedInUserDetails ( Client client ) : Users

GetLoggedInUserDetails ( ClientContext clientContext ) : Users

GetPermissionLevelsAsync ( Client client ) : Task>

This method will get all permissions levels that are configured for a given site collection

GetRolesAsync ( Client client ) : Task>

Thios method will get all roles such as attorney journal etc which are configured in the catalog site collection

GetUserProfilePicture ( Client client ) : Users

GetUsersAsync ( SearchRequestVM searchRequestVM ) : Task>

IsLoginUserOwner ( Client client ) : bool

This method will check whether login user is part of owner group or not

UserRepository ( IUsersDetails userDetails, ISPList spList, IOptions listNames, IOptions camlQueries, IOptions matterSettings, ISearch search ) : Microsoft.Extensions.Options

Method Details

CheckUserPresentInMatterCenter() public method

This method will check whether user exists in a sharepoint site or not
public CheckUserPresentInMatterCenter ( Client client ) : bool
client Microsoft.Legal.MatterCenter.Models.Client
return bool

GetLoggedInUserDetails() public method

public GetLoggedInUserDetails ( Client client ) : Users
client Microsoft.Legal.MatterCenter.Models.Client
return Microsoft.Legal.MatterCenter.Models.Users

GetLoggedInUserDetails() public method

public GetLoggedInUserDetails ( ClientContext clientContext ) : Users
clientContext ClientContext
return Microsoft.Legal.MatterCenter.Models.Users

GetPermissionLevelsAsync() public method

This method will get all permissions levels that are configured for a given site collection
public GetPermissionLevelsAsync ( Client client ) : Task>
client Microsoft.Legal.MatterCenter.Models.Client
return Task>

GetRolesAsync() public method

Thios method will get all roles such as attorney journal etc which are configured in the catalog site collection
public GetRolesAsync ( Client client ) : Task>
client Microsoft.Legal.MatterCenter.Models.Client
return Task>

GetUserProfilePicture() public method

public GetUserProfilePicture ( Client client ) : Users
client Microsoft.Legal.MatterCenter.Models.Client
return Microsoft.Legal.MatterCenter.Models.Users

GetUsersAsync() public method

public GetUsersAsync ( SearchRequestVM searchRequestVM ) : Task>
searchRequestVM Microsoft.Legal.MatterCenter.Models.SearchRequestVM
return Task>

IsLoginUserOwner() public method

This method will check whether login user is part of owner group or not
public IsLoginUserOwner ( Client client ) : bool
client Microsoft.Legal.MatterCenter.Models.Client
return bool

UserRepository() public method

public UserRepository ( IUsersDetails userDetails, ISPList spList, IOptions listNames, IOptions camlQueries, IOptions matterSettings, ISearch search ) : Microsoft.Extensions.Options
userDetails IUsersDetails
spList ISPList
listNames IOptions
camlQueries IOptions
matterSettings IOptions
search ISearch
return Microsoft.Extensions.Options