/** * 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'); } $req = $this->mRoot->mContext->mRequest; $path = $req->getRequest('path'); $file = new XCube_FormFile('file'); $this->mResult = $this->mHandler->upload($this->mDataId, $path, $file); return $this->_getFrameViewStatus('SUCCESS'); }