KlusterKite
0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
|
The Role management More...
Public Member Functions | |
RolesConnection (ActorSystem actorSystem, string dataActorPath, TimeSpan? timeout, RequestContext context) | |
Initializes a new instance of the RolesConnection class. More... | |
async Task< MutationResult< Role > > | GrantToUser (Guid userUid, Guid roleUid) |
Grants a new role to the user More... | |
async Task< MutationResult< Role > > | WithdrawFromUser (Guid userUid, Guid roleUid) |
Withdraws the role from the user More... | |
Public Member Functions inherited from KlusterKite.Data.CRUD.Connection< Role, 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< Role, Guid > | |
static MutationResult< TObject > | CreateResponse (CrudActionResponse< TObject > response) |
Creates mutation response from actor response More... | |
Properties inherited from KlusterKite.Data.CRUD.Connection< Role, 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 Role management
Definition at line 32 of file RolesConnection.cs.
KlusterKite.NodeManager.WebApi.RolesConnection.RolesConnection | ( | ActorSystem | actorSystem, |
string | dataActorPath, | ||
TimeSpan? | timeout, | ||
RequestContext | context | ||
) |
Initializes a new instance of the RolesConnection class.
actorSystem | The actor system. |
dataActorPath | The data actor path. |
timeout | The timeout. |
context | The context. |
Definition at line 49 of file RolesConnection.cs.
async Task<MutationResult<Role> > KlusterKite.NodeManager.WebApi.RolesConnection.GrantToUser | ( | Guid | userUid, |
Guid | roleUid | ||
) |
Grants a new role to the user
userUid | The user Uid. |
roleUid | The role Uid. |
Definition at line 71 of file RolesConnection.cs.
async Task<MutationResult<Role> > KlusterKite.NodeManager.WebApi.RolesConnection.WithdrawFromUser | ( | Guid | userUid, |
Guid | roleUid | ||
) |
Withdraws the role from the user
userUid | The user Uid. |
roleUid | The role Uid. |
Definition at line 99 of file RolesConnection.cs.