class AuthorizationService {

  public boolean isNoteOwner(Long noteId) {
    UserContextRole userRole = userRoleFromContextService.getUserRoleInNoteId(noteId);
    return userRole == UserContextRole.ENTITYOWNER;
  }

  @Autowired public  AuthorizationService(UserRoleFromContextService userRoleFromContextService);

}