|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.ACE
public class ACE
An Access Control List entry. An ACE specifies a set of
permissions that are either granted or denied to a particular user or group.
A collection of such entries makes an ACL or Access Control List.
Permission,
ServerAdministration.getRights(),
Project.getRights(com.starteam.Type),
View.getRights(),
Folder.getRights(com.starteam.Type),
ViewMember.getRights()| Nested Class Summary | |
|---|---|
static class |
ACE.WebCacheACE
Base accessor for cached SDK ACEs |
| Constructor Summary | |
|---|---|
ACE(Principal prncpl,
boolean isGranted)
Creates a new Access Control Entry (ACE). |
|
ACE(Principal 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. |
PermissionCollection |
getPermissions()
Returns the permissions for this ACE. |
Principal |
getPrincipal()
Returns the principal (user or group) for this entry. |
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. |
boolean |
isGroup()
Returns true if this ACE represents a group. |
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 |
|---|
public ACE(Principal prncpl,
boolean isGranted)
prncpl - The user or group for this entry.isGranted - true if the permissions are to be granted; false if they are
to be denied.ACE.addPermission(com.starteam.Permission)
public ACE(Principal prncpl,
PermissionCollection permissions,
boolean isGranted)
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 |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - an Object to compare with this ACE.
public int hashCode()
hashCode in class java.lang.Objectpublic Principal getPrincipal()
public boolean isGroup()
public PermissionCollection getPermissions()
Permissionpublic void setGranted(boolean value)
value - true if this the permissions are granted and false if deniedpublic boolean isGranted()
public void addPermission(Permission permission)
permission - the permission to be addedPermissionpublic void removePermission(Permission permission)
permission - the permission code to be removedPermissionpublic boolean hasPermission(Permission permission)
permission - the permission code to be checked
Permission
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||