com.crystaldecisions.sdk.occa.infostore
Interface ISecurityLimits


Deprecated. Since 12.0, ISecurityLimits has been replaced by IExplicitLimits and IEffectiveLimits accessible through IExplicitPrincipal and IEffectivePrincipal respectively

public interface ISecurityLimits

Use this collection to set limits on an object for a particular principal (user, group). These limits allow report instances to be deleted on a regular basis. Limits that you set on a folder affect all objects that are contained within the folder. At the folder level, you may want to limit the number of instances that remain on the system for each object or for each user or group; you could also limit the number of days that an instance remains on the system for a user or group.

In addition to setting limits on folders, you can set limits on selected report objects and their instances. When you set the limits at the report object level, the report object will ignore the limits set for the folder (that is, the report object will not inherit the limits of the folder).


Method Summary
 ISecurityLimit add(int id)
          Deprecated. Since 12.0, ISecurityLimits has been replaced by IExplicitLimits and IEffectiveLimits accessible through IExplicitPrincipal and IEffectivePrincipal respectively
 ISecurityLimit get(int id)
          Deprecated. Since 12.0, ISecurityLimits has been replaced by IExplicitLimits and IEffectiveLimits accessible through IExplicitPrincipal and IEffectivePrincipal respectively
 java.util.Iterator iterator()
          Deprecated. Since 12.0, ISecurityLimits has been replaced by IExplicitLimits and IEffectiveLimits accessible through IExplicitPrincipal and IEffectivePrincipal respectively
 void remove(int id)
          Deprecated. Since 12.0, ISecurityLimits has been replaced by IExplicitLimits and IEffectiveLimits accessible through IExplicitPrincipal and IEffectivePrincipal respectively
 int size()
          Deprecated. Since 12.0, ISecurityLimits has been replaced by IExplicitLimits and IEffectiveLimits accessible through IExplicitPrincipal and IEffectivePrincipal respectively
 

Method Detail

add

ISecurityLimit add(int id)
Deprecated. Since 12.0, ISecurityLimits has been replaced by IExplicitLimits and IEffectiveLimits accessible through IExplicitPrincipal and IEffectivePrincipal respectively

Adds a new limit to the collection.

Note: If you add multiple limits that have the same ID but that contain different values to the collection; the most recent value of the limit overwrites the older value.

Parameters:
id - The ID of the new limit.
Returns:
The newly created ISecurityLimit object.

get

ISecurityLimit get(int id)
Deprecated. Since 12.0, ISecurityLimits has been replaced by IExplicitLimits and IEffectiveLimits accessible through IExplicitPrincipal and IEffectivePrincipal respectively

Returns the limit with the given ID.

Parameters:
id - The ID of the limit to be returned.
Returns:
The limit, or null if no such limit exists,

iterator

java.util.Iterator iterator()
Deprecated. Since 12.0, ISecurityLimits has been replaced by IExplicitLimits and IEffectiveLimits accessible through IExplicitPrincipal and IEffectivePrincipal respectively

Returns an iterator for all of the limits in the set.

Returns:
An iterator for all of the limits in the set.

remove

void remove(int id)
Deprecated. Since 12.0, ISecurityLimits has been replaced by IExplicitLimits and IEffectiveLimits accessible through IExplicitPrincipal and IEffectivePrincipal respectively

Removes a limit from the collection.

Parameters:
id - The ID of the limit to remove.

size

int size()
Deprecated. Since 12.0, ISecurityLimits has been replaced by IExplicitLimits and IEffectiveLimits accessible through IExplicitPrincipal and IEffectivePrincipal respectively

Returns the size of the limits in the collection.

Returns:
size of the limits(excluding deleted values).