Package com.appliedrec.verid.core2
Interface IUserManagement
-
- All Known Implementing Classes:
UserManagement
public interface IUserManagement
User management- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
assignFacesToUser(IRecognizable[] faces, java.lang.String userId)
Assign faces to user.default io.reactivex.rxjava3.core.Completable
assignFacesToUserCompletable(IRecognizable[] faces, java.lang.String userId)
void
close()
Indicate that the instance will no longer be used and can free its resources.default int
countFacesWithVersion(VerIDFaceTemplateVersion version)
void
deleteFaces(IRecognizable[] faces)
Delete faces.default io.reactivex.rxjava3.core.Completable
deleteFacesCompletable(IRecognizable[] faces)
void
deleteUsers(java.lang.String[] userIds)
Delete users and their registered faces.default io.reactivex.rxjava3.core.Completable
deleteUsersCompletable(java.lang.String[] userIds)
IRecognizable[]
getFaces()
Get all registered faces.default IRecognizable[]
getFaces(VerIDFaceTemplateVersion faceTemplateVersion)
IRecognizable[]
getFacesOfUser(java.lang.String userId)
Get faces associated with user.default IRecognizable[]
getFacesOfUser(java.lang.String userId, VerIDFaceTemplateVersion faceTemplateVersion)
default io.reactivex.rxjava3.core.Single<IRecognizable[]>
getFacesOfUserSingle(java.lang.String userId)
default io.reactivex.rxjava3.core.Single<IRecognizable[]>
getFacesSingle()
default java.util.Set<VerIDFaceTemplateVersion>
getFaceTemplateVersions()
java.lang.String
getUserInFace(IRecognizable face)
default io.reactivex.rxjava3.core.Single<java.lang.String>
getUserInFaceSingle(IRecognizable face)
java.lang.String[]
getUsers()
Get registered users.default java.lang.String[]
getUsers(VerIDFaceTemplateVersion faceTemplateVersion)
default io.reactivex.rxjava3.core.Single<java.lang.String[]>
getUsersSingle()
default VerIDFaceTemplateVersion
inferDefaultFaceTemplateVersion()
default boolean
usersAreSubsetOfUserAtIndex(com.google.common.collect.FluentIterable<android.util.Pair<VerIDFaceTemplateVersion,com.google.common.collect.FluentIterable<java.lang.String>>> users, int index)
-
-
-
Method Detail
-
assignFacesToUser
void assignFacesToUser(IRecognizable[] faces, java.lang.String userId) throws VerIDCoreException
Assign faces to user.- Parameters:
faces
- Faces to assign to the useruserId
- ID of the user- Throws:
VerIDCoreException
- if the assignment fails- Since:
- 1.0.0
-
deleteFaces
void deleteFaces(IRecognizable[] faces) throws VerIDCoreException
Delete faces.- Parameters:
faces
- Faces to delete- Throws:
VerIDCoreException
- if the deletion fails- Since:
- 1.0.0
-
getUsers
java.lang.String[] getUsers() throws VerIDCoreException
Get registered users.- Returns:
- IDs of users with registered faces
- Throws:
VerIDCoreException
- if the operation fails- Since:
- 1.0.0
-
getFacesOfUser
IRecognizable[] getFacesOfUser(java.lang.String userId) throws VerIDCoreException
Get faces associated with user.- Parameters:
userId
- ID of the user whose faces to get- Returns:
- Array of faces
- Throws:
VerIDCoreException
- if the operation fails- Since:
- 1.0.0
-
getFaces
IRecognizable[] getFaces() throws VerIDCoreException
Get all registered faces.- Returns:
- Array of faces
- Throws:
VerIDCoreException
- if the operation fails- Since:
- 1.0.0
-
deleteUsers
void deleteUsers(java.lang.String[] userIds) throws VerIDCoreException
Delete users and their registered faces.- Parameters:
userIds
- IDs of the users to delete- Throws:
VerIDCoreException
- if the operation fails- Since:
- 1.0.0
-
getUserInFace
@NonNull java.lang.String getUserInFace(IRecognizable face) throws VerIDCoreException
- Throws:
VerIDCoreException
-
close
void close()
Indicate that the instance will no longer be used and can free its resources.
-
getUsers
default java.lang.String[] getUsers(VerIDFaceTemplateVersion faceTemplateVersion) throws VerIDCoreException
- Throws:
VerIDCoreException
-
getFaces
default IRecognizable[] getFaces(VerIDFaceTemplateVersion faceTemplateVersion) throws VerIDCoreException
- Throws:
VerIDCoreException
-
getFacesOfUser
default IRecognizable[] getFacesOfUser(java.lang.String userId, VerIDFaceTemplateVersion faceTemplateVersion) throws VerIDCoreException
- Throws:
VerIDCoreException
-
countFacesWithVersion
default int countFacesWithVersion(VerIDFaceTemplateVersion version) throws VerIDCoreException
- Throws:
VerIDCoreException
-
inferDefaultFaceTemplateVersion
default VerIDFaceTemplateVersion inferDefaultFaceTemplateVersion() throws VerIDCoreException
- Throws:
VerIDCoreException
-
getFaceTemplateVersions
default java.util.Set<VerIDFaceTemplateVersion> getFaceTemplateVersions() throws VerIDCoreException
- Throws:
VerIDCoreException
-
usersAreSubsetOfUserAtIndex
default boolean usersAreSubsetOfUserAtIndex(com.google.common.collect.FluentIterable<android.util.Pair<VerIDFaceTemplateVersion,com.google.common.collect.FluentIterable<java.lang.String>>> users, int index)
-
deleteUsersCompletable
default io.reactivex.rxjava3.core.Completable deleteUsersCompletable(java.lang.String[] userIds)
-
getFacesSingle
default io.reactivex.rxjava3.core.Single<IRecognizable[]> getFacesSingle()
-
getFacesOfUserSingle
default io.reactivex.rxjava3.core.Single<IRecognizable[]> getFacesOfUserSingle(java.lang.String userId)
-
getUsersSingle
default io.reactivex.rxjava3.core.Single<java.lang.String[]> getUsersSingle()
-
getUserInFaceSingle
default io.reactivex.rxjava3.core.Single<java.lang.String> getUserInFaceSingle(IRecognizable face)
-
deleteFacesCompletable
default io.reactivex.rxjava3.core.Completable deleteFacesCompletable(IRecognizable[] faces)
-
assignFacesToUserCompletable
default io.reactivex.rxjava3.core.Completable assignFacesToUserCompletable(IRecognizable[] faces, java.lang.String userId)
-
-