rails + jcr
Post on 10-May-2015
2.141 Views
Preview:
DESCRIPTION
TRANSCRIPT
JCR + Rails = ?
© ThoughtWorks 2008
Who Am I
WPC
ThoughtWorker
10 years of programming life: C++ -> Prolog -> more C++ -> java, C++ -> Java -> Ruby -> Ruby + JS -> Ruby, JS, java
Selenium
Mingle (http://www.thoughtworks-studios.com)
What Is This Presentation About
Introduction Java Content Repository
A small framework help using it in JRuby Rails
What it is interesting about
Where to use it
© ThoughtWorks 2008
© ThoughtWorks 2008
So, what the heck is Content Repository?
© ThoughtWorks 2008
A content repository is a hierarchical content store with support for structured and unstructured content
© ThoughtWorks 2008
From Rakesh Vidyadharan
© ThoughtWorks 2008
a lot of interesting features include:
Full text searchVersioningTransactionsRepository level observationQuery LanguageSecurity controlImport/Export/Merge…
And more
© ThoughtWorks 2008
Java Content Repository = JSR170 / JSR283
Open Source Implementation = Apache Jackrabbit
© ThoughtWorks 2008
Using JRuby to Access the Repository
© ThoughtWorks 2008
What it can bring to Rails?
© ThoughtWorks 2008
Flexible Schema Free Record
© ThoughtWorks 2008
Built-in full text search support (using Lucene)
© ThoughtWorks 2008
And powerful versioning function
© ThoughtWorks 2008
And robust hierarchy storage
© ThoughtWorks 2008
Xpath or SQL as Query language
© ThoughtWorks 2008
User defined Node Type
© ThoughtWorks 2008
More
Concurrent EditingBuilt-in access controlRepository ObservationExport/Import as XML formatData store support
© ThoughtWorks 2008
Concerns:
PerformanceScalabilityMaintainability…
© ThoughtWorks 2008
Resources
JSR 170 & JSR 283
Jackrabbit
Modeling http://wiki.apache.org/jackrabbit/DavidsModel
© ThoughtWorks 2008
Related code is pushed to
http://github.com/wpc/jcr-rails-demo
PS: Don’t use it in production
© ThoughtWorks 2008
Hey, the spike is far not finished yet
Drop me a mail if you are interested in
pwang@thoughtworks.com / alex.hal9000@gmail.com
© ThoughtWorks 2008
Q & A
top related