markapprovedlistener.java

### File Source: markapprovedlistener.java

             /*
        P/P   *  Method: net.sourceforge.pebble.event.response.MarkApprovedListener__static_init
              */
         1  package net.sourceforge.pebble.event.response;
         2
         3  import net.sourceforge.pebble.domain.Response;
         4
         5  /**
         6   * Sets the status of new comments and TrackBacks to approved.
         7   *
         8   * @author Simon Brown
         9   */
             /*
        P/P   *  Method: void net.sourceforge.pebble.event.response.MarkApprovedListener()
              */
        10  public class MarkApprovedListener extends BlogEntryResponseListenerSupport {
        11
        12    /**
        13     * Called when a comment or TrackBack has been added.
        14     *
        15     * @param response a Response
        16     */
        17    protected void blogEntryResponseAdded(Response response) {
                 /*
        P/P       *  Method: void blogEntryResponseAdded(Response)
                  *
                  *  Preconditions:
                  *    response != null
                  *
                  *  Postconditions:
                  *    response.state == One-of{&net.sourceforge.pebble.domain.State__static_init.new State(State__static_init#1), old response.state}
                  */
        18      response.setApproved();
        19    }
        20
        21  }

SofCheck Inspector Build Version : 2.22510

markapprovedlistener.java | 2010-Jun-25 19:40:32
markapprovedlistener.class | 2010-Jul-19 20:23:38