//# 0 errors, 125 messages
//#
/*
    //#markunpublishedlistener.java:1:1: class: net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener
 * Copyright (c) 2003-2006, Simon Brown
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   - Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *
 *   - Neither the name of Pebble nor the names of its contributors may
 *     be used to endorse or promote products derived from this software
 *     without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.sourceforge.pebble.event.blogentry;

import net.sourceforge.pebble.domain.BlogEntry;
import net.sourceforge.pebble.util.SecurityUtils;
import net.sourceforge.pebble.api.event.blogentry.BlogEntryEvent;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.beans.PropertyChangeEvent;
import java.util.Iterator;
import java.util.List;

/**
 * Marks new and changed blog entries as unpublished.
 *
 * @author Simon Brown
 */
public class MarkUnpublishedListener extends BlogEntryListenerSupport {
    //#markunpublishedlistener.java:49: method: void net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener.net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener()
    //#input(void net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener()): this
    //#markunpublishedlistener.java:49: end of method: void net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener.net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener()

  /** the log used by this class */
  private static final Log log = LogFactory.getLog(MarkUnpublishedListener.class);
    //#markunpublishedlistener.java:52: method: net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener.net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init
    //#markunpublishedlistener.java:52: Warning: method not available
    //#    -- call on Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener
    //#    method: net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init
    //#    unanalyzed callee: Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#output(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): __Descendant_Table[net/sourceforge/pebble/event/blogentry/MarkUnpublishedListener]
    //#output(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): __Dispatch_Table.blogEntryAdded(Lnet/sourceforge/pebble/api/event/blogentry/BlogEntryEvent;)V
    //#output(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): __Dispatch_Table.blogEntryChanged(Lnet/sourceforge/pebble/api/event/blogentry/BlogEntryEvent;)V
    //#output(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): __Dispatch_Table.blogEntryPublished(Lnet/sourceforge/pebble/api/event/blogentry/BlogEntryEvent;)V
    //#output(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): __Dispatch_Table.blogEntryRemoved(Lnet/sourceforge/pebble/api/event/blogentry/BlogEntryEvent;)V
    //#output(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): __Dispatch_Table.blogEntryUnpublished(Lnet/sourceforge/pebble/api/event/blogentry/BlogEntryEvent;)V
    //#output(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): log
    //#output(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): net/sourceforge/pebble/api/event/blogentry/BlogEntryListener.__Descendant_Table[net/sourceforge/pebble/event/blogentry/MarkUnpublishedListener]
    //#output(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): net/sourceforge/pebble/event/blogentry/BlogEntryListenerSupport.__Descendant_Table[net/sourceforge/pebble/event/blogentry/MarkUnpublishedListener]
    //#post(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): __Descendant_Table[net/sourceforge/pebble/event/blogentry/MarkUnpublishedListener] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): net/sourceforge/pebble/api/event/blogentry/BlogEntryListener.__Descendant_Table[net/sourceforge/pebble/event/blogentry/MarkUnpublishedListener] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): net/sourceforge/pebble/event/blogentry/BlogEntryListenerSupport.__Descendant_Table[net/sourceforge/pebble/event/blogentry/MarkUnpublishedListener] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): __Dispatch_Table.blogEntryAdded(Lnet/sourceforge/pebble/api/event/blogentry/BlogEntryEvent;)V == &blogEntryAdded
    //#post(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): __Dispatch_Table.blogEntryChanged(Lnet/sourceforge/pebble/api/event/blogentry/BlogEntryEvent;)V == &blogEntryChanged
    //#post(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): __Dispatch_Table.blogEntryPublished(Lnet/sourceforge/pebble/api/event/blogentry/BlogEntryEvent;)V == &net/sourceforge/pebble/event/blogentry/BlogEntryListenerSupport.blogEntryPublished
    //#post(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): __Dispatch_Table.blogEntryRemoved(Lnet/sourceforge/pebble/api/event/blogentry/BlogEntryEvent;)V == &net/sourceforge/pebble/event/blogentry/BlogEntryListenerSupport.blogEntryRemoved
    //#post(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): __Dispatch_Table.blogEntryUnpublished(Lnet/sourceforge/pebble/api/event/blogentry/BlogEntryEvent;)V == &net/sourceforge/pebble/event/blogentry/BlogEntryListenerSupport.blogEntryUnpublished
    //#post(net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init): init'ed(log)
    //#markunpublishedlistener.java:52: end of method: net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener.net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener__static_init

