Pebble 2.0.0-RC2 available
Just a quick note to say that Pebble 2.0.0-RC2 is up on SourceForge and you can download it from here. This release contains a handful of bug fixes, a first cut of all documentation and some basic user admin features for admin users. Speaking of which, the ROLE_PEBBLE_ADMIN role has been renamed to ROLE_BLOG_ADMIN, so you'll need to change any references as appropriate. If you're using the out-of-the-box security realm implementation, this will mean modifying the properties files underneath the realm subdirectory of your Pebble data directory. Thanks to everybody that has provided feedback. :-)
Re: Pebble 2.0.0-RC2 available
I'm writing a content management system on top of Pebble 2.0 and since it needs to handle additional file types apart from images, files and themes I'm considering refactoring the FileManager and the FileMetaData classes to support additional types so I can leverage existing actions etc.
Would you be inclined to patch the current source code if I send you a patch or should I rather reimplement the classes myself since you wont patch anyways?
Thanks.
Re: Pebble 2.0.0-RC2 available
As always updating to a new version of Pebble was very easy. I really like the new block of administration links. They significantly decrease the effort it takes to add new users and will help keep the admin time down to a minimum. The addition of those links was more than enough to convince me to deploy the new version on my 'production' machine (i.e. my server) rather than merely on the 'development' machine (i.e. my laptop).
I do have one minor question: how do I get the 'pebble' theme to show up on the front page of my multi-blog deployment? I have several blogs hosted on one server and I reset the theme on each individual blog to match my preference. However, I don't see an interface for so updating the http://domain/pebble/ page. I presume this page is supposed to use a 'default' theme. In fact, it is using the theme I see displayed on your blog right now. However, I really like the 'pebble' theme and would like to see it even when I am merely doing administrative fiddling with the blogs.
Re: Pebble 2.0.0-RC2 available
I have patched Pebble 2.0RC2 to make it possible to handle additional filetypes using the core Pebble framework. I have done it by modifying the net.sourceforge.pebble.domain.FileMetaData and moving the information about the possible filetypes to an enum (net.sourceforge.pebble.domain.TypeEnum). This enum may be subclassed in my application to provide support for additional filetypes. I have used the enum from Jakarta Commons Lang because Java 5 enums doesn't support subclassing.
The filetypes usable by the Pebble instance is configured using a factory (net.sourceforge.pebble.domain.TypeEnumFactory) which is instantiated and set in the net.sourceforge.pebble.Configuration object using the applicationContext-pebble.xml file. The actual bean set is configured from the included pebble_import_factories.xml file since I need to replace the factory easily from my build.xml. I also need to replace the FileDAOFactory so that bean definition has been moved to the xml-file as well.
The applicationContext-acegi-security.xml has been modified as well to import a bean instance from pebble_import_acegi.xml since I also need to be able to easily add something here from my build.
I have put the patch file itself on my blog for downloading (http://lekkimworld.com/files/pebble_patches/pebble2.0RC2_filetypes_04092006.patch). I have also put a modified Pebble build on my blog for download (http://lekkimworld.com/files/pebble_patches/hrm_pebble_04092006.war) where you can see how the final result looks like with an added filetype (Polar HRM Files). As you might notice I have also added the possibility of specifying whether the individual filetypes may be managed and whether new directories may be added to the containing filetype directory by the user.
Let me know what you think.
Re: Pebble 2.0.0-RC2 available
not to rush you in any way but I am continuing to look at the FileManager and FileMetaData classes and patching away to make it easier to add custom filetypes. I just added the possibility to decide on a per filetype basis how the uploaded files should be stored in the filesystem. For example - my custom files should be stored in a <year>\<month> subdirectory based on the filename.
I have made an example of how that could be implemented by extending the TypeEnum with a FilenameStrategy interface which is then used from the UploadFileAction class.
While doing this I have also made some touch-ups on the FileMetaData class to fix the getParent() method and make it consistant what the getPath() method returns and what the getAbsolutePath() method returns.
What is the best way to sending you these patches? Via comments or via e-mail?
Thanks.
Simon is a hands-on software architect who works within 