Hi,
I've posted this to [EMAIL PROTECTED], but as there is no open discussion (mailing list/newsgroup) I post my first impressions into this archive as well:


I'm currently having a first look at the api and like to share my very first impressions:
First of all, it looks very mature. Congratulations to all for this great work!
Now I'll write down some comments while looking at the api.
I assume that the api can be used locally and remote, depending on the implementation. The standard case for sure is to talk to a repository that is located on a different machine, so I'll look at it as a remote api.
As Geoff Clemm worked on this api, I'd be interested in how it is related to WVCM. JSR-147 also deals with remote content repository access so I'm interested in figuring out all of this...


* Ticket Interface
- getNodeByAbsPath(String path)
This is an ugly method name. It would be much better (might be a matter of taste, but I don't like shortcuts) to have a method like


getNode(Path path)

So the Path-class could deal with relative and absolute paths and have some nice helper methods. Think of something like this

interface Path {
  boolean isRelative();

  boolean isAbsolute();

 Path append(Path path);

  boolean isDescendant(Path path);

  boolean isAncestor(Path path);

  boolean isChild(Path path);

  ...
}

The same for getNode(UURI uuri)...

- What about this revert/save methods?
In the java world I'd expect that a content repository is accessed using JCA. Any datasource is configured in the J2EE-specific way.
Think of the following scenario:
An application is using different datasources (oracle rdbms, content repository via jsr-170). So the user is starting a transaction and doing some modifications to the data. The transaction manager cares if the data should be rolled back or commited.
Depending on the transactions isolation level the user can query the repository or database via it's query languages (sql, xpath or JCRQL) and gets the result including the changes he made.
So why should the user care of any save/revert methods? Is search only possible on the repository data after save()?


I'll have a closer look on the api soon and I can post some more if comments are appreciated.

Regards,
Daniel Florey


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to