  /**
   * Called when a blog entry has been added.
   *
   * @param event   a BlogEntryEvent instance
   */
  public void blogEntryAdded(BlogEntryEvent event) {
    if (!SecurityUtils.isBlogOwner()) {
    //#markunpublishedlistener.java:60: method: void net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener.blogEntryAdded(BlogEntryEvent)
    //#markunpublishedlistener.java:60: Warning: method not available
    //#    -- call on bool net.sourceforge.pebble.util.SecurityUtils:isBlogOwner()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener
    //#    method: void blogEntryAdded(BlogEntryEvent)
    //#    unanalyzed callee: bool net.sourceforge.pebble.util.SecurityUtils:isBlogOwner()
    //#input(void blogEntryAdded(BlogEntryEvent)): event
    //#input(void blogEntryAdded(BlogEntryEvent)): event.__Tag
    //#input(void blogEntryAdded(BlogEntryEvent)): net.sourceforge.pebble.domain.State__static_init.new State(State__static_init#4).__Tag
    //#input(void blogEntryAdded(BlogEntryEvent)): net.sourceforge.pebble.domain.State__static_init.new State(State__static_init#5).__Tag
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/api/event/blogentry/BlogEntryEvent.__Descendant_Table[net/sourceforge/pebble/api/event/blogentry/BlogEntryEvent]
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/api/event/blogentry/BlogEntryEvent.__Descendant_Table[others]
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/api/event/blogentry/BlogEntryEvent.__Dispatch_Table.getBlogEntry()Lnet/sourceforge/pebble/domain/BlogEntry;
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[net/sourceforge/pebble/domain/BlogEntry]
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[others]
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.addEvent(Lnet/sourceforge/pebble/api/event/PebbleEvent;)V
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.areEventsEnabled()Z
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.getState()Lnet/sourceforge/pebble/domain/State;
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.isPublished()Z
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.isUnpublished()Z
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.setPublished(Z)V
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.setState(Lnet/sourceforge/pebble/domain/State;)V
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/PageBasedContent.__Descendant_Table[net/sourceforge/pebble/domain/BlogEntry]
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/PageBasedContent.__Descendant_Table[net/sourceforge/pebble/domain/PageBasedContent]
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/PageBasedContent.__Descendant_Table[net/sourceforge/pebble/domain/StaticPage]
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/PageBasedContent.__Descendant_Table[others]
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/PageBasedContent.__Dispatch_Table.getState()Lnet/sourceforge/pebble/domain/State;
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/PageBasedContent.__Dispatch_Table.setState(Lnet/sourceforge/pebble/domain/State;)V
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/State.PUBLISHED
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/State.UNPUBLISHED
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/State.__Descendant_Table[net/sourceforge/pebble/domain/State]
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/State.__Descendant_Table[others]
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/State.__Dispatch_Table.equals(Ljava/lang/Object;)Z
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/State.__Dispatch_Table.getName()Ljava/lang/String;
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/StaticPage.__Dispatch_Table.getState()Lnet/sourceforge/pebble/domain/State;
    //#input(void blogEntryAdded(BlogEntryEvent)): net/sourceforge/pebble/domain/StaticPage.__Dispatch_Table.setState(Lnet/sourceforge/pebble/domain/State;)V
    //#pre[1] (void blogEntryAdded(BlogEntryEvent)): (soft) event != null
    //#pre[2] (void blogEntryAdded(BlogEntryEvent)): (soft) event.__Tag == net/sourceforge/pebble/api/event/blogentry/BlogEntryEvent
    //#presumption(void blogEntryAdded(BlogEntryEvent)): net.sourceforge.pebble.api.event.blogentry.BlogEntryEvent:getSource(...)@91 != null
    //#presumption(void blogEntryAdded(BlogEntryEvent)): net.sourceforge.pebble.api.event.blogentry.BlogEntryEvent:getSource(...)@91.__Tag == net/sourceforge/pebble/domain/BlogEntry
    //#unanalyzed(void blogEntryAdded(BlogEntryEvent)): Effects-of-calling:net.sourceforge.pebble.api.event.blogentry.BlogEntryEvent:getSource
    //#unanalyzed(void blogEntryAdded(BlogEntryEvent)): Effects-of-calling:setState
    //#unanalyzed(void blogEntryAdded(BlogEntryEvent)): Effects-of-calling:java.lang.String:equals
    //#unanalyzed(void blogEntryAdded(BlogEntryEvent)): Effects-of-calling:net.sourceforge.pebble.api.event.PebbleEvent
    //#unanalyzed(void blogEntryAdded(BlogEntryEvent)): Effects-of-calling:java.util.List:add
    //#unanalyzed(void blogEntryAdded(BlogEntryEvent)): Effects-of-calling:java.util.EventObject
    //#test_vector(void blogEntryAdded(BlogEntryEvent)): net.sourceforge.pebble.util.SecurityUtils:isBlogOwner(...)@60: {1}, {0}
      event.getBlogEntry().setPublished(false);
    }
  }
    //#markunpublishedlistener.java:63: end of method: void net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener.blogEntryAdded(BlogEntryEvent)

