Package org.emau.icmvc.ganimed.ttp.cm2
Schnittstelle GICSManagementService
public interface GICSManagementService
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addConsentTemplate
(ConsentTemplateDTO consentTemplateDTO, boolean finaliseRelatedEntities) stores the given consent template
the policies within the modulDTOs are ignored and therefore doesn't need to be setvoid
creates a new domainvoid
stores the given modulevoid
stores the given policyvoid
addSignerIdType
(String domainName, String signerIdTypeName) add a signer id type with the given name to the given domainvoid
deletes the given consent template (only if it's not in use, i.e. there's no consent belonging to that consent template)void
deleteDomain
(String domainName) deletes the given domainvoid
deleteModule
(ModuleKeyDTO keyDTO) deletes the given module (only if it's not in use, i.e. there's no consent template linked to that module)void
deletePolicy
(PolicyKeyDTO keyDTO) deletes the given policy (only if it's not in use, i.e. there's no module linked to that policy)void
deleteSignerIdType
(String domainName, String signerIdTypeName) removes the given signer id type from the given domainvoid
finaliseAllForDomain
(String domainName) finalises the given domain and all its policies, modules, and templatesvoid
finaliseDomain
(String domainName) finalises the given domainvoid
finaliseModule
(ModuleKeyDTO moduleKeyDTO, boolean finaliseRelatedEntities) finalises the given modulevoid
finalisePolicy
(PolicyKeyDTO policyKeyDTO) finalises the given policyvoid
finaliseTemplate
(ConsentTemplateKeyDTO consentTemplateKeyDTO, boolean finaliseRelatedEntities) finalises the given consent templatevoid
updateConsentTemplate
(ConsentTemplateDTO consentTemplateDTO, boolean finaliseRelatedEntities) updates the given consent templatevoid
updateConsentTemplateInUse
(ConsentTemplateDTO consentTemplateDTO) updates label, title, comment, externProperties, scanBase64, scanFileType, assignedModule.comment, assignedModule.externProperties, freeTextDef.commentvoid
updateDomain
(DomainDTO domainDTO) updates the given domainvoid
updateDomainInUse
(String domainName, String label, String logo, String externProperties, ExpirationPropertiesDTO expirationProperties, String comment, DomainConfig config) updates the given domain with the given valuesvoid
updateModule
(ModuleDTO moduleDTO, boolean finaliseRelatedEntities) updates the given modulevoid
updateModuleInUse
(ModuleKeyDTO moduleKeyDTO, String label, String shortText, String externProperties, String comment, Set<AssignedPolicyDTO> assignedPolicyDTOs) updates the given module with the given valuesvoid
updatePolicy
(PolicyDTO policyDTO) updates the given policyvoid
updatePolicyInUse
(PolicyKeyDTO policyKeyDTO, String label, String externProperties, String comment) updates the given policy with the given valuesvoid
updateSignerIdType
(String domainName, String signerIdTypeName, String label, String comment) updates the given signerIdType with the given values
-
Methodendetails
-
addDomain
void addDomain(DomainDTO domainDTO) throws DuplicateEntryException, InvalidParameterException, VersionConverterClassException creates a new domain- Parameter:
domainDTO
- seeDomainDTO
- Löst aus:
DuplicateEntryException
- if a domain with that name already existsInvalidParameterException
VersionConverterClassException
-
deleteDomain
void deleteDomain(String domainName) throws InvalidParameterException, ObjectInUseException, UnknownDomainException deletes the given domain- Parameter:
domainName
- the name of the domain- Löst aus:
InvalidParameterException
ObjectInUseException
- if there's at least one pseudonym within that domainUnknownDomainException
- if the given domain is not found
-
finaliseAllForDomain
void finaliseAllForDomain(String domainName) throws InvalidParameterException, UnknownDomainException, InvalidVersionException, UnknownPolicyException, UnknownConsentTemplateException, UnknownModuleException, RequirementsNotFullfilledException finalises the given domain and all its policies, modules, and templates- Parameter:
domainName
- the name of the domain- Löst aus:
InvalidParameterException
UnknownDomainException
InvalidVersionException
UnknownPolicyException
UnknownConsentTemplateException
UnknownModuleException
RequirementsNotFullfilledException
-
finaliseDomain
finalises the given domain- Parameter:
domainName
- the name of the domain- Löst aus:
InvalidParameterException
UnknownDomainException
-
updateDomain
void updateDomain(DomainDTO domainDTO) throws InvalidParameterException, ObjectInUseException, UnknownDomainException updates the given domain- Parameter:
domainDTO
-- Löst aus:
InvalidParameterException
ObjectInUseException
UnknownDomainException
-
updateDomainInUse
void updateDomainInUse(String domainName, String label, String logo, String externProperties, ExpirationPropertiesDTO expirationProperties, String comment, DomainConfig config) throws InvalidParameterException, UnknownDomainException updates the given domain with the given values- Parameter:
domainName
- the name of the domainlabel
-logo
-externProperties
-comment
-config
-- Löst aus:
InvalidParameterException
UnknownDomainException
-
addConsentTemplate
void addConsentTemplate(ConsentTemplateDTO consentTemplateDTO, boolean finaliseRelatedEntities) throws UnknownDomainException, UnknownModuleException, DuplicateEntryException, InvalidParameterException, InvalidVersionException, FreeTextConverterStringException, InvalidPropertiesException, RequirementsNotFullfilledException, UnknownConsentTemplateException, IllegalCompositionException stores the given consent template
the policies within the modulDTOs are ignored and therefore doesn't need to be set- Parameter:
consentTemplateDTO
-- Löst aus:
UnknownDomainException
UnknownModuleException
DuplicateEntryException
InvalidParameterException
InvalidVersionException
FreeTextConverterStringException
- is thrown when the given converter string (in case ofFreeTextType
.Date) is not a valid string forUngültige Referenz
SimpleDateFormat
InvalidPropertiesException
RequirementsNotFullfilledException
InvalidParameterException
UnknownConsentTemplateException
IllegalCompositionException
-
deleteConsentTemplate
void deleteConsentTemplate(ConsentTemplateKeyDTO keyDTO) throws UnknownDomainException, UnknownConsentTemplateException, ObjectInUseException, InvalidParameterException, InvalidVersionException deletes the given consent template (only if it's not in use, i.e. there's no consent belonging to that consent template)- Parameter:
keyDTO
-- Löst aus:
UnknownDomainException
UnknownConsentTemplateException
ObjectInUseException
InvalidParameterException
InvalidVersionException
-
finaliseTemplate
void finaliseTemplate(ConsentTemplateKeyDTO consentTemplateKeyDTO, boolean finaliseRelatedEntities) throws InvalidParameterException, InvalidVersionException, RequirementsNotFullfilledException, UnknownConsentTemplateException, UnknownDomainException finalises the given consent template- Parameter:
consentTemplateKeyDTO
-finaliseRelatedEntities
-- Löst aus:
InvalidParameterException
InvalidVersionException
RequirementsNotFullfilledException
UnknownConsentTemplateException
UnknownDomainException
-
updateConsentTemplate
void updateConsentTemplate(ConsentTemplateDTO consentTemplateDTO, boolean finaliseRelatedEntities) throws DuplicateEntryException, FreeTextConverterStringException, InvalidFreeTextException, InvalidParameterException, InvalidPropertiesException, InvalidVersionException, ObjectInUseException, RequirementsNotFullfilledException, UnknownConsentTemplateException, UnknownDomainException, UnknownModuleException, IllegalCompositionException updates the given consent template- Parameter:
consentTemplateDTO
-- Löst aus:
DuplicateEntryException
FreeTextConverterStringException
InvalidFreeTextException
InvalidParameterException
InvalidPropertiesException
InvalidVersionException
ObjectInUseException
RequirementsNotFullfilledException
UnknownConsentTemplateException
UnknownDomainException
UnknownModuleException
IllegalCompositionException
-
updateConsentTemplateInUse
void updateConsentTemplateInUse(ConsentTemplateDTO consentTemplateDTO) throws InvalidFreeTextException, InvalidParameterException, InvalidVersionException, UnknownConsentTemplateException, UnknownDomainException, UnknownModuleException updates label, title, comment, externProperties, scanBase64, scanFileType, assignedModule.comment, assignedModule.externProperties, freeTextDef.comment- Parameter:
consentTemplateDTO
-- Löst aus:
InvalidFreeTextException
InvalidParameterException
InvalidVersionException
UnknownConsentTemplateException
UnknownDomainException
UnknownModuleException
-
addModule
void addModule(ModuleDTO moduleDTO, boolean finaliseRelatedEntities) throws UnknownDomainException, UnknownPolicyException, DuplicateEntryException, InvalidParameterException, InvalidVersionException, RequirementsNotFullfilledException, IllegalCompositionException stores the given module -
deleteModule
void deleteModule(ModuleKeyDTO keyDTO) throws UnknownDomainException, UnknownModuleException, ObjectInUseException, InvalidParameterException, InvalidVersionException deletes the given module (only if it's not in use, i.e. there's no consent template linked to that module)- Parameter:
keyDTO
-- Löst aus:
UnknownDomainException
UnknownModuleException
ObjectInUseException
InvalidParameterException
InvalidVersionException
-
finaliseModule
void finaliseModule(ModuleKeyDTO moduleKeyDTO, boolean finaliseRelatedEntities) throws InvalidParameterException, InvalidVersionException, RequirementsNotFullfilledException, UnknownDomainException, UnknownModuleException finalises the given module- Parameter:
moduleKeyDTO
-finaliseRelatedEntities
-- Löst aus:
InvalidParameterException
InvalidVersionException
RequirementsNotFullfilledException
UnknownDomainException
UnknownModuleException
-
updateModule
void updateModule(ModuleDTO moduleDTO, boolean finaliseRelatedEntities) throws DuplicateEntryException, InvalidParameterException, InvalidVersionException, ObjectInUseException, RequirementsNotFullfilledException, UnknownDomainException, UnknownModuleException, UnknownPolicyException, IllegalCompositionException updates the given module -
updateModuleInUse
void updateModuleInUse(ModuleKeyDTO moduleKeyDTO, String label, String shortText, String externProperties, String comment, Set<AssignedPolicyDTO> assignedPolicyDTOs) throws InvalidParameterException, InvalidVersionException, UnknownDomainException, UnknownModuleException updates the given module with the given values- Parameter:
moduleKeyDTO
-label
-shortText
-externProperties
-comment
-assignedPolicyDTOs
- only externProperties and comments of this objects are updated- Löst aus:
InvalidParameterException
InvalidVersionException
UnknownDomainException
UnknownModuleException
-
addPolicy
void addPolicy(PolicyDTO policyDTO) throws UnknownDomainException, DuplicateEntryException, InvalidParameterException, InvalidVersionException, RequirementsNotFullfilledException stores the given policy- Parameter:
policyDTO
-- Löst aus:
UnknownDomainException
DuplicateEntryException
InvalidParameterException
InvalidVersionException
RequirementsNotFullfilledException
-
deletePolicy
void deletePolicy(PolicyKeyDTO keyDTO) throws UnknownDomainException, UnknownPolicyException, ObjectInUseException, InvalidParameterException, InvalidVersionException deletes the given policy (only if it's not in use, i.e. there's no module linked to that policy)- Parameter:
keyDTO
-- Löst aus:
UnknownDomainException
UnknownPolicyException
ObjectInUseException
InvalidParameterException
InvalidVersionException
-
finalisePolicy
void finalisePolicy(PolicyKeyDTO policyKeyDTO) throws InvalidParameterException, InvalidVersionException, UnknownDomainException, UnknownPolicyException finalises the given policy- Parameter:
policyKeyDTO
-- Löst aus:
InvalidParameterException
InvalidVersionException
UnknownDomainException
UnknownPolicyException
-
updatePolicy
void updatePolicy(PolicyDTO policyDTO) throws InvalidParameterException, InvalidVersionException, ObjectInUseException, UnknownDomainException, UnknownPolicyException updates the given policy- Parameter:
policyDTO
-- Löst aus:
InvalidParameterException
InvalidVersionException
ObjectInUseException
UnknownDomainException
UnknownPolicyException
-
updatePolicyInUse
void updatePolicyInUse(PolicyKeyDTO policyKeyDTO, String label, String externProperties, String comment) throws InvalidParameterException, InvalidVersionException, UnknownDomainException, UnknownPolicyException updates the given policy with the given values- Parameter:
policyKeyDTO
-label
-externProperties
-comment
-- Löst aus:
InvalidParameterException
InvalidVersionException
UnknownDomainException
UnknownPolicyException
-
addSignerIdType
void addSignerIdType(String domainName, String signerIdTypeName) throws InvalidParameterException, UnknownDomainException, DuplicateEntryException add a signer id type with the given name to the given domain- Parameter:
domainName
- domain to which the signerIdType belongs tosignerIdTypeName
- identifier- Löst aus:
InvalidParameterException
UnknownDomainException
- if the given domain is not foundDuplicateEntryException
- if the signerIdType already exists
-
updateSignerIdType
void updateSignerIdType(String domainName, String signerIdTypeName, String label, String comment) throws InvalidParameterException, UnknownDomainException, UnknownSignerIdTypeException updates the given signerIdType with the given values- Parameter:
domainName
- domain to which the signerIdType belongs tosignerIdTypeName
- identifierlabel
-comment
-- Löst aus:
InvalidParameterException
UnknownDomainException
- if the given domain is not foundUnknownSignerIdTypeException
- if the given signerIdType is not found
-
deleteSignerIdType
void deleteSignerIdType(String domainName, String signerIdTypeName) throws InvalidParameterException, UnknownDomainException, UnknownSignerIdTypeException, ObjectInUseException removes the given signer id type from the given domain- Parameter:
domainName
- domain to which the signerIdType belongs tosignerIdTypeName
- identifier- Löst aus:
InvalidParameterException
UnknownDomainException
UnknownSignerIdTypeException
ObjectInUseException
-