KlusterKite
0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
|
The User management More...
Public Member Functions | |
UsersConnection (ActorSystem actorSystem, string dataActorPath, TimeSpan? timeout, RequestContext context) | |
Initializes a new instance of the UsersConnection class. More... | |
async Task< MutationResult< User > > | ResetPassword (Guid id, string password) |
Resets the user password More... | |
async Task< MutationResult< User > > | GrantRole (Guid userUid, Guid roleUid) |
Grants a new role to the user More... | |
async Task< MutationResult< User > > | WithdrawRole (Guid userUid, Guid roleUid) |
Withdraws the role from the user More... | |
Public Member Functions inherited from KlusterKite.Data.CRUD.Connection< User, Guid > | |
Connection (ActorSystem actorSystem, string dataActorPath, TimeSpan? timeout, RequestContext context) | |
async Task< MutationResult< TObject > > | Create (TObject newNode) |
async Task< MutationResult< TObject > > | Delete (TId id) |
async Task< QueryResult< TObject > > | Query (Expression< Func< TObject, bool >> filter, IEnumerable< SortingCondition > sort, int? limit, int? offset, ApiRequest apiRequest) |
async Task< MutationResult< TObject > > | Update (TId id, TObject newNode, ApiRequest apiRequest) |
Additional Inherited Members | |
Static Protected Member Functions inherited from KlusterKite.Data.CRUD.Connection< User, Guid > | |
static MutationResult< TObject > | CreateResponse (CrudActionResponse< TObject > response) |
Creates mutation response from actor response More... | |
Properties inherited from KlusterKite.Data.CRUD.Connection< User, Guid > | |
RequestContext | Context [get] |
Gets the request context More... | |
string | DataActorPath [get] |
Gets the path to the data actor More... | |
ActorSystem | System [get] |
Gets the actor system More... | |
TimeSpan | Timeout [get] |
Gets the request timeout More... | |
The User management
Definition at line 32 of file UsersConnection.cs.
KlusterKite.NodeManager.WebApi.UsersConnection.UsersConnection | ( | ActorSystem | actorSystem, |
string | dataActorPath, | ||
TimeSpan? | timeout, | ||
RequestContext | context | ||
) |
Initializes a new instance of the UsersConnection class.
actorSystem | The actor system. |
dataActorPath | The data actor path. |
timeout | The timeout. |
context | The context. |
Definition at line 49 of file UsersConnection.cs.
async Task<MutationResult<User> > KlusterKite.NodeManager.WebApi.UsersConnection.GrantRole | ( | Guid | userUid, |
Guid | roleUid | ||
) |
Grants a new role to the user
userUid | The user Uid. |
roleUid | The role Uid. |
Definition at line 93 of file UsersConnection.cs.
async Task<MutationResult<User> > KlusterKite.NodeManager.WebApi.UsersConnection.ResetPassword | ( | Guid | id, |
string | password | ||
) |
Resets the user password
id | The user uid |
password | The new user password |
Definition at line 65 of file UsersConnection.cs.
async Task<MutationResult<User> > KlusterKite.NodeManager.WebApi.UsersConnection.WithdrawRole | ( | Guid | userUid, |
Guid | roleUid | ||
) |
Withdraws the role from the user
userUid | The user Uid. |
roleUid | The role Uid. |
Definition at line 121 of file UsersConnection.cs.