Beispiel #1
0
 /**
  * @Route("list")
  * @Method("GET")
  * @return Response
  */
 public function listStyles()
 {
     if ($this->securityContext->isUserAllowedToView($this->user)) {
         $styleMap = $this->styleManager->listStyleMaps();
         if ($styleMap != null) {
             return $this->getSuccessMessage($styleMap);
         } else {
             return $this->getEmptyMessage("all");
         }
     }
     return $this->getErrorMessage("Get: Current user is not authorized to list styles", HTTPStatusConstants::_UNAUTHORIZED);
 }