Package org.emau.icmvc.ganimed.ttp.cm2
Interface GICSServiceWithNotification
public interface GICSServiceWithNotification
An interface for sibling gics-service methods which additionally send notifications via the
THS Notification Service.
- Author:
- moser
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddConsent(String notificationClientID, ConsentDTO consentDTO) Stores the given consent and sends a notification.voidaddConsentOptOut(String notificationClientID, ConsentTemplateKeyDTO templateKeyDTO, Set<SignerIdDTO> signerIdDTOs) voidrefuseConsent(String notificationClientID, ConsentTemplateKeyDTO ctKeyDTO, Set<SignerIdDTO> signerIdDTOs) Stores a "refused" consent.voidsetQCForConsent(String notificationClientID, ConsentKeyDTO consentKeyDTO, QCDTO qc) Updates the QC for the given consent and sends a notification.voidupdateConsentInUse(String notificationClientID, ConsentKeyDTO consentKeyDTO, String externProperties, String comment, ConsentScanDTO scan) Updates the given consent.
-
Method Details
-
setQCForConsent
void setQCForConsent(String notificationClientID, ConsentKeyDTO consentKeyDTO, QCDTO qc) throws InvalidParameterException, InvalidVersionException, UnknownConsentException, UnknownSignerIdTypeException, UnknownConsentTemplateException, UnknownDomainException Updates the QC for the given consent and sends a notification.- Parameters:
notificationClientID- the notification client ID (null or empty to skip sending a notification)consentKeyDTO- the consent to update the QC forqc- the new QC- Throws:
InvalidParameterExceptionInvalidVersionExceptionUnknownConsentExceptionUnknownSignerIdTypeExceptionUnknownConsentTemplateExceptionUnknownDomainExceptionInvalidParameterException- See Also:
-
addConsent
void addConsent(String notificationClientID, ConsentDTO consentDTO) throws UnknownDomainException, UnknownModuleException, UnknownConsentTemplateException, InvalidVersionException, MissingRequiredObjectException, InvalidFreeTextException, MandatoryFieldsException, UnknownSignerIdTypeException, DuplicateEntryException, RequirementsNotFullfilledException, InvalidParameterException Stores the given consent and sends a notification. The policies within the modulDTOs are ignored and therefore doesn't need to be set.- Parameters:
notificationClientID- the notification client ID (null or empty to skip sending a notification)consentDTO- the consent to add- Throws:
UnknownDomainExceptionUnknownModuleExceptionUnknownConsentTemplateExceptionInvalidVersionExceptionMissingRequiredObjectException- when there's no given value for a mandatory free text fieldInvalidFreeTextExceptionMandatoryFieldsException- seeMandatoryFieldsExceptionUnknownSignerIdTypeExceptionDuplicateEntryExceptionRequirementsNotFullfilledExceptionInvalidParameterException- See Also:
-
refuseConsent
void refuseConsent(String notificationClientID, ConsentTemplateKeyDTO ctKeyDTO, Set<SignerIdDTO> signerIdDTOs) throws InvalidVersionException, UnknownSignerIdTypeException, UnknownConsentTemplateException, UnknownDomainException, InternalException, InvalidParameterException Stores a "refused" consent. The consent is not declined, the participant didn't want to fill a consent.
The date of the refused consent is set to the current date.- Parameters:
notificationClientID- the notification client ID (null or empty to skip sending a notification)ctKeyDTO- the consent template keysignerIdDTOs- the signer ID- Throws:
InvalidVersionExceptionUnknownSignerIdTypeExceptionUnknownConsentTemplateExceptionUnknownDomainExceptionInternalExceptionInvalidParameterException- See Also:
-
addConsentOptOut
void addConsentOptOut(String notificationClientID, ConsentTemplateKeyDTO templateKeyDTO, Set<SignerIdDTO> signerIdDTOs) throws UnknownSignerIdTypeException, InvalidParameterException, UnknownConsentTemplateException, InvalidVersionException, RequirementsNotFullfilledException, UnknownModuleException, InvalidFreeTextException, UnknownDomainException, MissingRequiredObjectException, MandatoryFieldsException, DuplicateEntryException - Throws:
UnknownSignerIdTypeExceptionInvalidParameterExceptionUnknownConsentTemplateExceptionInvalidVersionExceptionRequirementsNotFullfilledExceptionUnknownModuleExceptionInvalidFreeTextExceptionUnknownDomainExceptionMissingRequiredObjectExceptionMandatoryFieldsExceptionDuplicateEntryException
-
updateConsentInUse
void updateConsentInUse(String notificationClientID, ConsentKeyDTO consentKeyDTO, String externProperties, String comment, ConsentScanDTO scan) throws InvalidVersionException, UnknownDomainException, UnknownConsentTemplateException, UnknownSignerIdTypeException, UnknownConsentException, InvalidParameterException Updates the given consent.- Parameters:
notificationClientID- the notification client ID (null or empty to skip sending a notification)consentKeyDTO- the consent keyexternProperties- extern propertiescomment- a commentscan- a scan- Throws:
InvalidVersionExceptionUnknownDomainExceptionUnknownConsentTemplateExceptionUnknownSignerIdTypeExceptionUnknownConsentExceptionInvalidParameterException- See Also:
-