roxy
roxy copied to clipboard
Granular "Data" permissions and collections
I would like to have more granular control over the permissions and collections being applied to the documents I put in the Data directory.
I think xqsync keeps a metadata document which stores permissions and collections when syncing from ML to a filesystem/zip. Could this format be used?
This is related to #106, but goes further.
You can do this with MLCP too..
I propose closing this, since Roxy is integrated with MLCP and MLCP can already do this. If anyone thinks this still needs to be added to Roxy, please speak up.
I still think it would be useful to support it in Roxy. In my scenario the container running Roxy does not Java runtime so MLCP is not an easy option. I tries to set
options[:collections]="my-collection"
but that does not seem to work. From AccessLog I can see:
"PUT /insert?uri=%2Ftest%2Fxray%2Ftriplestore%2Fparent%2Fparent-11.xml&coll=my-collection&perm=Raptp-dev-role&perm=Uaptp-dev-role&tzoffset=3600&dbname=aptp-dev-content-test XDBC/1.0" 200 0 - ""
But the document does not have collection.
Nervermind options[:collections] works to set collection.
I'm a little reluctant to support granular permissions and collections. People will likely think such a configuration is cumbersome, and rather tie things to a directory structure instead. I think the ml load command would be useful for this. #106 already suggests adding collection support, this could add command-line permission support on top. Should be relatively straight-forward to add..