Task #6297
closedStory #6296: authMN SM.accessPolicy out of synch with CN and replicaMN
Create MN->CN sync script
0%
Description
As a first pass, this could be a good way to A) fix the issues we have currently with GOA packages being private on the CN and B) learn the ins and outs of the method calls before including in the Metacat project as part of its normal operations when access control rules are updated.
Something like:
./synchACL.sh <authMN> <targetCN> <listOfPids> [authMN certificate path]
And the calls would be along the lines of:
# loop through the given list of identifiers for each <pid> in <listOfPids>: # get the SystemMetadata.serialVersion from the CN's SystemMetadata serialVersion =targetCN.getSystemMetadata(pid).serialVersion # get the authMN's SystemMetadata.accessPolicy sysMeta = authMN.getSystemMetadata(pid) # set the SystemMetadata.accessPolicy on the CN targetCN.setAccessPolicy(sysMeta.accessPolicy, serialVersion)
Methods referenced:
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNRead.getSystemMetadata
http://mule1.dataone.org/ArchitectureDocs-current/apis/MN_APIs.html#MNRead.getSystemMetadata
http://mule1.dataone.org/ArchitectureDocs-current/apis/CN_APIs.html#CNAuthorization.setAccessPolicy
Types referenced:
http://mule1.dataone.org/ArchitectureDocs-current/apis/Types.html#Types.SystemMetadata
http://mule1.dataone.org/ArchitectureDocs-current/apis/Types.html#Types.AccessPolicy
Updated by Peter Slaughter almost 11 years ago
- Status changed from New to Resolved
- translation missing: en.field_remaining_hours set to 0.0