com.starteam
Class MatchedACE

java.lang.Object
  extended by com.starteam.MatchedACE

public final class MatchedACE
extends java.lang.Object

Used when explaining the results of an access test.

Each MatchedACE provides a subset of the permissions that were tested, as well as the corresponding EffectiveACE that was relevant in determining whether those permissions were granted or denied.

See Also:
AccessRightsManager.AccessTestResults.getExplanation()

Method Summary
 EffectiveACE getEffectiveACE()
          Gets the corresponding EffectiveACE.
 int getIndexInACL()
          Gets the index of the matched ACEManager in its Effective Access Control List.
 PermissionCollection getPermissions()
          Gets a subset of the permissions that were tested.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPermissions

public PermissionCollection getPermissions()
Gets a subset of the permissions that were tested.

Returns:
A subset of the permissions that were tested.
See Also:
Permission

getEffectiveACE

public EffectiveACE getEffectiveACE()
Gets the corresponding EffectiveACE.

Returns:
The corresponding EffectiveACE that was relevant in determining whether those permissions were granted or denied.
See Also:
EffectiveACE

getIndexInACL

public int getIndexInACL()
Gets the index of the matched ACEManager in its Effective Access Control List.

If an access test for a given permission is performed against an Effective ACL from an object for which the permission is not applicable, then it is possible for the resulting AccessTestResult to contain a MatchedACE for an EffectiveACE that did not appear in the original Effective ACL. In this case, getIndexInACL() will return -1.

Returns:
The index of this ACEManager in its Effective Access Control List, or -1 if this ACEManager does not appear in the Effective ACL.


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.