public static function getRequiredRights($controllerClassName, $actionName) {
        try {
            $rights = ServiceManager::getServiceManager()->get('generis/cache')->get(self::ACTION_PREFIX.$controllerClassName.'@'.$actionName);
        } catch (\common_cache_NotFoundException $e) {
            $factory = new Factory();
            $controller = $factory->getActionDescription($controllerClassName, $actionName);
            $rights = $controller->getRequiredRights();
            ServiceManager::getServiceManager()->get('generis/cache')->put($rights, self::ACTION_PREFIX.$controllerClassName.'@'.$actionName);
        }
        return $rights;
    }
public static function getRequiredRights($controllerClassName, $actionName) {
        try {
            $rights = ServiceManager::getServiceManager()->get('generis/cache')->get(self::ACTION_PREFIX.$controllerClassName.'@'.$actionName);
        } catch (\common_cache_NotFoundException $e) {
            $factory = new Factory();
            $controller = $factory->getActionDescription($controllerClassName, $actionName);
            $rights = $controller->getRequiredRights();
            ServiceManager::getServiceManager()->get('generis/cache')->put($rights, self::ACTION_PREFIX.$controllerClassName.'@'.$actionName);
        }
        return $rights;
    }
public static function getRequiredRights ( $ controllerClassName , $ actionName ) { try { $ rights = ServiceManager :: getServiceManager ( ) -> get ( 'generis/cache' ) -> get ( self :: ACTION_PREFIX . $ controllerClassName . '@' . $ actionName ) ; } catch ( \ common_cache_NotFoundException $ e ) { $ factory = new Factory ( ) ; $ controller = $ factory -> getActionDescription ( $ controllerClassName , $ actionName ) ; $ rights = $ controller -> getRequiredRights ( ) ; ServiceManager :: getServiceManager ( ) -> get ( 'generis/cache' ) -> put ( $ rights , self :: ACTION_PREFIX . $ controllerClassName . '@' . $ actionName ) ; } return $ rights ; }
Get the required rights for the execution of an action

Returns an associative array with the parameter as key
and the rights as values

@param string $controllerClassName
@param string $actionName
@return array
Get the required rights for the execution of an action