com.starbase.starteam
Class MatchedACE

java.lang.Object
  |
  +--com.starbase.starteam.MatchedACE

public 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:
AccessTestResults.getExplanation()

Method Summary
 boolean equals(java.lang.Object source)
          returns true if this object instance is equal to the source
 EffectiveACE getEffectiveACE()
          Gets the corresponding EffectiveACE.
 int getIndexInACL()
          Gets the index of the matched ACE in its Effective Access Control List.
 int getPermissions()
          Gets a subset of the permissions that were tested.
 int hashCode()
          returns a unique hash for all instances of this type
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPermissions

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

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

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 ACE 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 ACE in its Effective Access Control List, or -1 if this ACE does not appear in the Effective ACL.

equals

public boolean equals(java.lang.Object source)
returns true if this object instance is equal to the source

Overrides:
equals in class java.lang.Object
Parameters:
source - Object the source to comapre with
Returns:
boolean true if this object is equal to the source

hashCode

public int hashCode()
returns a unique hash for all instances of this type

Overrides:
hashCode in class java.lang.Object
Returns:
int a unique hash for all instances of this type


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.