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

This class contains all the methods which are related to user information
Inheritance: IUsersDetails
Mostrar archivo Open project: Microsoft/mattercenter

Private Properties

Property Type Description

Public Methods

Method Description
CheckUserFullPermission ( ClientContext clientContext, Matter matter ) : bool

Function to check user full permission on document library

CheckUserPresentInMatterCenter ( ClientContext clientContext, string email ) : bool

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

CheckUserPresentInMatterCenter ( string clientUrl, string email ) : bool

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

GetLoggedInUserDetails ( Client client ) : Users

Over loaded method

GetLoggedInUserDetails ( ClientContext clientContext ) : Users

This method will return the user object who has currently logged into the system

GetUserPrincipal ( Client client, Matter matter, IList userIds ) : Principal>>.List

Get the principal associated to the user

GetUserProfilePicture ( Client client ) : Task

This method will get user profile picture of the login user

IsLoginUserOwner ( Client client ) : bool

This method will check if the current login user is part of site owners group or not

ResolveUserNames ( Client client, IList userNames ) : IList

Bulk resolves the specified users.

ResolveUserNames ( ClientContext clientContext, IList userNames ) : IList

Gets the user access.

UsersDetails ( IOptions matterSettings, IOptions listNames, ISPOAuthorization spoAuthorization, ICustomLogger customLogger, IOptions logTables, IHttpContextAccessor httpContextAccessor, IOptions generalSettings ) : Microsoft.SharePoint.Client

Constructir where all the dependencies are injected

Method Details

CheckUserFullPermission() public method

Function to check user full permission on document library
public CheckUserFullPermission ( ClientContext clientContext, Matter matter ) : bool
clientContext ClientContext
matter Microsoft.Legal.MatterCenter.Models.Matter
return bool

CheckUserPresentInMatterCenter() public method

This method will check whether user exists in a sharepoint site or not
public CheckUserPresentInMatterCenter ( ClientContext clientContext, string email ) : bool
clientContext ClientContext
email string
return bool

CheckUserPresentInMatterCenter() public method

This method will check whether user exists in a sharepoint site or not
public CheckUserPresentInMatterCenter ( string clientUrl, string email ) : bool
clientUrl string
email string
return bool

GetLoggedInUserDetails() public method

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

GetLoggedInUserDetails() public method

This method will return the user object who has currently logged into the system
public GetLoggedInUserDetails ( ClientContext clientContext ) : Users
clientContext ClientContext
return Microsoft.Legal.MatterCenter.Models.Users

GetUserPrincipal() public method

Get the principal associated to the user
public GetUserPrincipal ( Client client, Matter matter, IList userIds ) : Principal>>.List
client Microsoft.Legal.MatterCenter.Models.Client
matter Microsoft.Legal.MatterCenter.Models.Matter Matter Information
userIds IList The userids for which we need to return the principals
return Principal>>.List

GetUserProfilePicture() public method

This method will get user profile picture of the login user
public GetUserProfilePicture ( Client client ) : Task
client Microsoft.Legal.MatterCenter.Models.Client
return Task

IsLoginUserOwner() public method

This method will check if the current login user is part of site owners group or not
public IsLoginUserOwner ( Client client ) : bool
client Microsoft.Legal.MatterCenter.Models.Client
return bool

ResolveUserNames() public method

Bulk resolves the specified users.
public ResolveUserNames ( Client client, IList userNames ) : IList
client Microsoft.Legal.MatterCenter.Models.Client
userNames IList Name of the users to be resolved
return IList

ResolveUserNames() public method

Gets the user access.
public ResolveUserNames ( ClientContext clientContext, IList userNames ) : IList
clientContext ClientContext
userNames IList
return IList

UsersDetails() public method

Constructir where all the dependencies are injected
public UsersDetails ( IOptions matterSettings, IOptions listNames, ISPOAuthorization spoAuthorization, ICustomLogger customLogger, IOptions logTables, IHttpContextAccessor httpContextAccessor, IOptions generalSettings ) : Microsoft.SharePoint.Client
matterSettings IOptions
listNames IOptions
spoAuthorization ISPOAuthorization
customLogger ICustomLogger
logTables IOptions
httpContextAccessor IHttpContextAccessor
generalSettings IOptions
return Microsoft.SharePoint.Client