You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Nachiket <na...@logicwind.com> on 2009/11/27 16:59:10 UTC

How to implement given scenario?

Hello guys,
I am evaluating  JCR and JackRabbit for a CMS (sort of) website.

Can anyone suggest, how to implement following scenario?
There will be nodes like

myweb/user
myweb/book

One user has few books in "virtual book self"  so I want to show List of
Book Links (or summary view) on User home page.. but when I click on That
book.. I can see that book page.. book details.. comments by others... and
most importantly "List of Users who has that book..." 

I am very impressed by Neo4J support for Graph.. I really liked it.. 

But, I feel  JCR (JSR) will benefit more in longer run (and you know it's
Apache project)

so, Please share your views for given scenario. 
(few pointers: if it is possible with JackRabbit 1.6 then how? Or possible
with only JackRabbit 2.0? How? )

Regards,
-- 
View this message in context: http://n4.nabble.com/How-to-implement-given-scenario-tp788763p788763.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: How to implement given scenario?

Posted by Guo Du <mr...@gmail.com>.
On Fri, Nov 27, 2009 at 5:02 PM, Nachiket <na...@logicwind.com> wrote:
> Can you explain? how to map (or get) reverse? from single Book to(=>) its
> Users?

You may manually maintain the releation, such as create following nodes:
myweb/user/user1/mybook1 (reference to myweb/book/book1)
myweb/book/book1/readers/user1 (reference to myweb/user/user1)

If you don't create second reference, you could using search api to
find out who has reference to myweb/book/book1

Hope it helps.

-Guo

Re: How to implement given scenario?

Posted by Nachiket <na...@logicwind.com>.
Dear Alexander,
thanks for quick response.

I mentioned 2.0 is because it supports shared nodes. ( I read some of its
features)

> Can anyone suggest, how to implement following scenario?
> > There will be nodes like
> >
> > myweb/user
> > myweb/book
> >
> > One user has few books in "virtual book self"  so I want to show List of
> > Book Links (or summary view) on User home page.. but when I click on That
>
> > book.. I can see that book page.. book details.. comments by others...
> and
> > most importantly "List of Users who has that book..."
> >
> > I am very impressed by Neo4J support for Graph.. I really liked it..
> >
> > But, I feel  JCR (JSR) will benefit more in longer run (and you know it's
>
> > Apache project)
> >
> > so, Please share your views for given scenario.
> Have you looked at Apache Sling (http://sling.apache.org/)? It's a
> simple web framework on top of JCR and would perfectly fit your needs.
>

Apace Sling is out of option (atleast for current projects) .. we have to
use Spring MVC (as already invested lots of time and money for it,)

Can you explain? how to map (or get) reverse? from single Book to(=>) its
Users?

Regards,

On Fri, Nov 27, 2009 at 9:49 PM, Alexander Klimetschek [via Jackrabbit] <
ml-node+788779-1887948853@n4.nabble.com<ml...@n4.nabble.com>
> wrote:

> On Sat, Nov 28, 2009 at 01:29, Nachiket <[hidden email]<http://n4.nabble.com/user/SendEmail.jtp?type=node&node=788779&i=0>>
> wrote:
> > I am evaluating  JCR and JackRabbit for a CMS (sort of) website.
>
> Perfect match ;-)
>
> > Can anyone suggest, how to implement following scenario?
> > There will be nodes like
> >
> > myweb/user
> > myweb/book
> >
> > One user has few books in "virtual book self"  so I want to show List of
> > Book Links (or summary view) on User home page.. but when I click on That
>
> > book.. I can see that book page.. book details.. comments by others...
> and
> > most importantly "List of Users who has that book..."
> >
> > I am very impressed by Neo4J support for Graph.. I really liked it..
> >
> > But, I feel  JCR (JSR) will benefit more in longer run (and you know it's
>
> > Apache project)
> >
> > so, Please share your views for given scenario.
>
> Have you looked at Apache Sling (http://sling.apache.org/)? It's a
> simple web framework on top of JCR and would perfectly fit your needs.
>
> I also recommend to take a look at David's model:
> http://wiki.apache.org/jackrabbit/DavidsModel
>
> > (few pointers: if it is possible with JackRabbit 1.6 then how? Or
> possible
> > with only JackRabbit 2.0? How? )
>
> From a content model perspective, which IMHO your question is mostly
> about, there is no difference between 1.x and 2.0 (which supports the
> JCR 2.0 standard).
>
> Regards,
> Alex
>
> --
> Alexander Klimetschek
> [hidden email]<http://n4.nabble.com/user/SendEmail.jtp?type=node&node=788779&i=1>
>
>
> ------------------------------
>  View message @
> http://n4.nabble.com/How-to-implement-given-scenario-tp788763p788779.html
> To unsubscribe from How to implement given scenario?, click here< (link removed) =>.
>
>
>


-- 
Blog: http://blog.logicwind.com
Website: http://www.logicwind.com
Twitter: http://twitter.com/logicwind

-- 
View this message in context: http://n4.nabble.com/How-to-implement-given-scenario-tp788763p788808.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: How to implement given scenario?

Posted by Alexander Klimetschek <ak...@day.com>.
On Sat, Nov 28, 2009 at 01:29, Nachiket <na...@logicwind.com> wrote:
> I am evaluating  JCR and JackRabbit for a CMS (sort of) website.

Perfect match ;-)

> Can anyone suggest, how to implement following scenario?
> There will be nodes like
>
> myweb/user
> myweb/book
>
> One user has few books in "virtual book self"  so I want to show List of
> Book Links (or summary view) on User home page.. but when I click on That
> book.. I can see that book page.. book details.. comments by others... and
> most importantly "List of Users who has that book..."
>
> I am very impressed by Neo4J support for Graph.. I really liked it..
>
> But, I feel  JCR (JSR) will benefit more in longer run (and you know it's
> Apache project)
>
> so, Please share your views for given scenario.

Have you looked at Apache Sling (http://sling.apache.org/)? It's a
simple web framework on top of JCR and would perfectly fit your needs.

I also recommend to take a look at David's model:
http://wiki.apache.org/jackrabbit/DavidsModel

> (few pointers: if it is possible with JackRabbit 1.6 then how? Or possible
> with only JackRabbit 2.0? How? )

>From a content model perspective, which IMHO your question is mostly
about, there is no difference between 1.x and 2.0 (which supports the
JCR 2.0 standard).

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com