Andreas Hartmann wrote:
Michael Wechner wrote:
[...]
In my sandbox, I implemented InspectableSource in JCRNodeSource
(I already posted a message some time ago).
can you send that to me that I can give it a try
I attached the additional methods below.
To compile it, you have to add the dependency from the JCR
block to the repository block in gump.xml and enable the blocks
in local.blocks.properties.
thanks
How do you imagine providing access to the properties?
Property getProperty(...) {
return getNode().getProperty(...);
}
doesn't add much value ...
what do you mean by doesn't add much value?
Because getNode() can be called by the client code as well:
((JCRNodeSource) source).getNode().getProperty()
instead of
((JCRNodeSource) source).getProperty()
what I meant was that I want to use the Source to get the content of the
property, e.g.
<map:generate src="jcr://committers/andreas/email/>
if "email" is a property then one should receive something like
<property name="email">
[EMAIL PROTECTED]
</property>
whereas I am not sure if the above is correct JCR path syntax
Now such a source, you can get the corresponding Node and then do
whatever you want with it.
yes, I can list all nodes by using the TraversableGenerator, but I
think it
would make sense it the the JCR Source in combination with the
"FileGenerator"
would allow to get the content of a JCR property, e.g.
<property name="" value="">
....
</property>
That could probably be implemented using an
"InspectableTraversableGenerator"
or something like that ...
Well, I think it would make sense to stick to the source and map nodes
onto collections and properties onto resources.
Do you mean something like that?
node <-> directory
property <-> file
That would certainly make sense, because it allows to resemble arbitrary
JCR repos using a file system.
yes, whereas in the terminology of TraversableGenerator it would be
node <-> collection
property <-> resource
Michi
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]