public function addPagePrivileges(Page $page)
    {
        if ($this->addPagePrivilegeStatement == null) {
            $this->addPagePrivilegeStatement = $this->connection->prepare("
              INSERT INTO UserPrivileges (username, rootPrivileges, sitePrivileges, pageId) VALUES (?,0,0,?)");
        }
        $success = true;
        try {
            $this->addPagePrivilegeStatement->execute(array($this->user->getUsername(), $page->getID()));
        } catch (PDOException $e) {
            $success = false;
        }
        if ($success) {
            $this->pagePrivilege[$page->getID()] = 1;
        }
    }