Class RegistrationPackageEnrichmentService

  • All Implemented Interfaces:
    EnrichmentService

    public class RegistrationPackageEnrichmentService
    extends BaseEnrichmentService
    Service for enriching registration packages.
    Author:
    Jarkko Leponiemi
    • Field Detail

      • log

        private static final org.slf4j.Logger log
      • enrollmentConfigurations

        private Map<String,​fi.integrationhouse.mp.paid_education.dto.EnrollmentConfigurationDto> enrollmentConfigurations
      • lastConfigurationRead

        private long lastConfigurationRead
      • registrationPackageManager

        private fi.integrationhouse.mp.paid_education.service.RegistrationPackageManager registrationPackageManager
      • configurationCodes

        private com.eduix.studentregistry.configuration.service.ConfigurationCodes configurationCodes
      • unitManager

        private com.eduix.esp.unit.service.UnitManager unitManager
      • registrationUrl

        private String registrationUrl
    • Constructor Detail

      • RegistrationPackageEnrichmentService

        public RegistrationPackageEnrichmentService()
    • Method Detail

      • initEnrollmentConfigurations

        private void initEnrollmentConfigurations()
        Initialize registration package enrollment configurations.
      • enrich

        public EnrichmentContext enrich​(EnrichmentContext enrichmentContext,
                                        boolean inPlace)
        Description copied from interface: EnrichmentService
        Enrich the study element in the given enrichment context
        Parameters:
        enrichmentContext - the current enruchment context
        inPlace - true, in enrichment does not create a new context
        Returns:
        the updated enrichhment context
      • getRootOrganisationCodes

        private Set<String> getRootOrganisationCodes​(fi.integrationhouse.mp.paid_education.dto.RegistrationPackage registrationPackage)
      • from

        private ExportRegistrationPackage from​(fi.integrationhouse.mp.paid_education.dto.RegistrationPackage registrationPackage)
        Create exportable registaration package.
        Parameters:
        registrationPackage - the source information
        Returns:
        exportable registration package
      • addDatesTimes

        private Date addDatesTimes​(fi.integrationhouse.mp.paid_education.dto.RegistrationPackage registrationPackage,
                                   EnrichmentContext enrichmentContext)
      • from

        private List<ExportQuota> from​(fi.integrationhouse.mp.paid_education.dto.Quota quota)
      • setRegistrationPackageManager

        public void setRegistrationPackageManager​(fi.integrationhouse.mp.paid_education.service.RegistrationPackageManager registrationPackageManager)
      • setConfigurationCodes

        public void setConfigurationCodes​(com.eduix.studentregistry.configuration.service.ConfigurationCodes configurationCodes)
      • setUnitManager

        public void setUnitManager​(com.eduix.esp.unit.service.UnitManager unitManager)
      • setExportService

        public void setExportService​(ExportService exportService)
      • setRegistrationUrl

        public void setRegistrationUrl​(String registrationUrl)