C# Class Microsoft.Research.DataOnboarding.Services.UserService.UserServiceProvider

This class provides implementation to the IUserService interface.
Inheritance: IUserService
Mostra file Open project: CDLUC3/dataup2 Class Usage Examples

Public Methods

Method Description
AddUpdateAuthToken ( AuthToken userAuthToken ) : AuthToken

Adds or updates AuthToken for the particulat user and repository

GetAuthTokenStatus ( int userId, int repositoryId ) : UserAuthTokenStatusModel

Returns if the redirection required or not by checking the AuthTokens in the database

GetUserAuthToken ( int userId, int repositoryId ) : AuthToken

Gets the AuthToken

GetUserById ( int userId ) : Microsoft.Research.DataOnboarding.DomainModel.User
GetUserWithRolesByNameIdentifier ( string nameIdentifier ) : Microsoft.Research.DataOnboarding.DomainModel.User

Returns User

UserServiceProvider ( IUserRepository userRepository, IUnitOfWork unitOfWork ) : Microsoft.Research.DataOnboarding.DataAccessService
UserServiceProvider ( IUserRepository userRepository, IUnitOfWork unitOfWork, IRepositoryDetails repositoryDetails ) : Microsoft.Research.DataOnboarding.DataAccessService

Private Methods

Method Description
RegisterUser ( Microsoft.Research.DataOnboarding.DomainModel.User user ) : Microsoft.Research.DataOnboarding.DomainModel.User

Method Details

AddUpdateAuthToken() public method

Adds or updates AuthToken for the particulat user and repository
public AddUpdateAuthToken ( AuthToken userAuthToken ) : AuthToken
userAuthToken Microsoft.Research.DataOnboarding.DomainModel.AuthToken AuthToken to be updated or added
return Microsoft.Research.DataOnboarding.DomainModel.AuthToken

GetAuthTokenStatus() public method

Returns if the redirection required or not by checking the AuthTokens in the database
public GetAuthTokenStatus ( int userId, int repositoryId ) : UserAuthTokenStatusModel
userId int User Id
repositoryId int Repository Id
return Microsoft.Research.DataOnboarding.Utilities.Model.UserAuthTokenStatusModel

GetUserAuthToken() public method

Gets the AuthToken
public GetUserAuthToken ( int userId, int repositoryId ) : AuthToken
userId int User Id
repositoryId int Repository Id
return Microsoft.Research.DataOnboarding.DomainModel.AuthToken

GetUserById() public method

public GetUserById ( int userId ) : Microsoft.Research.DataOnboarding.DomainModel.User
userId int
return Microsoft.Research.DataOnboarding.DomainModel.User

GetUserWithRolesByNameIdentifier() public method

Returns User
public GetUserWithRolesByNameIdentifier ( string nameIdentifier ) : Microsoft.Research.DataOnboarding.DomainModel.User
nameIdentifier string NameIndentifier of the user
return Microsoft.Research.DataOnboarding.DomainModel.User

UserServiceProvider() public method

public UserServiceProvider ( IUserRepository userRepository, IUnitOfWork unitOfWork ) : Microsoft.Research.DataOnboarding.DataAccessService
userRepository IUserRepository
unitOfWork IUnitOfWork
return Microsoft.Research.DataOnboarding.DataAccessService

UserServiceProvider() public method

public UserServiceProvider ( IUserRepository userRepository, IUnitOfWork unitOfWork, IRepositoryDetails repositoryDetails ) : Microsoft.Research.DataOnboarding.DataAccessService
userRepository IUserRepository
unitOfWork IUnitOfWork
repositoryDetails IRepositoryDetails
return Microsoft.Research.DataOnboarding.DataAccessService