throw new StartupException("Configured indexer is not of type RepositoryEntryIndexer", cce);
}
}
public boolean checkAccess(ContextEntry contextEntry, BusinessControl businessControl, Identity identity, Roles roles) {
ContextEntry bcContextEntry = businessControl.popLauncherContextEntry();
if (bcContextEntry == null) {
// no context-entry anymore, the repository entry itself is the context entry,
// not a course node of course we have access to the course metadata
return true;
}
if (log.isDebug()) log.debug("Start identity=" + identity + " roles=" + roles);
Long repositoryKey = contextEntry.getOLATResourceable().getResourceableId();
RepositoryEntry repositoryEntry = repositoryManager.lookupRepositoryEntry(repositoryKey);
if (log.isDebug()) log.debug("repositoryEntry=" + repositoryEntry );
Long nodeId = bcContextEntry.getOLATResourceable().getResourceableId();
if (log.isDebug()) log.debug("nodeId=" + nodeId );
ICourse course = CourseFactory.loadCourse(repositoryEntry.getOlatResource());
IdentityEnvironment ienv = new IdentityEnvironment();
ienv.setIdentity(identity);