/**
  * @param GridView $gridView
  * @param bool     $default
  */
 protected function setDefaultGridView(GridView $gridView, $default)
 {
     $user = $this->tokenStorage->getToken()->getUser();
     $this->gridViewManager->setDefaultGridView($user, $gridView, $default);
 }
 /**
  * @param User     $user
  * @param GridView $gridView
  * @param bool     $default
  */
 public function setDefaultGridView(User $user, GridView $gridView, $default)
 {
     $this->gridViewManager->setDefaultGridView($user, $gridView, $default);
     $this->getObjectManager()->flush();
 }