return new NullValidator<GetProjectEventsAction, GetProjectEventsResult>();
}
@Override
public GetProjectEventsResult execute(GetProjectEventsAction action, ExecutionContext executionContext) {
OWLAPIProjectManager projectManager = OWLAPIProjectManager.getProjectManager();
final EventTag sinceTag = action.getSinceTag();
final ProjectId projectId = action.getProjectId();
if(!projectManager.isActive(projectId)) {
return getEmptyResult(projectId, sinceTag);
}
Optional<OWLAPIProject> project = projectManager.getProjectIfActive(projectId);
if(!project.isPresent()) {
return getEmptyResult(projectId, sinceTag);
}
// TODO: FIX THIS. NEEDS TO GO ELSEWHERE
// project.getProjectAccessManager().logAccessForUser(action.getUserId());