El lun, 27-02-2006 a las 09:41 +0100, Andreas Hartmann escribió: > Thorsten Scherler wrote: > > Hi all, > > > > I would like to extend the ResourceManager.java with following method: > > addResource(Document document, Part part, Map metaData, MetaData > > customMeta) throws... > > > > In the default implementation I want to add in this method that not only > > the metadata will add to the asset but as well to the MetaData that got > > passed into it. > > I don't quite understand. Could you please elaborate a bit more? > Thanks! >
El sáb, 25-02-2006 a las 02:07 +0100, Thorsten Scherler escribió: > > can you explain a bit more? Maybe give a real-world example? > > Well, I am researching to extend lenya with a mediaType resource type. > Above interface is responsible to add assets (resources) to lenya. If > you add an asset then you add as well some meta data (e.g. height) > regarding the asset. > > Now in the case of mediaType documents you need this information in > the > meta data of this doc. The now implemented code change allows to pass > any metada to the ResourceManager and storing the asset information as > well there. > > Still this is just one example where I do not understand the > difference > between resource and documents, because IMO both are just content and > should use one interface! What parts do you not understand? Thx salu2 -- Thorsten Scherler COO Spain 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]
