14 #ifndef WS_FS_TREE_CLIENT_H__
15 #define WS_FS_TREE_CLIENT_H__
37 WsFsTreeClient(
const std::string&
id,
const std::string& pass,
const std::string& ip);
62 std::string
getProperty(
const std::string& section,
const std::string& p,
const std::string& prop);
82 int getLock(
const std::string& path);
87 int putLock(
const std::string& path);
92 int isLocked(
const std::string& path, std::string& uid);
132 int renameNode(
const string& path,
const string& newPath);
137 int saveProperty(
const std::string& path,
const std::string& section,
const std::string& attr,
const std::string& val);
WsFsTreeOperations * m_operation
Reprensents the menu tree of a group. If a group does not have access to a Node, this Node will not s...
const std::string getRootPath()
return the root path of the filesystem tree, example : /var/www/demo_site
int authentify()
authenticate the user and load it's params
boost::shared_ptr< WsAbstractNode > NodePtr
WsGlobalProperties * m_conf
int load()
loads the user info
int saveProperty(const std::string &path, const std::string §ion, const std::string &attr, const std::string &val)
sets one property of the node and save it on disk.
Redirect operations to adequate class.
std::string getProperty(const std::string §ion, const std::string &p, const std::string &prop)
returns the properties of a node
std::set< string > m_groups
std::set< string > getAllGroups()
virtual ~WsFsTreeClient()
desctrutor
WsFsTreeClient(const std::string &id, const std::string &pass, const std::string &ip)
constructor
const std::string & getFirstName() const
return the name of the person
int deleteNode(const string &path)
delete a node. The user must be an Admin on editor to remove the node In case of a WsDirNode...
const WsNodeProperties * getProperties(const std::string &p)
vector< WsResultItem > getSearchResults(const std::string &terms)
search for all matching results of terms using WsSearch class
const std::string & getEmail() const
return the email of the person
int isLocked(const std::string &path, std::string &uid)
int getPermissions(const std::string &p)
Load infos of the user.
int getLock(const std::string &path)
int saveProperties(WsNodeProperties *props, const std::string &path)
save the properties of the node on disk. The user must have access and edit rights for the node...
int putLock(const std::string &path)
std::vector< std::string > getTemplatesList(const std::string &path)
int renameNode(const string &path, const string &newPath)
renames a node In case of a WsDirNode, all the contents of the directory and the directory will be mo...
Abstract Interface between the WsUser class and the operation on the tree.
int createNode(const string &path, int type)
create a directory or File. If the node is a WsDirNode than it will be only accessible to the Admin a...
NodePtr getAccessRoot(const bool &forceUpdate=false)
return the root node of the access tree starting from the root
Interface between WsUser class and local tree.
Updates the tree and takes care of unconsistencies with the user.
const std::string & getSurname() const
return the surname of the person