com.sapportals.portal.prt.component
Class CachingLevel

java.lang.Object
  |
  +--com.sapportals.portal.prt.component.CachingLevel
All Implemented Interfaces:
java.io.Serializable

public class CachingLevel
extends java.lang.Object
implements java.io.Serializable

Represents the level of caching needed by a PortalComponent. 3 levels are provided.

See Also:
Copyright (c) SAP Portals Europe GmbH 2001, Serialized Form

Field Summary
static CachingLevel COMPONENT
          Deprecated.  
static CachingLevel CONTEXT
          Deprecated.  
static CachingLevel NONE
          The CachingLevel.NONE will not cache the content of the Component.
static CachingLevel SESSION
          Using the CachingLevel.SESSION will associate the cached content with the servlet session.
static CachingLevel SHARED
          Means that the cache is shared by all the users
static CachingLevel USER
          Means that the cache is proper to the user
 
Constructor Summary
CachingLevel(java.lang.String string)
           
 
Method Summary
static CachingLevel parse(java.lang.String name)
          parse a caching level string into a caching level The argument string consist of a level name
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPONENT

public static final CachingLevel COMPONENT
Deprecated.  

Using the CachingLevel.COMPONENT will associate the cached content with the components instance. I.e. the cached content should not depend on the particular user, nor on the particular client. This is the least flexible and least expensive way of content caching.

CONTEXT

public static final CachingLevel CONTEXT
Deprecated.  

Using the CachingLevel.CONTEXT will associate the cached content with the user's context of the Portal Component. I.e. the cached content should not depend on the particular client.

USER

public static final CachingLevel USER
Means that the cache is proper to the user

SHARED

public static final CachingLevel SHARED
Means that the cache is shared by all the users

SESSION

public static final CachingLevel SESSION
Using the CachingLevel.SESSION will associate the cached content with the servlet session. This is the most flexible but also the most expensive way of content caching

NONE

public static final CachingLevel NONE
The CachingLevel.NONE will not cache the content of the Component.
Constructor Detail

CachingLevel

public CachingLevel(java.lang.String string)
Parameters:
string -  
Method Detail

parse

public static CachingLevel parse(java.lang.String name)
parse a caching level string into a caching level The argument string consist of a level name
Parameters:
name - string to be parsed
Returns:
parsed value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object