Differences between revisions 37 and 38
Revision 37 as of 2008-06-30 12:47:34
Size: 1077
Comment:
Revision 38 as of 2009-09-20 23:27:58
Size: 1065
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 33: Line 33:
 * [wiki:JcrContentModelDraft Draft]
 * [wiki:JcrContentModelSiteStructure Site Structure]
 * [wiki:JcrContentModelAreas Areas]
 * [wiki:JcrContentModelTranslations Translations]
 * [[JcrContentModelDraft|Draft]]
 * [[JcrContentModelSiteStructure|Site Structure]]
 * [[JcrContentModelAreas|Areas]]
 * [[JcrContentModelTranslations|Translations]]

Best Practises for Content Models


Fundamental Decisions

Native JCR UUIDs vs. artificial UUIDs

  • Native:
    • Automatic referential integrity checks
    • Find links to a page using Node.getReferences()

    • UUIDs generated by repository
  • Artificial:
    • More flexibility re. modelling translations (multiple nodes can share a UUID)
    • Lenya 2.0.* repositories can be directly migrated
  • Combination
    • Native JCR UUIDs for referential integrity
    • Lenya UUIDs for internal links

Referential integrity check (via reference properties) for internal links?

  • Issues:
    • Pages containing links to non-published pages can't be published
    • Scheduled operations will fail (e.g. deactivation)
  • Probably does more harm than good.


JcrContentModel (last edited 2009-09-20 23:27:58 by localhost)