刘光辉
4 小时以前 06f314545ac3514d7ce28939920866ae8188d31c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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));
    }
}