Method | Description | |
---|---|---|
Add ( |
||
Add ( |
||
AddHubUser ( |
||
AddRole ( string user, string application, string role ) : bool | ||
AddUserToRoles ( string userName, string Roles, string store, string application ) : void | ||
AssociateRoles ( string username ) : void | ||
Authenticate ( UserInfo info ) : bool | ||
Authenticate ( UserProfile userInfo ) : bool | ||
Authenticate ( string userName, string password ) : bool | ||
ChangePassword ( UserProfile userInfo, string password ) : bool | ||
ChangePassword ( int userId, string password ) : bool | ||
ChangePassword ( string userName, string password ) : bool | ||
Delete ( UserProfile entity ) : bool | ||
DeleteById ( int id ) : bool | ||
DisableAccount ( string userName ) : bool |
Flips/Reverts the status of a user account. If an account is active it will disable it but if it is already disabled then it will activiate it by setting its value to 'enabled'.
|
|
Dispose ( ) : void | ||
EditUserRole ( string owner, string userName, Dictionary |
||
EnableAccount ( string userName ) : bool | ||
FindBy ( bool>.Expression |
||
FindById ( int id ) : UserProfile | ||
GenerateString ( Random rng, int length ) : string | ||
GetAll ( ) : List |
||
GetApplications ( string store ) : List |
||
GetRoles ( string application ) : string[] |
Get all roles associated with the application provided
|
|
GetRolesList ( string application ) : List |
||
GetUserDetail ( int userId ) : UserProfile |
Returns the detail of a given user based on supplied UserId
|
|
GetUserDetail ( string userName ) : UserProfile |
Returns the detail of a given user based on supplied userName
|
|
GetUserInfo ( int userId ) : UserInfo | ||
GetUserInfo ( string userName ) : UserInfo |
Returns the user info based on supplied username
|
|
GetUserPermissions ( string UserName ) : List |
||
GetUserPermissions ( string userName, string store, string application ) : List |
||
GetUserPermissionsNotification ( string UserName ) : List |
||
GetUserPermissionsNotification ( string userName, string store, string application ) : List |
||
GetUserPreferences ( ) : List |
Gets list of all user preferences
|
|
GetUserRoles ( string username ) : string[] | ||
GetUsers ( ) : List |
||
HashPassword ( string password ) : string |
Encrypts a given string (password) using the SHA1 cryptography algorithm
|
|
RemoveRole ( string user, string application, string role ) : bool | ||
ResetPassword ( UserInfo userInfo ) : string | ||
ResetPassword ( string userName ) : string | ||
Save ( UserProfile entity ) : bool | ||
UpdateUser ( UserProfile entity ) : bool | ||
UserAccountService ( ) : System | ||
UserAccountService ( IUnitOfWork unitOfWork, IAzManStorage store, NetSqlAzManRoleProvider provider ) : System |
Method | Description | |
---|---|---|
CheckAccess ( IAzManDBUser dbUser, string app, string role, IAzManStorage storage ) : bool |
Retrive a complete Authorization for the current user and populate the string array from .NetSqlAzMan store
|
|
ConfigureAuthorizationRoleProvider ( string store, string application ) : System.Collections.Specialized.NameValueCollection | ||
ConfigureRoleProvider ( string store ) : System.Collections.Specialized.NameValueCollection | ||
GenerateChar ( Random rng ) : char |
public Add ( |
||
entity | ||
roles | Dictionary |
|
return | bool |
public Add ( |
||
entity | ||
store | string | |
application | string | |
return | bool |
public AddHubUser ( |
||
entity | ||
roles | Dictionary |
|
HubId | int | |
return | bool |
public AddRole ( string user, string application, string role ) : bool | ||
user | string | |
application | string | |
role | string | |
return | bool |
public AddUserToRoles ( string userName, string Roles, string store, string application ) : void | ||
userName | string | |
Roles | string | |
store | string | |
application | string | |
return | void |
public AssociateRoles ( string username ) : void | ||
username | string | |
return | void |
public Authenticate ( UserProfile userInfo ) : bool | ||
userInfo | UserProfile | |
return | bool |
public Authenticate ( string userName, string password ) : bool | ||
userName | string | |
password | string | |
return | bool |
public ChangePassword ( UserProfile userInfo, string password ) : bool | ||
userInfo | UserProfile | |
password | string | |
return | bool |
public ChangePassword ( int userId, string password ) : bool | ||
userId | int | |
password | string | |
return | bool |
public ChangePassword ( string userName, string password ) : bool | ||
userName | string | |
password | string | |
return | bool |
public DisableAccount ( string userName ) : bool | ||
userName | string | The account to enable/disable |
return | bool |
public EditUserRole ( string owner, string userName, Dictionary |
||
owner | string | |
userName | string | |
applications | Dictionary |
|
return | void |
public EnableAccount ( string userName ) : bool | ||
userName | string | |
return | bool |
public FindBy ( bool>.Expression |
||
predicate | bool>.Expression | |
return | List |
public GenerateString ( Random rng, int length ) : string | ||
rng | Random | |
length | int | |
return | string |
public GetApplications ( string store ) : List |
||
store | string | |
return | List |
public GetRoles ( string application ) : string[] | ||
application | string | The application name |
return | string[] |
public GetRolesList ( string application ) : List |
||
application | string | |
return | List |
public GetUserDetail ( int userId ) : UserProfile | ||
userId | int | Unique id identifying the user |
return | UserProfile |
public GetUserDetail ( string userName ) : UserProfile | ||
userName | string | User name identifying the user |
return | UserProfile |
public GetUserInfo ( string userName ) : UserInfo | ||
userName | string | User name identifying the user |
return | UserInfo |
public GetUserPermissions ( string UserName ) : List |
||
UserName | string | |
return | List |
public GetUserPermissions ( string userName, string store, string application ) : List |
||
userName | string | |
store | string | |
application | string | |
return | List |
public GetUserPermissionsNotification ( string UserName ) : List |
||
UserName | string | |
return | List |
public GetUserPermissionsNotification ( string userName, string store, string application ) : List |
||
userName | string | |
store | string | |
application | string | |
return | List |
public GetUserRoles ( string username ) : string[] | ||
username | string | |
return | string[] |
public HashPassword ( string password ) : string | ||
password | string | string (passowrd) to encrypt |
return | string |
public RemoveRole ( string user, string application, string role ) : bool | ||
user | string | |
application | string | |
role | string | |
return | bool |
public ResetPassword ( UserInfo userInfo ) : string | ||
userInfo | UserInfo | |
return | string |
public ResetPassword ( string userName ) : string | ||
userName | string | |
return | string |
public UpdateUser ( UserProfile entity ) : bool | ||
entity | UserProfile | |
return | bool |
public UserAccountService ( IUnitOfWork unitOfWork, IAzManStorage store, NetSqlAzManRoleProvider provider ) : System | ||
unitOfWork | IUnitOfWork | |
store | IAzManStorage | |
provider | NetSqlAzManRoleProvider | |
return | System |