18 WsNode(fullPath, rootPath),
44 if (props->
get(
"global",
"public_site",
"false") ==
"true") {
52 if (props->
get(
"global",
"inherit_rights_from_parent",
"false") ==
"true") {
54 return parent.get()->isAllowed(gids);
56 }
else if (
m_properties.get()->get(
"global",
"inherit_rights_from_parent",
"false") ==
"true") {
57 if (!parent.get() == 0) {
59 return parent.get()->isAllowed(gids);
80 string s =
m_properties.get()->get(
"global",
"in_parent",
"true");
std::vector< std::string > getResource(ResourceType t, bool recurse=false)
get the resource of a node Not implemented yet
boost::shared_ptr< WsAbstractNode > NodePtr
bool isDirectory()
return true
Represents a node on disk.
bool isAllowed(const std::set< string > &gids)
return true if one of the groups contained in gids has access to the node false otherwise If the node...
bool getDisplayInParent()
const vector< NodePtr > getAll()
combine the vector of files and directories into a single one
set< string > getGroups()
returns the list of the groups allowed to access this node
NodePropertiesPtr m_properties
WsNodeResources * m_resources
void setResources(WsNodeResources *resources)
std::string get(const std::string §ion, const std::string &id, const std::string &def)
const uintmax_t getSize()
returns the file size. If the Node is a WsDirNode, 0 is returned. if the global property dir_size is ...
bool isRegularFile()
return false
static WsGlobalProperties * instance()