com.crystaldecisions.sdk.occa.security
Interface ISecCacheController

All Superinterfaces:
IBatch

public interface ISecCacheController
extends IBatch

The interface for controlling cache loading of rights. Extends IBatch to allow load requests to be batched together.

The methods defined here corresponds to non-administrative security queries through which a logged on user tries to query for its own security info from the server. User has the choice of batching the requests together or executing them separately. User can also choose to refer to cached results first. By default, non-administrative queries will always check the local cache first to see if an answer has been cached through an earlier request. If nothing is cached, then the request will be queued to be sent to server.


Method Summary
 void cacheLimit(int rightID, java.lang.Object rightKind, int objectID)
          Request a load of the limits on a given object
 void cacheRight(int rightID, java.lang.Object rightKind, int objectID)
          Deprecated. since 12.0 SP1. Use cacheRight(RightDescriptor right, int objectID) instead
 void cacheRight(RightDescriptor right, int objectID)
          Request a load of the boolean rights on a given object
 
Methods inherited from interface com.crystaldecisions.sdk.occa.security.IBatch
batch, batch, batch, commit, rollback
 

Method Detail

cacheRight

void cacheRight(int rightID,
                java.lang.Object rightKind,
                int objectID)
                throws SDKException
Deprecated. since 12.0 SP1. Use cacheRight(RightDescriptor right, int objectID) instead

Request a load of the boolean rights on a given object

Parameters:
rightID - ID of the right being accessed
rightKind - Plugin kind the right is defined for. Can be the integer object type or the object kind string.
objectID - Object the right applies to
Throws:
SDKException

cacheLimit

void cacheLimit(int rightID,
                java.lang.Object rightKind,
                int objectID)
                throws SDKException
Request a load of the limits on a given object

Parameters:
rightID - ID of the limit being accessed
rightKind - Plugin kind the limit is defined for. Can be the integer object type or the object kind string.
objectID - Object the limit applies to
Throws:
SDKException

cacheRight

void cacheRight(RightDescriptor right,
                int objectID)
                throws SDKException
Request a load of the boolean rights on a given object

Parameters:
right - right being accessed
objectID - Object the right applies to
Throws:
SDKException