Method | Description | |
---|---|---|
CanCurrentUserManageTeams ( ) : bool | ||
CreateUserAndAccount ( string email, string password, System.DateTime created ) : void | ||
GetCurrentUser ( ) : User | ||
GetPowerUserRoleForTeam ( Team team ) : string | ||
GetRolesForCurrentUser ( ) : IEnumerable |
||
GetUser ( string userName ) : User | ||
IsCurrentUserAdministrator ( ) : bool | ||
IsCurrentUserAdministratorOrPowerUser ( ) : bool | ||
IsCurrentUserAdministratorOrPowerUser ( int teamId ) : bool | ||
IsCurrentUserPowerUser ( ) : bool | ||
IsLoggedIn ( ) : bool | ||
ResetPassword ( string email, string urlAddress ) : void | ||
SecurityService ( IEventBookingContext context, IEmailService emailService ) : System | ||
SetPassword ( string token, string password ) : void | ||
SignIn ( string userName, string password ) : bool | ||
SignOff ( ) : void | ||
ToogleAdministrator ( int userId ) : bool | ||
ToogleTeamPowerUser ( int userId, int teamId ) : bool |
Method | Description | |
---|---|---|
GetTeamOrThrow ( int teamId ) : Team | ||
GetUserOrThrow ( int userId ) : User |
public CreateUserAndAccount ( string email, string password, System.DateTime created ) : void | ||
string | ||
password | string | |
created | System.DateTime | |
return | void |
public GetPowerUserRoleForTeam ( Team team ) : string | ||
team | Team | |
return | string |
public GetRolesForCurrentUser ( ) : IEnumerable |
||
return | IEnumerable |
public IsCurrentUserAdministratorOrPowerUser ( ) : bool | ||
return | bool |
public IsCurrentUserAdministratorOrPowerUser ( int teamId ) : bool | ||
teamId | int | |
return | bool |
public ResetPassword ( string email, string urlAddress ) : void | ||
string | ||
urlAddress | string | |
return | void |
public SecurityService ( IEventBookingContext context, IEmailService emailService ) : System | ||
context | IEventBookingContext | |
emailService | IEmailService | |
return | System |
public SetPassword ( string token, string password ) : void | ||
token | string | |
password | string | |
return | void |
public SignIn ( string userName, string password ) : bool | ||
userName | string | |
password | string | |
return | bool |
public ToogleAdministrator ( int userId ) : bool | ||
userId | int | |
return | bool |
public ToogleTeamPowerUser ( int userId, int teamId ) : bool | ||
userId | int | |
teamId | int | |
return | bool |