PolicyService class abstract interface

Implementers

Constructors

PolicyService.inMemory()
factory
PolicyService.withAtClient({required AtClient atClient})
factory

Properties

daemonAtSigns Set<String>
no setter
eventStream Stream<String>
no setter
groups Map<String, UserGroup>
The in-memory groups map. Not for external use.
no setter
hashCode int
The hash code for this object.
no setterinherited
logEvents List
The in-memory list of log events. Not for external use.
no setter
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 id
deleteUserGroup(String id) Future<bool>
Delete a group. Return true if deleted, false if not.
getGroupsForUser(String atSign) Future<List<UserGroup>>
Get the list of groups of which this user is a member.
getLogEvents({required int from, required int to}) Future<List>
Fetch some log events
getUserGroup(String id) Future<UserGroup?>
Get a group object by its ID
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
init() Future<void>
initialize the policy service once it's been created
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateUserGroup(UserGroup group) Future<void>
Update a group. Must already have an id

Operators

operator ==(Object other) bool
The equality operator.
inherited