Class UserManagementUtilities


  • public class UserManagementUtilities
    extends BaseVerIDUtility
    User management utilities
    Since:
    2.6.0
    • Method Detail

      • safeAssignFacesToUser

        @WorkerThread
        public void safeAssignFacesToUser​(IRecognizable[] faces,
                                          java.lang.String user)
                                   throws VerIDCoreException
        Safely assign faces to user

        This function checks that the supplied faces aren't similar to other registered users. The function also ensures that the faces will be comparable to other registered faces.

        Warning: This method must be called on a worker thread

        Parameters:
        faces - Faces to assign
        user - User to whom the faces should be assigned
        Throws:
        VerIDCoreException
        Since:
        2.6.0
      • safeAssignFacesToUser

        @WorkerThread
        public void safeAssignFacesToUser​(IRecognizable[] faces,
                                          java.lang.String user,
                                          java.util.function.Function<VerIDFaceTemplateVersion,​java.lang.Float> thresholdSupplier)
                                   throws VerIDCoreException
        Safely assign faces to user

        This function checks that the supplied faces aren't similar to other registered users. The function also ensures that the faces will be comparable to other registered faces.

        Parameters:
        faces - Faces to assign
        user - User to whom the faces should be assigned
        thresholdSupplier - Function that supplies the threshold for comparisons using the given face template version
        Throws:
        VerIDCoreException
      • safeAssignFacesToUser

        public void safeAssignFacesToUser​(IRecognizable[] faces,
                                          java.lang.String user,
                                          ResultCallback<java.lang.Void,​VerIDCoreException> callback)
        Safely assign faces to user

        This function checks that the supplied faces aren't similar to other registered users. The function also ensures that the faces will be comparable to other registered faces.

        Parameters:
        faces - Faces to assign
        user - User to whom the faces should be assigned
        callback - Callback
        Since:
        2.6.0
      • safeAssignFacesToUser

        public void safeAssignFacesToUser​(IRecognizable[] faces,
                                          java.lang.String user,
                                          java.util.function.Function<VerIDFaceTemplateVersion,​java.lang.Float> thresholdSupplier,
                                          ResultCallback<java.lang.Void,​VerIDCoreException> callback)
        Safely assign faces to user

        This function checks that the supplied faces aren't similar to other registered users. The function also ensures that the faces will be comparable to other registered faces.

        Parameters:
        faces - Faces to assign
        user - User to whom the faces should be assigned
        thresholdSupplier - Function that supplies the threshold for comparisons using the given face template version
        callback - Callback
      • analyzeUserManagement

        @WorkerThread
        public java.util.HashMap<VerIDFaceTemplateVersion,​UserManagementAnalysis> analyzeUserManagement()
                                                                                                       throws VerIDCoreException,
                                                                                                              java.lang.InterruptedException
        Run an analysis on user management

        Warning: This method must be called on a worker thread

        Returns:
        Map with analysis for each face template version
        Throws:
        VerIDCoreException
        java.lang.InterruptedException
        Since:
        2.6.0