NCEAS / morpho

Morpho metadata editor
GNU General Public License v2.0
3 stars 1 forks source link

How can we change the access policy for the resource map document #1028

Closed mbjones closed 6 years ago

mbjones commented 6 years ago

Author Name: Jing Tao (Jing Tao) Original Redmine Issue: 5881, https://projects.ecoinformatics.org/ecoinfo/issues/5881 Original Date: 2013-02-22 Original Assignee: ben leinfelder


When we create a data package with a data object by the new data package wizard and entity wizard, a resource map document will be generated as well.

Morpho has explicit ways to change the the access policy for the metadata and data objects. There is no explicit ways to modify the access policy for the resource map document. I guess we has implicit way for the resource map - it will be modified when you modify the access rules for the metadata object (eml document). However, this doesn't work. After i successfully modified the metadata's access policy, the resource map doesn't change.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Matt Jones (Matt Jones) Original Date: 2013-02-23T00:59:09Z


Making it match the EML document is the best course for now I think. It will be confusing to have a separate approach for packages than EML.

mbjones commented 6 years ago

Original Redmine Comment Author Name: ben leinfelder (ben leinfelder) Original Date: 2013-02-23T07:46:22Z


Now setting the ORE permissions when setting EML permissions on the CN. Using the naming convention where "resourceMap_" is prepended to the EML identifier. This is fragile. Perhaps we can look up the ORE identifier from the CN since it has query capabilities that should expose this information.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Jing Tao (Jing Tao) Original Date: 2013-02-25T22:49:10Z


I just tested to change a local data package's access policy. The resource map file still keeps the same. In other word, changing the local eml document's access policy doesn't change the local resource map file.

mbjones commented 6 years ago

Original Redmine Comment Author Name: ben leinfelder (ben leinfelder) Original Date: 2013-02-25T22:55:48Z


I hadn't written code to do that since I thought no one would ever see it, but if we save a local package to the network, those access rule will apply. I will add code to the local data store to handle local setAccess for ORE. Thank you

mbjones commented 6 years ago

Original Redmine Comment Author Name: ben leinfelder (ben leinfelder) Original Date: 2013-02-25T23:58:54Z


Now saving the ORE systemMetadata changes locally when setting access policy and replication policy.

mbjones commented 6 years ago

Original Redmine Comment Author Name: Redmine Admin (Redmine Admin) Original Date: 2013-03-27T21:31:59Z


Original Bugzilla ID was 5881