* Called when a blog entry has been changed.
*
* @param event a BlogEntryEvent instance
*/
public void blogEntryChanged(BlogEntryEvent event) {
BlogEntry blogEntry = event.getBlogEntry();
if (blogEntry.isPublished()) {
List propertyChangeEvents = event.getPropertyChangeEvents();
Iterator it = propertyChangeEvents.iterator();
while (it.hasNext()) {
PropertyChangeEvent pce = (PropertyChangeEvent)it.next();
String property = pce.getPropertyName();
// only if the tags or categories change do we need to reindex the tags
if (property.equals(BlogEntry.TAGS_PROPERTY) || property.equals(BlogEntry.CATEGORIES_PROPERTY)) {
blogEntry.getBlog().getTagIndex().unindex(blogEntry);
blogEntry.getBlog().getTagIndex().index(blogEntry);
}
}
}
}