public function indexAction() { $this->metadata = new EngineBlock_AttributeMetadata(); $this->aggregator = EngineBlock_Group_Provider_Aggregator_MemoryCacheProxy::createFromDatabaseFor($this->attributes['nameid'][0]); $this->groupOauth = $this->user->getUserOauth(); $serviceRegistryClient = new Janus_Client_CacheProxy(); $this->spList = $serviceRegistryClient->getSpList(); $this->consent = $this->user->getConsent(); $this->spAttributesList = $this->_getSpAttributeList($this->spList); try { $this->spOauthList = $this->_getSpOauthList($this->spList); } catch (Exception $e) { $additionalInfo = new EngineBlock_Log_Message_AdditionalInfo($this->user->getUid(), null, null, $e->getTraceAsString()); EngineBlock_ApplicationSingleton::getLog()->critical($e->getMessage(), $additionalInfo); } }
protected function _getGroups($userId) { $groupProvider = EngineBlock_Group_Provider_Aggregator_MemoryCacheProxy::createFromDatabaseFor($userId); return $groupProvider->getGroups(); }
/** * @param string $userId Id of the user (urn:collab:...) * @return EngineBlock_Group_Provider_Abstract */ protected function _getGroupProvider($userId) { if (!isset($this->_groupProvider)) { $this->_groupProvider = EngineBlock_Group_Provider_Aggregator_MemoryCacheProxy::createFromDatabaseFor($userId); } return $this->_groupProvider; }
protected function _getGroupProvider($subjectId) { return EngineBlock_Group_Provider_Aggregator_MemoryCacheProxy::createFromDatabaseFor($subjectId); }