class documentation
class GroupManager:
Manager for the CSE's group service.
| Method | configure |
Configure the GroupManager with the provided configuration. |
| Method | fopt |
Handle requests to a <acme.resources.GRP.GRP>'s <GRP_FOPT> fanOutPoint. This method might be called recursivly, in case there are groups in groups. |
| Method | handle |
Handle a CSE-internal delete event (ie. whenever a resource is deleted). Check whether the deleted resource is a member of a group. If yes, then remove the member. This method is called by the EventManager... |
| Method | restart |
Restart the Group Manager. |
| Method | start |
Initialization of the GroupManager. |
| Method | stop |
Shutdown the GroupManager. |
| Method | validate |
Validate the GroupManager configuration. |
| Method | validate |
Validate a group and its members (privileges and attribute). |
| Class Variable | dispatcher |
Injected Dispatcher instance. |
| Class Variable | factory |
Injected Factory instance. |
| Class Variable | request |
Injected Request manager instance. |
| Class Variable | security |
Injected Security manager instance. |
| Class Variable | storage |
Injected Storage instance. |
| Method | _check |
Internally check a group's member resources and privileges. |
Configure the GroupManager with the provided configuration.
| Parameters | |
config:Configuration | The configuration to apply. |
def foptRequest(self, operation:
Operation, fopt: GRP_FOPT, request: CSERequest, id: str, originator: str) -> Result:
¶
Handle requests to a <acme.resources.GRP.GRP>'s <GRP_FOPT> fanOutPoint. This method might be called recursivly,
in case there are groups in groups.
| Parameters | |
operation:Operation | The operation type to perform on the group. |
fopt:GRP_FOPT | The <GRP_FOPT> virtual resource. |
request:CSERequest | The request to perform on the <GRP_FOPT>. |
id:str | The original target resource ID. |
originator:str | The request's originator. |
| Returns | |
Result | Result instance. |
Handle a CSE-internal delete event (ie. whenever a resource is deleted).
Check whether the deleted resource is a member of a group. If yes, then remove the member.
This method is called by the EventManager.
| Parameters | |
eventEventData | The event data containing the deleted resource in EventData.payload. |
Validate the GroupManager configuration.
| Parameters | |
config:Configuration | The configuration to validate. |