/**
  * Execute the api call to get user app list.
  */
 public function execute()
 {
     $isAdmin = Api_Bo_Users::isUserAdmin($this->getUserId());
     if (!$isAdmin) {
         throw new Exception('Only the administrator set network properties.');
     }
     $this->checkDefaultApp();
     $enid = $this->m_nid;
     $eprops = array();
     foreach ($this->m_props as $name => $val) {
         $ename = $name;
         $eval = $val;
         $eprops[$ename] = $eval;
     }
     Api_Bo_Network::setNetworkProperties($this->getUserId(), $enid, $eprops);
     return true;
 }