com.starteam
Class ACE.WebCacheACE

java.lang.Object
  extended by com.starteam.ACE.WebCacheACE
Enclosing class:
ACE

public static final class ACE.WebCacheACE
extends java.lang.Object

Base accessor for cached SDK ACEs


Constructor Summary
ACE.WebCacheACE(Principal.WebCachePrincipal prncpl, boolean isGranted)
          Creates a new Access Control Entry (ACE).
ACE.WebCacheACE(Principal.WebCachePrincipal prncpl, PermissionCollection permissions, boolean isGranted)
          Creates a new Access Control Entry (ACE).
 
Method Summary
 void addPermission(Permission permission)
          Adds the specified permission to this entry.
 boolean equals(java.lang.Object o)
          Return true if the object is an ACE and is equal to this ACE.
 ArtifactCacheManager.Context getContext()
          Returns the context of this object.
 PermissionCollection getPermissions()
          Returns the permissions for this ACE.
 Principal.WebCachePrincipal getPrincipal()
          Returns the principal (user or group) for this entry.
 Server.WebCacheServer getServer()
          return the Server for this cached object
 int hashCode()
          Return a hashcode for this ACE.
 boolean hasPermission(Permission permission)
          Returns true if the specified permission is a part of this entry.
 boolean isGranted()
          Returns true if the permissions are granted and false if denied.
 void removePermission(Permission permission)
          Removes the specified permission from this entry.
 void setGranted(boolean value)
          Modifies this entry to be granted or denied.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACE.WebCacheACE

public ACE.WebCacheACE(Principal.WebCachePrincipal prncpl,
                       boolean isGranted)
Creates a new Access Control Entry (ACE). No permissions are explicitly granted or denied.

Parameters:
prncpl - The user or group for this entry.
isGranted - true if the permissions are to be granted; false if they are to be denied.
See Also:
ACE.WebCacheACE.addPermission(com.starteam.Permission)

ACE.WebCacheACE

public ACE.WebCacheACE(Principal.WebCachePrincipal prncpl,
                       PermissionCollection permissions,
                       boolean isGranted)
Creates a new Access Control Entry (ACE).

Parameters:
prncpl - The user or group for this entry.
permissions - The permissions to be granted or denied.
isGranted - true if the permissions are to be granted; false if they are to be denied.
Method Detail

getServer

public Server.WebCacheServer getServer()
return the Server for this cached object

Returns:
the Server for this cached object

getContext

public ArtifactCacheManager.Context getContext()
Returns the context of this object.

Returns:
the context of this object.

addPermission

public void addPermission(Permission permission)
Adds the specified permission to this entry.

Parameters:
permission - the permission to be added
See Also:
Permission

equals

public boolean equals(java.lang.Object o)
Return true if the object is an ACE and is equal to this ACE.

Overrides:
equals in class java.lang.Object
Parameters:
o - an Object to compare with this ACE.
Returns:
true if object is an ACE equal to this one.

getPermissions

public PermissionCollection getPermissions()
Returns the permissions for this ACE.

Returns:
the permissions for this ACE.
See Also:
Permission

getPrincipal

public Principal.WebCachePrincipal getPrincipal()
Returns the principal (user or group) for this entry.

Returns:
the principal(user or group) for this entry.

hashCode

public int hashCode()
Return a hashcode for this ACE.

Overrides:
hashCode in class java.lang.Object
Returns:
a hashcode for this ACE.

hasPermission

public boolean hasPermission(Permission permission)
Returns true if the specified permission is a part of this entry.

Parameters:
permission - the permission code to be checked
Returns:
true if the specified permission if a part of this entry.
See Also:
Permission

isGranted

public boolean isGranted()
Returns true if the permissions are granted and false if denied.

Returns:
true if the permissions are granted and false if denied.

removePermission

public void removePermission(Permission permission)
Removes the specified permission from this entry.

Parameters:
permission - the permission code to be removed
See Also:
Permission

setGranted

public void setGranted(boolean value)
Modifies this entry to be granted or denied.

Parameters:
value - true if this the permissions are granted and false if denied


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