/**
  * Exec
  *
  * @param CommandContext $context
  * @throws PermissionException
  */
 public function execute(CommandContext $context)
 {
     if (!UserStatus::isAdmin() || !Current_User::allow('hms', 'reports')) {
         PHPWS_Core::initModClass('hms', 'exception/PermissionException.php');
         throw new PermissionException('You do not have permission to run/view reports.');
     }
     PHPWS_Core::initModClass('hms', 'ReportFactory.php');
     PHPWS_Core::initModClass('hms', 'ListReportsView.php');
     $reports = ReportFactory::getAllReportControllers();
     $reportsList = new ListReportsView($reports);
     $context->setContent($reportsList->show());
 }