Andreas Hartmann schrieb:
Michael Wechner wrote:
[...]
I think you can still store the documents in a structured way, but
each document
has a unique ID which is mapped onto the path within the
hierarchy/structure, e.g. by
hashmap. This unique ID (uid) is then being used within the Scheduler
or for references
for instance and not the path itself.
IMO this is mostly a usability problem at document creation time. Right
now when the user creates a new document in the default publication, she
has to guess a document id which does not exist in this branch. This is
not ideal but still acceptable, as typically there will only be a few
documents within that branch. But if we want the user to provide a
publication-wide unique id at creation, Lenya will need to propose such
an id in the creation mask (a sort of auto-increment).
So IMO we need something like Publication.getNewUniqueDocumentId()
before changing the current id structure, otherwise we will have a big
usability issue.
But I am not sure where the last used id would be stored ... it would
clearly be too inefficient to look at the current documents and their
ids. Maybe we need to store some new structure, like a "publication
state node" ? The sitetree doesn't feel right for this.
--
Wolfgang
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]