The FsDaemon
The FsDaemon is a separate application that listen incoming request. The FsDaemon handles all the requests a client can make on the FileSystem.
- MenuRequest : Request the MenuTree
- MenuRequestEx: Request the MenuTree ignoring files matching specific name or extension passed in argument
- AccessTreeRequest : Request the AccessTree
- PermRequest : Request Permissions for a node
- PropRequest: Request a property of a node
- AllGroupsRequest : Request all the groups defined in the LDAP
- PropsRequest : Request all the properties of a node
- SearchRequest: Make a search with terms
- ClearCache: Clear the cache of the user (called when user is disconnected)
- IsAdminRequest: Is the user an admin ?
- IsEditorRequest: Is the user an editor ?
- SavePropertiesRequest : Save properties of a node on the disk
- SavePropertyRequest : Save a property of a node on the disk
- CreateNodeRequest : Create a node on the disk with config files and in the tree
- RenameNodeRequest: Rename a node (on disk, in tree,..)
- DeleteNodeRequest: Delete a node (on disk, in tree,..)
- RootPathRequest : Request the root path
- GetTreeVersion : Get the stamp of the last FileSystemTree that was created
For each request the user must be authenticated first (an Auth Request should have been made before). Every request return a response that takes into account the rights of the user to access a node
The FsDaemon can be launched using different options: Usage :
- [-h | –host] value : connect on host
- [-p | –port] value : connect on port
- [–protocol] value : use protocol
- [–daemonize] : run server in background
- [–root] : Filesystem root path
- [–help] : display this help message
- [–pid] value : write PID in file