com.crystaldecisions.sdk.occa.infostore
Interface IObjectPrincipals


Deprecated. Since 12.0, IObjectPrincipals has been replaced by IExplicitPrincipals and IEffectivePrincipals accessible through ISecurityInfo2 interface

public interface IObjectPrincipals

This interface contains all of the object principals (users, groups) that have explicit as well as inherited rights to a particular object. To determine whether a right is inherited or explicit, use the IObjectPrincipal object's isInherited() method.


Method Summary
 IObjectPrincipal add(int id)
          Deprecated. Since 12.0, IObjectPrincipals has been replaced by IExplicitPrincipals and IEffectivePrincipals accessible through ISecurityInfo2 interface
 IObjectPrincipal get(int id)
          Deprecated. Since 12.0, IObjectPrincipals has been replaced by IExplicitPrincipals and IEffectivePrincipals accessible through ISecurityInfo2 interface
 java.util.Iterator iterator()
          Deprecated. Since 12.0, IObjectPrincipals has been replaced by IExplicitPrincipals and IEffectivePrincipals accessible through ISecurityInfo2 interface
 void remove(int id)
          Deprecated. Since 12.0, IObjectPrincipals has been replaced by IExplicitPrincipals and IEffectivePrincipals accessible through ISecurityInfo2 interface
 int size()
          Deprecated. Since 12.0, IObjectPrincipals has been replaced by IExplicitPrincipals and IEffectivePrincipals accessible through ISecurityInfo2 interface
 

Method Detail

add

IObjectPrincipal add(int id)
Deprecated. Since 12.0, IObjectPrincipals has been replaced by IExplicitPrincipals and IEffectivePrincipals accessible through ISecurityInfo2 interface

Adds a new principal to the set.

Parameters:
id - The ID of the new principal to be added.
Returns:
The newly created principal.

get

IObjectPrincipal get(int id)
Deprecated. Since 12.0, IObjectPrincipals has been replaced by IExplicitPrincipals and IEffectivePrincipals accessible through ISecurityInfo2 interface

Returns the principal with the given ID.

Note: Ensure that the ObjectPrinicipal object is added to the collection before committing changes to the CMS repository. Otherwise these new rights or limits will not be enforced.

Parameters:
id - The principal's ID.
Returns:
The principal specified by id, or null if no such principal exists.

iterator

java.util.Iterator iterator()
Deprecated. Since 12.0, IObjectPrincipals has been replaced by IExplicitPrincipals and IEffectivePrincipals accessible through ISecurityInfo2 interface

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

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

remove

void remove(int id)
Deprecated. Since 12.0, IObjectPrincipals has been replaced by IExplicitPrincipals and IEffectivePrincipals accessible through ISecurityInfo2 interface

Removes a principal from the set.

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

size

int size()
Deprecated. Since 12.0, IObjectPrincipals has been replaced by IExplicitPrincipals and IEffectivePrincipals accessible through ISecurityInfo2 interface

Returns the number of principals in the set.

Returns:
The number of principals in the set.