Package com.eduix.genexp.enrichment
Interface EnrichmentService
-
- All Known Implementing Classes:
AbstractEnrichmentService,BaseEnrichmentService,BaseEnrichmentService,CategoryEnrichmentService,CourseUnitEnrichmentService,CourseUnitRealizationEnrichmentService,NoopEnrichmentService,OfferingEnrichmentService,ProgrammeEnrichmentService,RealizationQuotaEnrichmentService,RealizationQuotaEnrichmentService,RegistrationPackageEnrichmentService,StudyModuleEnrichmentService
public interface EnrichmentServiceAn interface for study element enrichment services.- Author:
- Jarkko Leponiemi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnrichmentContextenrich(EnrichmentContext enrichmentContext, boolean inPlace)Enrich the study element in the given enrichment contextStringgetName()Map<String,Class<?>>getTypeClassMappings()booleanisApplicable(String type)booleanisProcessable(EnrichmentContext enrichmentContext)
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- the name of the enrichment service
-
isApplicable
boolean isApplicable(String type)
- Parameters:
type- study element typ- Returns:
- true, if enrichment service is applicable for given study elemenrt type
-
isProcessable
boolean isProcessable(EnrichmentContext enrichmentContext)
- Parameters:
enrichmentContext- the current enrichment context- Returns:
- true, if enrichment service is currently processable for given context
-
enrich
EnrichmentContext enrich(EnrichmentContext enrichmentContext, boolean inPlace)
Enrich the study element in the given enrichment context- Parameters:
enrichmentContext- the current enruchment contextinPlace- true, in enrichment does not create a new context- Returns:
- the updated enrichhment context
-
-