[JemBlog-Develop] CVS now up
Brought to you by:
dannyayers
From: Danny A. <dan...@vi...> - 2003-03-21 17:44:57
|
Hi, I've just discovered that I wasn't subscribed to the list any more - I guess some mail must've bounced. Anyhow I've put the latest sketchy source up on to CVS. It is *very* rough, but you should be able to make some sense of it from the package/class naming. The org.idea.common.features.FeatureSet classes that I've been using a lot are effectively a substitute for java.util.Properties, just key-value pairs. I've quoted the snippet again below, this might still be valid. Now to catch up with the archives... Cheers, Danny. The snippet : // Initialize system BlogManager.init(); // Create a user User me = BlogManager.usersDB.createUser(); me.setName("John"); me.setPassword("secret"); // Create a blog Blog myBlog = BlogManager.blogsDB.createBlog(); myBlog.addUser(me); myBlog.setTitle("John's Blog"); // Add an item to the blog Item item = myBlog.createItem("http://example.org"); item.setTitle("Big news!"); item.setDescription("Today a new blog was created"); // Get the RSS representation of the blog System.out.println(myBlog.getChannel()); ---- http://dannyayers.com |