Changes between Version 2 and Version 3 of HiddenElements
- Timestamp:
- 04/20/09 02:32:54 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HiddenElements
v2 v3 2 2 3 3 || '''Date''' || 2008/06/20 || 4 || '''Contact(s)''' || Simon Pigot, Stefano Giaccio ||4 || '''Contact(s)''' || Simon Pigot, Stefano Giaccio, Just || 5 5 || '''Last edited''' || [[Timestamp]] || 6 6 || '''Status''' || draft || 7 || '''Assigned to release''' || 2. 3||8 || '''Resources''' || Available||7 || '''Assigned to release''' || 2.5 || 8 || '''Resources''' || Done in geocat.ch sandbox || 9 9 10 10 == Overview == … … 13 13 14 14 Stage 1 – elements are not group related – apply to internet/public/intranet groups only[[BR]] 15 Stage 2 – add additional granularity via interface (component 2)[[BR]] 15 Stage 2 – add additional granularity via interface [[BR]] 16 17 [[Image(editor-hidden-elements-legend.png)]] 18 16 19 17 20 === Proposal Type === … … 35 38 5 components to deal with: 36 39 37 '''1.''' Template editor: additional controls for selecting elements that are to be hidden. Selected elements written to database on save/save and close.[[BR]] 38 '''2.''' Need an additional permissions interface to associate groups with XPaths (stage 2 – more sophisticated users)[[BR]] 39 '''3.''' Database changes: additional dependent table on OperationAllowed – OperationAllowedElements – schema: MetadataId, Xpath – related to OperationAllowed by MetadataId and GroupId[[BR]] 40 '''4.''' Query table and retrieve XPaths based on GroupId of UserSession, apply XPaths to JDOM tree before record returned from service – add ISO attribute (gco:nilReason=”withheld”) for ISO records only – track down all locations where this can happen – could be possible to apply this in DataManager getMetadata[[BR]] 40 '''1.''' Metadata/Template editor: additional controls for selecting elements that are to be hidden to a specific level internet/intranet/public. [[BR]] 41 '''2.''' Selected elements written to database on save/save and close.[[BR]] 42 [[Image(editor-hidden-elements.png)]] 43 44 '''3.''' Database changes: additional dependent table HiddenMetadataElements on schema: MetadataId, Xpath [[BR]] 45 '''4.''' Query table and retrieve XPaths based on GroupId of UserSession, apply XPaths to JDOM tree before record returned from service [[BR]] 41 46 '''5.''' Lucene index – concealed elements cannot be indexed because the index can be searched by anyone – the permissions systems is not applied until the record is displayed. The interesting outcome of leaving concealed info in the index is that a user could search and get a result on the concealed info but would not be able to see it when the record was displayed. [[BR]] 42 47 43 48 49 New improvements not done : 50 * add ISO attribute (gco:nilReason=”withheld”) for ISO records only – track down all locations where this can happen – could be possible to apply this in DataManager getMetadata 51 * group level authorisation. 44 52 45 53 === Backwards Compatibility Issues === 46 54 47 Previous installations (2.2 and earlier) will need to migrate to a new database if they want to use this – the implementation could be made to tolerate the missing table if necessary. 48 55 Previous installations (2.2 and earlier) will need to migrate to a new database if they want to use this. 49 56 Harvesting from versions < 2.2 – filter is applied to conceal elements regardless of group. 50 57