Bug fix for access control rules coming in from the dataone system metadata. Previously, the code used getLocalId() to get the docid to insert into the XML access table, but that docid included the revision number (e.g., foo.1.1), which it shouldn't. Now use the AccessionNumber class to strip off the rev to get a real docid for insertion into the table.
use both guid and docid when creating access row - then either mechanism can be used when retrieving the access rules
include GUID column for xml_access and related methods for storing/retrieving access rules
read and write D1 access policy rules from metacat xml_access table.still TBD: which mechanism takes precedence when there are systemMetadata access rules and EML access rules and other access rules?
include accessfileid and subtreeid when inserting xml_access values
fixed bug where permission would get set to -1 for no good reason
add connection serial number where it was missing.
Format and add comments.
move dbconnection object out of base class and create it for each db access so it can be released
Change access section in getaccesscontrol and getdocumentinfo apis to be more eml 2.1.0 compliant. Add a block access option to setaccess api.
change AccessControlForSingleFile to only be instantiated for one file. move ACL methods to AccessControlForSingleFile. Change format of access sections returned to EML 2.1.0.
Create access dao and centralized db access classes. Update create access code to combine access records for principal/doc/accesstype when multiple exist.