Differences between revisions 8 and 9
Revision 8 as of 2010-11-24 15:46:29
Size: 1162
Editor: JustineSmith
Comment:
Revision 9 as of 2010-11-24 16:02:56
Size: 1060
Comment: Removing spam
Deletions are marked like this. Additions are marked like this.
Line 46: Line 46:

* [[http://ezinearticles.com/?SEO-Advice:-What-Are-the-Best-First-Steps?&id=5322896|Michigan SEO]]

Options:

Use JCR Directly

Client code example:

Node node = (Node) session.getItem("/foo/bar");
Node content = node.getNode("jcr:content");
long lastModified = content.getProperty("jcr:lastModified").getLong()
  • Advantages
    • No Java API definition necessary (content model is API)
    • All JCR features can be used
  • Disadvantages
    • Verbose
    • No Lenya-specific code completion

Lenya Publication API

Client code example:

Document doc = session.getDocument("/foo/bar");
long lastModified = doc.getLastModified();
  • Open issues
    • Object-JCR mapping?
  • Advantages
    • Minimal amount of client code (not verbose)
  • Disadvantages
    • With a layered approach (hiding all layers below the publication API), only the repository features exposed by the API can be used

Via Sling

  • Open issues
    • Status of OSGi-fication of Cocoon
  • Advantages
    • Out-of-the-box features
      • REST access for CRUD
      • DOJO store from repository content
    • Community
    • Tools

JcrIntegrationApproach (last edited 2010-11-24 16:02:56 by RichardFrovarp)