[opencms-dev] HowTo create a resource in opencms 6
Thierry Collogne
tcollogne at hotmail.com
Tue Dec 20 11:49:06 CET 2005
Hi,
I'm new to opencms and to learn it, I 'm following the book from Matt
Butcher.
This book was written for opencms 5, so some features are different.
I'm no experinmenting with the api and it seems that it has changed a lot.
At some time in the book, a resource is created using the following method:
createResource(java.lang.String newResourceName, java.lang.String type,
java.util.Map properties, byte[] contents, java.lang.Object parameter)
This method is not present in opencms 6. Instead, there is the following:
createResource(java.lang.String resourcename, int type, byte[] content,
java.util.List properties)
I have no idea how to use the new one. What value should I use for type
(int???). What objects is the properties List composed of?
Thanks,
Thierry Collogne
More information about the opencms-dev
mailing list