J. Wolfgang Kaltz wrote:
Michael Wechner schrieb:
J. Wolfgang Kaltz wrote:
Michael Wechner schrieb:
(...)
if one wants to use Lenya as "DMS" where WebDAV might be handy as
well, then it
definitely makes sense that also a type "leaf/resource" is
supported, e.g. for
offer.doc
cv.sxw
report.pdf
In current Lenya, these would assets, not documents, so created via
a different mechanism than the one we were talking about here (the
old ParentChildCreatorInterface)
well, I am not talking about the current situation, because the
current situation how
assets are treated is not very good, because they cannot really be
reused, or versioned,
or whatsoever.
yes, but the interface we are currently discussing simply is not about
assets,
it is, if you for instance create an Asset-Doctype
it is ParentChildCreatorInterface (renamed to NodeCreatorInterface),
which is for documents. So I don't see what a parameter for
ParentChildCreatorInterface, which is used for documents, has to do
with assets.
one can imagine creating an Asset-Doctype which consists of Meta-Data
and a reference to
the actual asset
If we are talking about designing a new API for creating documents and
assets in a similar fashion, then we should talk about that API and
what its requirements would be. But that is another discussion !
this discussion is leading to discussion about a new API
it's not a limitation, it's a flexibility with a default setting,
but I don't
want to start another religious thread here.
it doesn't offer anything that i can think of. yes its flexible,
but useless.
I don't think it's useless at all (see above). Why do you consider
it useless?
The thing is that the interface had a parameter of type short, to
distinguish between "leaf" and "branch" node, but this parameter had
no effect. It was not stored anywhere, nor was it accessed at any
point in Lenya.
maybe not within the default or the blog publication, but I guess
there used or are
other third-party publications which make use of it
I don't understand what you mean by "make use of it".
use this parameter
The Lenya core did not do anything with the parameter, did not store
it, and did not access it.
it's being passed on to the actual creator resp.
src/java/org/apache/lenya/cms/authoring/DefaultCreator.java
src/java/org/apache/lenya/cms/authoring/ParentChildCreatorInterface.java
So anything a custom publication would have done with this parameter
would be completely custom, and not make use of anything in the core.
no, the samples might not make use of them anymore
Please see also below regarding the interface
So I have removed it, since IMHO interfaces which suggest some
mechanism which doesn't exist are "not a good thing".
if the "API" does provide a method, but the samples don't, then that
doesn't mean it's not
being used
If we need to distinguish leaves and branches for editable
documents, we will have to see how to implement it; but the current
code was not providing this in any case.
Hope that clarifies things
it clarifies why you thought it's obsolete, but I think it should be
re-inserted for the reasons of the examples I have provided above.
The "creator" interface in trunk has been changed for several reasons;
but most importantly because it no longer uses java.io.File. In my
understanding, it was a consensus in Lenya to move away from
java.io.File towards URIs and a repository.
that's fine, but has nothing to do with the decision to have BRANCH and
LEAF or only BRANCHES
So this means that if anybody has implemented a custom implementation
of a document creator, she would need to change it anyway.
and that's one of the problems. The other problem is that Lenya doesn't
allow anymore to
create resources of type LEAF
If my omission of a parameter of type short in the new interface is a
problem, I can put it back in again; but please see also the other
thread where Andreas is suggesting to remove the creator interface
altogether.
I don't think we should get rid of the creator interface altogether.
Michi
--
Wolfgang
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Michael Wechner
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]