Package pl.edu.icm.unity.engine.api
Interface EnquiryManagement
public interface EnquiryManagement
Enquires support: forms, submissions of requests and their processing.
- Author:
- K. Benedyczak
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEnquiry
(EnquiryForm form) Add a new enquiry form.getAvailableEnquires
(EntityParam entityParam, EnquirySelector selector) Allows to get enquiries according to the given filter.getEnquiry
(String id) getEnquiryResponse
(String requestId) Lists all responsesboolean
void
ignoreEnquiry
(String enquiryId, EntityParam entity) Marks an enquiry as ignored for the given user.void
processEnquiryResponse
(String id, EnquiryResponse finalResponse, RegistrationRequestAction action, String publicComment, String privateComment) Accepts, deletes or rejects a given enquiry response.void
removeEnquiry
(String formId, boolean dropRequests) Remove an existing enquiry form.void
Remove an existing enquiry form with no dependency checkingvoid
removePendingStickyRequest
(String form, EntityParam entity) void
sendEnquiry
(String enquiryId) Triggers a (re?)send of enquiry notification message.submitEnquiryResponse
(EnquiryResponse response, RegistrationContext context) Submits an enquiry response.void
updateEnquiry
(EnquiryForm updatedForm, boolean ignoreRequestsAndInvitations) Updates an existing enquiry form.
-
Method Details
-
addEnquiry
Add a new enquiry form.- Parameters:
form
-- Throws:
EngineException
-
sendEnquiry
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
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 processedfinalRequest
- updated request with edits made by adminaction
- what to do with the request.publicComment
- comment to be recorded and sent to the requesterprivateComment
- comment to be internally recored only.- Throws:
EngineException
-
getEnquires
- Returns:
- all available enquires.
- Throws:
EngineException
-
getEnquiry
- Returns:
- enquiry form with given id.
- Throws:
EngineException
-
hasForm
-
ignoreEnquiry
Marks an enquiry as ignored for the given user. This is only possible for enquires which are not mandatory to be filled.- Throws:
EngineException
-
submitEnquiryResponse
String submitEnquiryResponse(EnquiryResponse response, RegistrationContext context) throws EngineException Submits an enquiry response.- Throws:
EngineException
-
getEnquiryResponses
Lists all responses- Throws:
EngineException
-
getEnquiryResponse
- Returns:
- a specific enquiry response
-
getFormAutomationSupport
- Returns:
- form automation support for a given form
-
removePendingStickyRequest
- Throws:
EngineException
-
removeEnquiryWithoutDependencyChecking
Remove an existing enquiry form with no dependency checking- Throws:
EngineException
-
getAvailableEnquires
List<EnquiryForm> getAvailableEnquires(EntityParam entityParam, EnquirySelector selector) throws EngineException Allows to get enquiries according to the given filter.- Parameters:
selector
- filter what should be retrieved- Throws:
EngineException
-