package jnpf.elnService.template.impl; import jnpf.elnEntity.template.ElnTemplateVos; import jnpf.elnService.cross.ElnCrossTemplateScalarReferenceService; import jnpf.elnService.template.ElnTemplateAnnotationContextService; import jnpf.elnService.template.ElnTemplateBindingService; import jnpf.elnService.template.TemplateAnnotationAuthorization; import org.springframework.stereotype.Service; @Service public class ElnTemplateAnnotationContextServiceImpl implements ElnTemplateAnnotationContextService { private final ElnTemplateBindingService bindings; private final ElnCrossTemplateScalarReferenceService crossTemplateReferences; public ElnTemplateAnnotationContextServiceImpl( ElnTemplateBindingService bindings, ElnCrossTemplateScalarReferenceService crossTemplateReferences) { this.bindings = bindings; this.crossTemplateReferences = crossTemplateReferences; } @Override public ElnTemplateVos.AnnotationContext context( TemplateAnnotationAuthorization authorization) { return crossTemplateReferences.decorate( authorization, bindings.context(authorization)); } }