View Javadoc

1   /*
2    * Copyright 2008 FatWire Corporation. All Rights Reserved.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *    http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package com.fatwire.gst.foundation.facade.runtag.commercecontext;
18  
19  import com.fatwire.gst.foundation.facade.runtag.AbstractTagRunner;
20  
21  /**
22   * When visitors access a site implemented with CS-Engage, they are
23   * automatically assigned a visitor ID. This tag clears the current visitor ID
24   * and assigns a new one. Typical use for this method is to use it to create a
25   * logout button so a new visitor can interact with the site without having to
26   * end the session.
27   * 
28   * If the current visitor is logged into Transact or any other external database
29   * through Commerce Connector, this method automatically clears this visitor's
30   * commerce ID or access ID as well, which disconnects the visitor from Commerce
31   * Connector.
32   * 
33   * @author Tony Field
34   * @since Sep 17, 2009
35   */
36  public final class Logout extends AbstractTagRunner {
37      public Logout() {
38          super("COMMERCECONTEXT.LOGOUT");
39      }
40  }