PolicyServiceWithAtClient class
- Inheritance
-
- Object
- PolicyServiceInMem
- PolicyServiceWithAtClient
Constructors
- PolicyServiceWithAtClient({required AtClient atClient})
Properties
- atClient → AtClient
-
final
-
daemonAtSigns
→ Set<
String> -
no setterinherited
-
esc
↔ StreamController<
String> -
getter/setter pairinherited
-
eventStream
→ Stream<
String> -
no setterinherited
-
groups
→ Map<
String, UserGroup> -
The in-memory groups map. Not for external use.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- logEvents → List
-
The in-memory list of log events. Not for external use.
finalinherited
- logger → AtSignLogger
-
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.
inherited
-
getLogEvents(
{required int from, required int to}) → Future< List> -
Fetch some log events
inherited
-
getUserGroup(
String id) → Future< UserGroup?> -
Get a group object by its ID
inherited
-
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
inherited
-
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
-
notify(
AtKey atKey, String value, {required bool checkForFinalDeliveryStatus, required bool waitForFinalDeliveryStatus, required Duration ttln, int maxTries = 3}) → Future< NotificationResult> -
inherited
-
onDaemonEvent(
dynamic json) → Future< void> -
inherited
-
onPolicyLogEvent(
dynamic json) → Future< void> -
inherited
-
subscribe(
{String? regex, bool shouldDecrypt = false}) → Stream< AtNotification> -
inherited
-
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