public static function retrieveIncludedRoles( core_kernel_classes_Resource $role)
    {
        $returnValue = array();

        
        try{
        	$serial = self::buildIncludedRolesSerial($role);
        	$fromCache = ServiceManager::getServiceManager()->get('generis/cache')->get($serial); // array of URIs.

            foreach ($fromCache as $uri){
                $returnValue[$uri] = new core_kernel_classes_Resource($uri);
            }
        }
        catch (common_cache_Exception $e){
        	$roleUri = $role->getUri();
        	$msg = "Includes roles related to Role with URI '${roleUri}' is not in the Cache memory.";
        	throw new core_kernel_users_CacheException($msg);
        }
        

        return (array) $returnValue;
    }
public static function retrieveIncludedRoles( core_kernel_classes_Resource $role)
    {
        $returnValue = array();

        
        try{
        	$serial = self::buildIncludedRolesSerial($role);
        	$fromCache = ServiceManager::getServiceManager()->get('generis/cache')->get($serial); // array of URIs.

            foreach ($fromCache as $uri){
                $returnValue[$uri] = new core_kernel_classes_Resource($uri);
            }
        }
        catch (common_cache_Exception $e){
        	$roleUri = $role->getUri();
        	$msg = "Includes roles related to Role with URI '${roleUri}' is not in the Cache memory.";
        	throw new core_kernel_users_CacheException($msg);
        }
        

        return (array) $returnValue;
    }
public static function retrieveIncludedRoles ( core_kernel_classes_Resource $ role ) { $ returnValue = array ( ) ; try { $ serial = self :: buildIncludedRolesSerial ( $ role ) ; $ fromCache = ServiceManager :: getServiceManager ( ) -> get ( 'generis/cache' ) -> get ( $ serial ) ; // array of URIs.
 foreach ( $ fromCache as $ uri ) { $ returnValue [ $ uri ] = new core_kernel_classes_Resource ( $ uri ) ; } } catch ( common_cache_Exception $ e ) { $ roleUri = $ role -> getUri ( ) ; $ msg = "Includes roles related to Role with URI '${roleUri}' is not in the Cache memory." ; throw new core_kernel_users_CacheException ( $ msg ) ; } return ( array ) $ returnValue ; }
Retrieve roles included in a given Generis Role from the Cache memory.

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>

@param  core_kernel_classes_Resource $role A Generis Role Resource.

@return array
@throws \oat\oatbox\service\ServiceNotFoundException
@throws common_Exception
@throws core_kernel_users_CacheException
Retrieve roles included in a given Generis Role from the Cache memory .