@@ -0,0 +1,1316 @@
+package org.slc.sli.api.security.context;%0A%0Aimport org.slc.sli.api.config.EntityDefinitionStore;%0Aimport org.slc.sli.api.config.EntityNames;%0Aimport org.slc.sli.domain.Entity;%0Aimport org.slc.sli.domain.EntityRepository;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Component;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0A/**%0A * TeacherAttendanceContextResolver%0A * Determine security authorization.%0A * Finds the Attendance records a user has context to access.%0A */%0A@Component%0Apublic class SectionSessionContextResolver implements EntityContextResolver %7B%0A%0A    @Autowired%0A    private EntityRepository repository;%0A    @Autowired%0A    private EntityDefinitionStore definitionStore;%0A%0A    @Override%0A    public String getSourceType() %7B%0A        return EntityNames.SECTION;%0A    %7D%0A%0A    @Override%0A    public String getTargetType() %7B%0A        return EntityNames.SESSION;%0A    %7D%0A%0A    @Override%0A    public List%3CString%3E findAccessible(Entity principal) %7B%0A        return Arrays.asList((String) principal.getBody().get(%22sessionId%22));%0A    %7D%0A%0A    public void setRepository(EntityRepository repository) %7B%0A        this.repository = repository;%0A    %7D%0A%0A    public void setDefinitionStore(EntityDefinitionStore definitionStore) %7B%0A        this.definitionStore = definitionStore;%0A    %7D%0A%7D%0A

Add security context resolver for section-session direct reference.