PolicyServiceInMem class
- Implemented types
- Implementers
Constructors
Properties
-
daemonAtSigns
→ Set<
String> -
no setteroverride
-
esc
↔ StreamController<
String> -
getter/setter pair
-
eventStream
→ Stream<
String> -
no setteroverride
-
groups
→ Map<
String, UserGroup> -
The in-memory groups map. Not for external use.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logEvents → List
-
The in-memory list of log events. Not for external use.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createUserGroup(
UserGroup group) → Future< UserGroup> -
Create a group. Must not already have an
idoverride -
deleteUserGroup(
String id) → Future< bool> -
Delete a group.
Return true if deleted, false if not.
override
-
getGroupsForUser(
String atSign) → Future< List< UserGroup> > -
Get the list of groups of which this user is a member.
override
-
getLogEvents(
{required int from, required int to}) → Future< List> -
Fetch some log events
override
-
getUserGroup(
String id) → Future< UserGroup?> -
Get a group object by its ID
override
-
getUserGroups(
) → Future< List< UserGroup> > -
Get (some of) the permission groups known to this policy service.
Method rather than getter, as we will add query parameters later
override
-
init(
) → Future< void> -
initialize the policy service once it's been created
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDaemonEvent(
dynamic json) → Future< void> -
onPolicyLogEvent(
dynamic json) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
-
updateUserGroup(
UserGroup group) → Future< void> -
Update a group. Must already have an
idoverride
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited