|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.activityspace.ASCache
public class ASCache
This handles the cache for developers so that it can't get into an inconsistent state. Note: ClearCache() should not be used. This is only for debug purposes.
Field Summary | |
---|---|
static java.lang.String |
SPACEID_INVALID
Used by the gateway in the interpreter, since it doesn't use cache IDs. |
Constructor Summary | |
---|---|
ASCache(ISessionManager cache,
XPHashtable xpmCacheList)
Constructor. |
Method Summary | |
---|---|
void |
ClearCache()
This method clears the AActivitySpace cache. |
static ISessionManager |
GetASCache(ISessionManager session,
ISessionManager smSandbox)
Gets the ASCache session manager off of the top-level session manager, creating it if necessary; made into a separate method so the SSO login code can call it. |
java.lang.Object |
GetAttribute(java.lang.String sKey)
Returns the value corresponding to the key in argument. |
static XPHashtable |
GetCacheList(ISessionManager session)
Gets the CacheList off of the top-level session manager. |
IXPEnumerator |
GetKeys()
Returns an enumaration of the keys for the ASCache. |
AActivitySpace |
GetSpace(java.lang.String strName,
java.lang.String nID)
This method returns the requested AActivitySpace from the cache. |
AActivitySpace |
GetSpaceIfCached(java.lang.String strName)
This method returns the requested AActivitySpace from the cache, if it exists. |
boolean |
GetSpaceIsSubSpace(java.lang.String sKey)
Returns whether or not the space corresponding to the key in argument is a subspace. |
void |
HandleCacheLimit()
This method handles cache management after the request has been sent to the user. |
void |
RemoveSubSpace(java.lang.String name,
java.lang.String ID)
This method removes the specified sub-space. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SPACEID_INVALID
Constructor Detail |
---|
public ASCache(ISessionManager cache, XPHashtable xpmCacheList)
ISessionManager
- the cache to wrapMethod Detail |
---|
public IXPEnumerator GetKeys()
public java.lang.Object GetAttribute(java.lang.String sKey)
sKey
- Key of the requested value
public boolean GetSpaceIsSubSpace(java.lang.String sKey)
sKey
- Key of the requested value
public AActivitySpace GetSpace(java.lang.String strName, java.lang.String nID)
String
- name the name of the AActivitySpaceString
- ID the cache ID of the AActivitySpace
public AActivitySpace GetSpaceIfCached(java.lang.String strName)
String
- name the name of the AActivitySpace
public void RemoveSubSpace(java.lang.String name, java.lang.String ID)
String
- name the name of the AActivitySpaceString
- ID the cache ID of the AActivitySpacepublic void ClearCache()
public void HandleCacheLimit()
public static ISessionManager GetASCache(ISessionManager session, ISessionManager smSandbox)
session
- smSandbox
-
public static XPHashtable GetCacheList(ISessionManager session)
session
-
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |