|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.AclEntry
An Access Control List entry. An AclEntry 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.getACL(),
Project.getACL(),
View.getACL(),
Folder.getACL(),
Item.getACL()| Constructor Summary | |
AclEntry(int id,
boolean isGranted)
Creates a new Access Control List entry. |
|
AclEntry(int id,
int permissions,
boolean isGranted)
Creates a new Access Control List entry. |
|
| Method Summary | |
void |
addPermission(int permission)
Adds the specified permission to this entry. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
int |
getID()
Returns the user or group ID for this entry. |
int |
getPermissionFlags()
Returns the internal "bit set" representation of this entry's permissions. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
hasPermission(int 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 |
isGroupID()
Returns true if the ID represents a group. |
void |
removePermission(int 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 AclEntry(int id,
boolean isGranted)
id - The user or group ID for this entry.isGranted - true if the permissions are to be granted; false if they are to be denied.AclEntry.addPermission(int)
public AclEntry(int id,
int permissions,
boolean isGranted)
id - The user or group ID for this entry.isGranted - true if the permissions are to be granted; false if they are to be denied.| Method Detail |
public int getID()
public boolean isGroupID()
AclEntry.getID()public void setGranted(boolean value)
value - true if this the permissions are granted and false if deniedpublic boolean isGranted()
public int getPermissionFlags()
public void addPermission(int permission)
permission - the permission code to be addedPermissionpublic void removePermission(int permission)
permission - the permission code to be removedPermissionpublic boolean hasPermission(int permission)
permission - the permission code to be checked
Permissionpublic boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||