001    package com.sptci.system;
002    
003    import com.sptci.echo2.Configuration;
004    import com.sptci.echo2.Confirmation;
005    import com.sptci.echo2.RedirectListener;
006    
007    /**
008     * A view component that is used to display a success message after the
009     * user modifies his password.  Once the user acknowledges the success
010     * message, the user will be logged out of the application.
011     *
012     * <p>Copyright 2007 Sans Pareil Technologies, Inc.</p>
013     * @author Rakesh Vidyadharan 2007-04-22
014     * @version $Id: Success.java 3102 2007-04-23 00:55:15Z rakesh $
015     */
016    public class Success extends Confirmation
017    {
018      /**
019       * The <code>URL</code> to redirect the user to after logging out of the
020       * application.
021       *
022       * {@value}
023       */
024      public static final String URL = "logout";
025    
026      /**
027       * Create a new instance of the confirmation message.
028       */
029      public Success()
030      {
031        super(
032            Configuration.getString( Success.class.getName() + ".success.title" ),
033            Configuration.getString( Success.class.getName() + ".success.message" ),
034            new Executor<RedirectListener>( new RedirectListener( URL ), "redirect" ) );
035      }
036    }