Package org.emau.icmvc.ganimed.ttp.cm2
Schnittstelle GICSServiceWithNotification
public interface GICSServiceWithNotification
An interface for sibling gics-service methods which additionally send notifications via the
THS Notification Service.
- Autor:
- moser
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addConsent
(String notificationClientID, ConsentDTO consentDTO) Stores the given consent and sends a notification.void
addConsentOptOut
(String notificationClientID, ConsentTemplateKeyDTO templateKeyDTO, Set<SignerIdDTO> signerIdDTOs) void
refuseConsent
(String notificationClientID, ConsentTemplateKeyDTO ctKeyDTO, Set<SignerIdDTO> signerIdDTOs) Stores a "refused" consent.void
setQCForConsent
(String notificationClientID, ConsentKeyDTO consentKeyDTO, QCDTO qc) Updates the QC for the given consent and sends a notification.void
updateConsentInUse
(String notificationClientID, ConsentKeyDTO consentKeyDTO, String externProperties, String comment, ConsentScanDTO scan) Updates the given consent.
-
Methodendetails
-
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.- Parameter:
notificationClientID
- the notification client ID (null or empty to skip sending a notification)consentKeyDTO
- the consent to update the QC forqc
- the new QC- Löst aus:
InvalidParameterException
InvalidVersionException
UnknownConsentException
UnknownSignerIdTypeException
UnknownConsentTemplateException
UnknownDomainException
InvalidParameterException
- Siehe auch:
-
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.- Parameter:
notificationClientID
- the notification client ID (null or empty to skip sending a notification)consentDTO
- the consent to add- Löst aus:
UnknownDomainException
UnknownModuleException
UnknownConsentTemplateException
InvalidVersionException
MissingRequiredObjectException
- when there's no given value for a mandatory free text fieldInvalidFreeTextException
MandatoryFieldsException
- seeMandatoryFieldsException
UnknownSignerIdTypeException
DuplicateEntryException
RequirementsNotFullfilledException
InvalidParameterException
- Siehe auch:
-
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.- Parameter:
notificationClientID
- the notification client ID (null or empty to skip sending a notification)ctKeyDTO
- the consent template keysignerIdDTOs
- the signer ID- Löst aus:
InvalidVersionException
UnknownSignerIdTypeException
UnknownConsentTemplateException
UnknownDomainException
InternalException
InvalidParameterException
- Siehe auch:
-
addConsentOptOut
void addConsentOptOut(String notificationClientID, ConsentTemplateKeyDTO templateKeyDTO, Set<SignerIdDTO> signerIdDTOs) throws UnknownSignerIdTypeException, InvalidParameterException, UnknownConsentTemplateException, InvalidVersionException, RequirementsNotFullfilledException, UnknownModuleException, InvalidFreeTextException, UnknownDomainException, MissingRequiredObjectException, MandatoryFieldsException, DuplicateEntryException - Löst aus:
UnknownSignerIdTypeException
InvalidParameterException
UnknownConsentTemplateException
InvalidVersionException
RequirementsNotFullfilledException
UnknownModuleException
InvalidFreeTextException
UnknownDomainException
MissingRequiredObjectException
MandatoryFieldsException
DuplicateEntryException
-
updateConsentInUse
void updateConsentInUse(String notificationClientID, ConsentKeyDTO consentKeyDTO, String externProperties, String comment, ConsentScanDTO scan) throws InvalidVersionException, UnknownDomainException, UnknownConsentTemplateException, UnknownSignerIdTypeException, UnknownConsentException, InvalidParameterException Updates the given consent.- Parameter:
notificationClientID
- the notification client ID (null or empty to skip sending a notification)consentKeyDTO
- the consent keyexternProperties
- extern propertiescomment
- a commentscan
- a scan- Löst aus:
InvalidVersionException
UnknownDomainException
UnknownConsentTemplateException
UnknownSignerIdTypeException
UnknownConsentException
InvalidParameterException
- Siehe auch:
-