C# Class FSNEP.Controllers.UserAdministrationController

Inheritance: ApplicationController
Mostrar archivo Open project: ucdavis/FSNEP

Public Properties

Property Type Description
MessageGateway IMessageGateway
UserBLL IUserBLL

Public Methods

Method Description
Create ( ) : System.Web.Mvc.ActionResult

Create the User View Model

Emulate ( string id ) : void
Modify ( string id ) : System.Web.Mvc.ActionResult

Returns the user object indentified by the given userid. If there is no user, return just the other information needed for creating a new user.

ModifyById ( System.Guid id ) : System.Web.Mvc.ActionResult

Maps the guid user ident to a username ident

UserAdministrationController ( IUserBLL userBLL, IMessageGateway messageGateway ) : System

Private Methods

Method Description
Create ( CreateUserViewModel model, List roleList ) : System.Web.Mvc.ActionResult
EnsureProperRoles ( ICollection roles, User user ) : void

Bus. rules: If the fundtype starts with State, the user much have the timesheet role. If the user has subordinates, they must be a supervisor

List ( int projectId ) : System.Web.Mvc.ActionResult
Modify ( User user, List roleList, string id ) : System.Web.Mvc.ActionResult
ResetPassword ( string id ) : System.Web.Mvc.RedirectToRouteResult
TransferValuesTo ( User userToUpdate, User user ) : void

Method Details

Create() public method

Create the User View Model
public Create ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Emulate() public method

public Emulate ( string id ) : void
id string
return void

Modify() public method

Returns the user object indentified by the given userid. If there is no user, return just the other information needed for creating a new user.
public Modify ( string id ) : System.Web.Mvc.ActionResult
id string the userid/username
return System.Web.Mvc.ActionResult

ModifyById() public method

Maps the guid user ident to a username ident
public ModifyById ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid
return System.Web.Mvc.ActionResult

UserAdministrationController() public method

public UserAdministrationController ( IUserBLL userBLL, IMessageGateway messageGateway ) : System
userBLL IUserBLL
messageGateway IMessageGateway
return System

Property Details

MessageGateway public_oe property

public IMessageGateway MessageGateway
return IMessageGateway

UserBLL public_oe property

public IUserBLL UserBLL
return IUserBLL