Changes between Version 6 and Version 7 of metadatachanges
- Timestamp:
- Jan 9, 2012, 5:49:37 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
metadatachanges
v6 v7 57 57 58 58 To 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 theSvnManager 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. 61 61 * 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. 62 62 63 Lastly 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: 63 64 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 71 All XML files describing the properties of the metadata record are generated by SELECT statements on the relevant tables in the database. 64 72 65 73 === Backwards Compatibility Issues ===