  /**
   * Called when a blog entry has been changed.
   *
   * @param event a BlogEntryEvent instance
   */
  public void blogEntryChanged(BlogEntryEvent event) {
    if (!SecurityUtils.isBlogPublisher()) {
    //#markunpublishedlistener.java:71: method: void net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener.blogEntryChanged(BlogEntryEvent)
    //#markunpublishedlistener.java:71: Warning: method not available
    //#    -- call on bool net.sourceforge.pebble.util.SecurityUtils:isBlogPublisher()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener
    //#    method: void blogEntryChanged(BlogEntryEvent)
    //#    unanalyzed callee: bool net.sourceforge.pebble.util.SecurityUtils:isBlogPublisher()
    //#input(void blogEntryChanged(BlogEntryEvent)): event
    //#input(void blogEntryChanged(BlogEntryEvent)): event.__Tag
    //#input(void blogEntryChanged(BlogEntryEvent)): event.propertyChangeEvents
    //#input(void blogEntryChanged(BlogEntryEvent)): net.sourceforge.pebble.domain.State__static_init.new State(State__static_init#4).__Tag
    //#input(void blogEntryChanged(BlogEntryEvent)): net.sourceforge.pebble.domain.State__static_init.new State(State__static_init#5).__Tag
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/api/event/blogentry/BlogEntryEvent.__Descendant_Table[net/sourceforge/pebble/api/event/blogentry/BlogEntryEvent]
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/api/event/blogentry/BlogEntryEvent.__Descendant_Table[others]
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/api/event/blogentry/BlogEntryEvent.__Dispatch_Table.getBlogEntry()Lnet/sourceforge/pebble/domain/BlogEntry;
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/api/event/blogentry/BlogEntryEvent.__Dispatch_Table.getPropertyChangeEvents()Ljava/util/List;
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[net/sourceforge/pebble/domain/BlogEntry]
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[others]
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.addEvent(Lnet/sourceforge/pebble/api/event/PebbleEvent;)V
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.areEventsEnabled()Z
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.getState()Lnet/sourceforge/pebble/domain/State;
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.isPublished()Z
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.isUnpublished()Z
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.setPublished(Z)V
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.setState(Lnet/sourceforge/pebble/domain/State;)V
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/PageBasedContent.__Descendant_Table[net/sourceforge/pebble/domain/BlogEntry]
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/PageBasedContent.__Descendant_Table[net/sourceforge/pebble/domain/PageBasedContent]
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/PageBasedContent.__Descendant_Table[net/sourceforge/pebble/domain/StaticPage]
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/PageBasedContent.__Descendant_Table[others]
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/PageBasedContent.__Dispatch_Table.getState()Lnet/sourceforge/pebble/domain/State;
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/PageBasedContent.__Dispatch_Table.setState(Lnet/sourceforge/pebble/domain/State;)V
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/State.PUBLISHED
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/State.UNPUBLISHED
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/State.__Descendant_Table[net/sourceforge/pebble/domain/State]
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/State.__Descendant_Table[others]
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/State.__Dispatch_Table.equals(Ljava/lang/Object;)Z
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/State.__Dispatch_Table.getName()Ljava/lang/String;
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/StaticPage.__Dispatch_Table.getState()Lnet/sourceforge/pebble/domain/State;
    //#input(void blogEntryChanged(BlogEntryEvent)): net/sourceforge/pebble/domain/StaticPage.__Dispatch_Table.setState(Lnet/sourceforge/pebble/domain/State;)V
    //#pre[1] (void blogEntryChanged(BlogEntryEvent)): (soft) event != null
    //#pre[2] (void blogEntryChanged(BlogEntryEvent)): (soft) event.__Tag == net/sourceforge/pebble/api/event/blogentry/BlogEntryEvent
    //#pre[3] (void blogEntryChanged(BlogEntryEvent)): (soft) event.propertyChangeEvents != null
    //#presumption(void blogEntryChanged(BlogEntryEvent)): java.beans.PropertyChangeEvent:getPropertyName(...)@84 != null
    //#presumption(void blogEntryChanged(BlogEntryEvent)): java.util.Iterator:next(...)@83 != null
    //#presumption(void blogEntryChanged(BlogEntryEvent)): net.sourceforge.pebble.api.event.blogentry.BlogEntryEvent:getSource(...)@91 != null
    //#presumption(void blogEntryChanged(BlogEntryEvent)): net.sourceforge.pebble.api.event.blogentry.BlogEntryEvent:getSource(...)@91.__Tag == net/sourceforge/pebble/domain/BlogEntry
    //#unanalyzed(void blogEntryChanged(BlogEntryEvent)): Effects-of-calling:net.sourceforge.pebble.api.event.blogentry.BlogEntryEvent:getSource
    //#unanalyzed(void blogEntryChanged(BlogEntryEvent)): Effects-of-calling:setState
    //#unanalyzed(void blogEntryChanged(BlogEntryEvent)): Effects-of-calling:java.lang.String:equals
    //#unanalyzed(void blogEntryChanged(BlogEntryEvent)): Effects-of-calling:net.sourceforge.pebble.api.event.PebbleEvent
    //#unanalyzed(void blogEntryChanged(BlogEntryEvent)): Effects-of-calling:java.util.List:add
    //#unanalyzed(void blogEntryChanged(BlogEntryEvent)): Effects-of-calling:java.util.EventObject
    //#test_vector(void blogEntryChanged(BlogEntryEvent)): java.lang.String:equals(...)@85: {1}, {0}
    //#test_vector(void blogEntryChanged(BlogEntryEvent)): java.lang.String:equals(...)@86: {1}, {0}
    //#test_vector(void blogEntryChanged(BlogEntryEvent)): java.lang.String:equals(...)@87: {1}, {0}
    //#test_vector(void blogEntryChanged(BlogEntryEvent)): java.lang.String:equals(...)@88: {1}, {0}
    //#test_vector(void blogEntryChanged(BlogEntryEvent)): java.lang.String:equals(...)@89: {0}, {1}
    //#test_vector(void blogEntryChanged(BlogEntryEvent)): java.util.Iterator:hasNext(...)@82: {1}, {0}
    //#test_vector(void blogEntryChanged(BlogEntryEvent)): net.sourceforge.pebble.util.SecurityUtils:isBlogPublisher(...)@71: {1}, {0}

      // mark the entry as unpublished if one of the following properties
      // has changed
      //  - title
      //  - subtitle
      //  - excerpt
      //  - body
      //  - original permalink
      List propertyChangeEvents = event.getPropertyChangeEvents();
      Iterator it = propertyChangeEvents.iterator();
      while (it.hasNext()) {
        PropertyChangeEvent pce = (PropertyChangeEvent)it.next();
        String property = pce.getPropertyName();
        if (property.equals(BlogEntry.TITLE_PROPERTY) ||
            property.equals(BlogEntry.SUBTITLE_PROPERTY) ||
            property.equals(BlogEntry.EXCERPT_PROPERTY) ||
            property.equals(BlogEntry.BODY_PROPERTY) ||
            property.equals(BlogEntry.ORIGINAL_PERMALINK_PROPERTY)) {
          event.getBlogEntry().setPublished(false);
          return;
        }
      }
    }
  }
    //#markunpublishedlistener.java:95: end of method: void net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener.blogEntryChanged(BlogEntryEvent)

}
    //#markunpublishedlistener.java:: end of class: net.sourceforge.pebble.event.blogentry.MarkUnpublishedListener
