J. Wolfgang Kaltz wrote:
Andreas Hartmann schrieb:

(...) Maybe it makes sense to generalize DefaultDocument
and Resource re. the external meta data handling, or delegate this code
to another class.


That's a good idea, we currently have the problem that the creation is not generalized. The access is OK (going through the MetaDataManager), but creation is
- in Create.java usecase for documents
- in DefaultResourcesManager.java for assets


whereas it probably should be in DefaultCreator instead ?

Yes, I agree. Maybe the whole document creation should be handled by

  DocumentManager.add(
      DocumentType doctype,
      String area,
      String id,
      String language)

which would call the creator that is assigned to the doctype ...


That way any new type of creation might be able to share the metadata creation (e.g. NewBlogEntryCreator - does not write metadata as of yet)

I checked in the changes thus far as they are working; some open issues remain:
- should the index page of the default publication be of the resource type "homepage" ? I actually did not understand how the homepage resource type was handled thus far (how is "homepage" distinguished from "xhtml"?)

It looks like the homepage doctype is not used at all. No idea ...

- should blog entries have meta-data as well ? I suppose yes
- should we attempt to unify all meta-data creation within DefaultCreator ?

That would mean to use the DefaultCreator to create resources (assets) as well, wouldn't it? That would be a bit strange since the concepts of resource (asset) and document are separated at the moment. I'd rather introduce a new class or add the functionality to the MetaDataManager.

- the resource type matching does not yet use the new meta-data

I don't quite understand, what do you mean here?

-- Andreas


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



Reply via email to