Alias Property

View: New views
2 Messages — Rating Filter:   Alert me  

Alias Property

by Luis Gervaso :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

Is possible the definition of an alias property in a node.

This is only to make beautiful the path of a node

We have nodes like : /site/folders/mark/folders/documents

and we want to translate to /site/mark/documents

we can't change the structure so setting an alias property we can search
using xpath

BUT the real issue is : Can we make this alias "unique"?

BR
Luis

--
-------------------------------------------
Luis Alberto Gervaso Martin
Java EE Architect & Instructor
C/ Cuenca 4A, 2ºB
Getafe (Madrid)
SPAIN
mobile: (+34) 627983344
luis.gervaso@...

Re: Alias Property

by Alexander Klimetschek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Aug 1, 2008 at 7:35 AM, Luis Gervaso <luis.gervaso@...> wrote:

> Hi all,
>
> Is possible the definition of an alias property in a node.
>
> This is only to make beautiful the path of a node
>
> We have nodes like : /site/folders/mark/folders/documents
>
> and we want to translate to /site/mark/documents
>
> we can't change the structure so setting an alias property we can search
> using xpath

You could have reference properties, but you will most likely have to
change the queries (using jcr:deref(@prop) to dereference the nodes).

JCR 2.0 (JSR-283 http://jcp.org/en/jsr/detail?id=283) will have a
feature called "shareable nodes" that should fit your use case quite
well.

> BUT the real issue is : Can we make this alias "unique"?

What do you mean by "unique"?

Regards,
Alex


--
Alexander Klimetschek
alexander.klimetschek@...
LightInTheBox - Buy quality products at wholesale price!