Interface EnquiryManagement


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

      • sendEnquiry

        void sendEnquiry​(String enquiryId)
                  throws EngineException
        Triggers a (re?)send of enquiry notification message. The message will be send only for those who has not yet filled the enquiry.
        Parameters:
        enquiryId -
        Throws:
        EngineException
      • removeEnquiry

        void removeEnquiry​(String formId,
                           boolean dropRequests)
                    throws EngineException
        Remove an existing enquiry 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
      • updateEnquiry

        void updateEnquiry​(EnquiryForm updatedForm,
                           boolean ignoreRequestsAndInvitations)
                    throws EngineException
        Updates an existing enquiry form. Will be applicable only to those users who has not yet filled the original enquiry.
        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
      • processEnquiryResponse

        void processEnquiryResponse​(String id,
                                    EnquiryResponse finalResponse,
                                    RegistrationRequestAction action,
                                    String publicComment,
                                    String privateComment)
                             throws EngineException
        Accepts, deletes or rejects a given enquiry response. 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 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
      • getPendingEnquires

        List<EnquiryForm> getPendingEnquires​(EntityParam entity)
                                      throws EngineException
        Parameters:
        entity -
        Returns:
        list of enquires which are supposed to be filled by a given user. Only active enquires, which were not yet filled nor ignored by the user are returned.
        Throws:
        EngineException
      • ignoreEnquiry

        void ignoreEnquiry​(String enquiryId,
                           EntityParam entity)
                    throws EngineException
        Marks an enquiry as ignored for the given user. This is only possible for enquires which are not mandatory to be filled.
        Parameters:
        enquiryId -
        entity -
        Throws:
        EngineException
      • removeEnquiryWithoutDependencyChecking

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