com.sapportals.wcm.rendering.base

Class NavigationMemorizer

java.lang.Object
  extended bycom.sapportals.wcm.rendering.base.NavigationMemorizer
All Implemented Interfaces:
INavigationMemorizer

public final class NavigationMemorizer
extends Object
implements INavigationMemorizer

acts as a layer between each instance of a NavigationMemory and the ICache that acts as persistence layer to keep the navigation memory across http-requests. For each IUser, there will be only one entry in this memorizer. Entries will be deleted over time. See the ICache for details. This class is implemented as a singleton. The method getId of the class IUser should be used to add, modify and delete entries within this class.

Since:
EP6, SP1

Method Summary
 boolean addMemory(NavigationMemory memory, String key, boolean overwrite)
           
 void configEvent(ConfigEvent arg0)
           
 String getConfigListenerId()
           
static NavigationMemorizer getInstance()
           
 NavigationMemory getMemory(String key)
          returns the NavigationMemory instance that has been added with the given key via this class' addMemory method.
 IRidList getRecent(IResource resource)
          Gets session navigation information for a user
 boolean isExcluded(RID rid)
           
 boolean removeMemory(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isExcluded

public boolean isExcluded(RID rid)

getInstance

public static NavigationMemorizer getInstance()

getMemory

public NavigationMemory getMemory(String key)
returns the NavigationMemory instance that has been added with the given key via this class' addMemory method. If the NavigationMemorizer has not been initialized properly or no entry is available for the given key, the method will return null.

Parameters:
key - the key that has been used to add the requested object via this class' addMemory method. Must not be null.
Returns:
the mapped NavigationMemory for the given key or null.

addMemory

public boolean addMemory(NavigationMemory memory,
                         String key,
                         boolean overwrite)

removeMemory

public boolean removeMemory(String key)

getRecent

public IRidList getRecent(IResource resource)
Description copied from interface: INavigationMemorizer
Gets session navigation information for a user

Specified by:
getRecent in interface INavigationMemorizer
Parameters:
resource - current resource
Returns:
resource IDs that are stored as navigation information

getConfigListenerId

public String getConfigListenerId()

configEvent

public void configEvent(ConfigEvent arg0)


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.