/** * get default view. * * @return Enum */ public function getDefaultView() { if (!$this->mRoot->mContext->mUser->mIdentity->isAuthenticated()) { return $this->_getFrameViewStatus('ERROR'); } $this->mHandler =& Cosmoapi_Utils::getTrustModuleHandler('data', $this->mAsset->mTrustDirname); $this->_getId(); if (!$this->mHandler->setDirname($this->mDirname)) { return $this->_getFrameViewStatus('ERROR'); } $this->mFilePath = $this->mHandler->getItemFilePath($this->mItemId); if (!$this->mFilePath) { return $this->_getFrameViewStatus('ERROR'); } return $this->_getFrameViewStatus('SUCCESS'); }