com.crystaldecisions.sdk.occa.security
Class CacheModes

java.lang.Object
  extended by java.lang.Enum
      extended by com.crystaldecisions.sdk.occa.security.CacheModes
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public final class CacheModes
extends java.lang.Enum

Enum specifiying the cache mode for security batch operations

See Also:
Serialized Form

Field Summary
static CacheModes OFF
          Cache mode is off.
static CacheModes ON
          Cache mode is on.
static CacheModes ON_NON_ADMIN_ONLY
          Cache mode is on for non-admin request only.
 
Method Summary
static CacheModes valueOf(java.lang.String name)
           
static CacheModes[] values()
           
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ON

public static final CacheModes ON
Cache mode is on. When this mode is used in batched security operations, all the requests will be checked against local security cache before being batched. If an entry matching the request is found, the request will not be inserted into the request queue which is later sent to server. Use of this mode will provide fast access to previously cached result but the result may be out-dated if the security information has already been updated on CMS


OFF

public static final CacheModes OFF
Cache mode is off. When this mode is used in batched security operations, all the requests will bypass local security cache and be inserted into request queue which is later sent to server. Use of this mode will provide a more up-to-date snapshot of the current security settings on the CMS. But because all the requests will incur server commnication, the performance will be affected.


ON_NON_ADMIN_ONLY

public static final CacheModes ON_NON_ADMIN_ONLY
Cache mode is on for non-admin request only. When this mode is used in batched security operations, a request will be checked against local security cache only if it's not an admin request (a request from ISecCacheControllerAdmin interface).

Method Detail

values

public static CacheModes[] values()

valueOf

public static CacheModes valueOf(java.lang.String name)