Changes between Version 6 and Version 7 of metadatachanges


Ignore:
Timestamp:
Jan 9, 2012, 5:49:37 AM (12 years ago)
Author:
simonp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • metadatachanges

    v6 v7  
    5757
    5858To illustrate the third approach, let's examine a typical scenario where we wish to capture changes to the privileges of a metadata record made by a user in the 'Set Privileges' function:
    59  * This function ultimately calls the setOperation method in the DataManager to change the privileges for the metadata in the database.
    60  * In setOperation we have added a call to setHistory in the SvnManager which records the id of the metadata record against the database channel.
     59 * This function ultimately calls the setOperation method in the !DataManager to change the privileges for the metadata in the database.
     60 * In setOperation we add a call to setHistory in the !SvnManager which records the id of the metadata record against the database channel.
    6161 * When the database channel is committed at the end of the 'Set Privileges' function, the listener on the database channel reads the privileges for the metadata record and commits any changes to the subversion repository.
    6262
     63Lastly we should mention that the metadata properties are stored in the subversion repository as XML files. The typical structure of a directory for a metadata record in the repository consists of a directory (named after the id of the metadata record) which contains:
    6364
     65 * metadata.xml - a record of changes to the content of the metadata record itself
     66 * owner.xml - an XML file describing the owner of the metadata record
     67 * privileges.xml - an XML file describing the privileges of the metadata record
     68 * categories.xml - an XML file describing the categories to which the metadata record has been assigned
     69 * status.xml - an XML file describing the status of the metadata (eg. Approved, Rejected, etc)
     70
     71All XML files describing the properties of the metadata record are generated by SELECT statements on the relevant tables in the database.
    6472
    6573=== Backwards Compatibility Issues ===