Interface RegistrationsManagement


  • public interface RegistrationsManagement
    Registrations support: forms, submissions of requests and their processing.
    Author:
    K. Benedyczak
    • Method Detail

      • removeForm

        void removeForm​(String formId,
                        boolean dropRequests)
                 throws EngineException
        Remove an existing registration form.
        Parameters:
        formId -
        dropRequests - if true then all requests of this form are deleted. If false, the operation will throw exception if there are any requests for the form.
        Throws:
        EngineException
      • updateForm

        void updateForm​(RegistrationForm updatedForm,
                        boolean ignoreRequestsAndInvitations)
                 throws EngineException
        Updates an existing form.
        Parameters:
        updatedForm -
        ignoreRequestsAndInvitations - if true then operation will ignore form requests and invitations. If false then it will fail if there are any pending requests of the form.
        Throws:
        EngineException
      • hasForm

        boolean hasForm​(String id)
        Returns:
        true if form with given name exists
      • submitRegistrationRequest

        String submitRegistrationRequest​(RegistrationRequest request,
                                         RegistrationContext context)
                                  throws EngineException
        Submits a new registration request. It gets a pending state unless automatically processed by the form's automation. Note that the input parameter can be modified by the invocation: all the supplied credential secrets are transformed to the internal (typically hashed) form. Important: this API call requires high authZ privileges. This is because the operation trusts confirmation state of the passed arguments. In case such operation shall be exposed with a public, unprivileged API, then we need an other variant, forcing unconfirmed state of parameters. This can be problematic for mobile numbers.
        Parameters:
        request -
        context -
        Returns:
        automatically assigned identifier of the request
        Throws:
        EngineException
      • processRegistrationRequest

        void processRegistrationRequest​(String id,
                                        RegistrationRequest finalRequest,
                                        RegistrationRequestAction action,
                                        String publicComment,
                                        String privateComment)
                                 throws EngineException
        Accepts, deletes or rejects a given registration request. The request can be freely modified at this time too, with one exception: the credentials originally submitted are always preserved.
        Parameters:
        id - request id to be processed
        finalRequest - updated registration request with edits made by admin
        action - what to do with the request.
        publicComment - comment to be recorded and sent to the requester
        privateComment - comment to be internally recored only.
        Throws:
        EngineException
      • removeFormWithoutDependencyChecking

        void removeFormWithoutDependencyChecking​(String formId)
                                          throws EngineException
        Remove an existing registration form with no dependency checking
        Parameters:
        formId -
        Throws:
        EngineException