UserApi class

Constructors

UserApi(String _sdkId)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

assignHealthcareParty(String healthcarePartyId) Future<User>
createAdminUser(User user) Future<User>
createAdminUserInGroup(String groupId, User user) Future<User>
createUser(User user) Future<User>
createUserInGroup(String groupId, User user) Future<User>
deleteUser(User user) Future<DocIdentifier>
deleteUserById(String entityId, String rev) Future<DocIdentifier>
deleteUserInGroup(String groupId, User user) Future<DocIdentifier>
deleteUserInGroupById(String groupId, String entityId, String rev) Future<DocIdentifier>
disable2faForUser(String userId) Future<void>
disable2faForUserWithGroup(String userId, String groupId) Future<void>
enable2faForUser(String userId, Enable2faRequest request) Future<void>
enable2faForUserWithGroup(String userId, String groupId, Enable2faRequest request) Future<void>
filterUsersBy(BaseFilterOptions<User> filter) Future<PaginatedListIterator<User>>
filterUsersBySorted(BaseSortableFilterOptions<User> filter) Future<PaginatedListIterator<User>>
filterUsersInGroupBy(String groupId, BaseFilterOptions<User> filter) Future<PaginatedListIterator<User>>
filterUsersInGroupBySorted(String groupId, BaseSortableFilterOptions<User> filter) Future<PaginatedListIterator<User>>
findByHcpartyId(String id) Future<List<String>>
findByPatientId(String id) Future<List<String>>
getCurrentUser() Future<User>
getMatchingUsers() Future<List<UserGroup>>
getToken(String userId, String key, {int? tokenValidity, String? token}) Future<String>
getTokenInAllGroups(String userIdentifier, String key, {String? token, int? tokenValidity}) Future<List<TokenWithGroup>>
getTokenInGroup(String groupId, String userId, String key, {String? token, int? tokenValidity}) Future<String>
getUser(String userId) Future<User>
getUserByEmail(String email) Future<User>
getUserByPhoneNumber(String phoneNumber) Future<User>
getUsers(List<String> userIds) Future<List<User>>
getUsersInGroup(String groupId, List<String> userIds) Future<List<User>>
matchUsersBy(BaseFilterOptions<User> filter) Future<List<String>>
matchUsersBySorted(BaseSortableFilterOptions<User> filter) Future<List<String>>
matchUsersInGroupBy(String groupId, BaseFilterOptions<User> filter) Future<List<String>>
matchUsersInGroupBySorted(String groupId, BaseSortableFilterOptions<User> filter) Future<List<String>>
modifyProperties(String userId, List<EncryptedPropertyStub>? properties) Future<User>
modifyUser(User user) Future<User>
modifyUserInGroup(String groupId, User user) Future<User>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
purgeUser(User user) Future<void>
purgeUserById(String id, String rev) Future<void>
resetUserRoles(String userId) Future<User>
resetUserRolesInGroup(String userId, String groupId) Future<User>
setUserRoles(String userId, ListOfIds rolesId) Future<User>
setUserRolesInGroup(String userId, String groupId, ListOfIds rolesId) Future<User>
subscribeToEvents(Set<SubscriptionEventType> events, FilterOptions<User> filter, {EntitySubscriptionConfiguration? subscriptionConfig}) Future<EntitySubscription<User>>
toString() String
A string representation of this object.
inherited
undeleteUser(User user) Future<User>
undeleteUserById(String id, String rev) Future<User>

Operators

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