UserSpaceOrgService class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
providerEventStream
→ Stream<ProviderEvent>
-
Streams events emitted by the provider
to the consumers of the provider
no setteroverride
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addOrgUser({required String orgId, required String userId, bool isAdmin = false})
→ Future<OrgUser>
-
Add a user to the org with the given
org id. The user will be added as a
member of the org.
override
-
createOrg({required String orgName, required Key orgKey, List<ContactInput>? contacts, List<AddressInput>? addresses, String? businessRef})
→ Future<OrgIi>
-
Create a new organization with the given
information. Current logged in user will
be added as the owner and admin of the
organization.
override
-
deleteOrg(String orgId)
→ Future<void>
-
Deletes the the org with the given
org id
override
-
deleteOrgUser({required String orgId, required String userId})
→ Future<OrgUser>
-
Remove a user from the org with the
given org id.
override
-
dispose()
→ Future<void>
-
Disposes the repository provider. This method should
close and release any resources used by the backend services.
override
-
getOrgData(String orgId)
→ Future<Org>
-
Retrieves the org details for the given
org id
override
-
getOrgs()
→ Future<List<OrgUser>>
-
Retrieves all the orgs the current user
is a part of.
override
-
initialize()
→ Future<void>
-
Initializes the repository provider. This method should
setup persistent connections to the backend services and
initialize any resources used by the backend services.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateOrg({required String orgId, Key? orgKey, List<ContactInput>? contacts, List<AddressInput>? addresses, String? config})
→ Future<Org>
-
Update the org with the given org id.
The org name and business reference
cannot be updated as they are immutable
once an org has been created and
verified.
override