|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.rts.acl.AgoAclEntry
Represents the access rights to a SilverStream object as an Access Control List. Note that not all SilverStream access rights are representable as an access control list -- only those that constitute "simple expressions".
Acl
,
AclEntry
,
AgoAcl
Constructor Summary | |
AgoAclEntry()
|
Method Summary | |
boolean |
addPermission(Permission permission)
Adds the specified permission to this ACL entry. |
boolean |
checkPermission(Permission permission)
Checks if the specified permission is part of the permission set in this entry. |
Object |
clone()
Clones this ACL entry. |
Principal |
getPrincipal()
Returns the principal for which permissions are granted or denied by this ACL entry. |
boolean |
isNegative()
Returns true if this is a negative ACL entry (one denying the associated principal the set of permissions in the entry), false otherwise. |
Enumeration |
permissions()
Returns an enumeration of the permissions in this ACL entry. |
boolean |
removePermission(Permission permission)
Removes the specified permission from this ACL entry. |
void |
setNegativePermissions()
Sets this ACL entry to be a negative one. |
boolean |
setPrincipal(Principal user)
Specifies the principal for which permissions are granted or denied by this ACL entry. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AgoAclEntry()
Method Detail |
public boolean setPrincipal(Principal user)
user
- the principal to be set for this entry.This method is from java.security.acl.AclEntry.
AgoAclEntry myAclEntry = server.createAclEntry(); // ... some processing Principal pr = ... boolean success = myAclEntry.setPrincipal(pr);
public Principal getPrincipal()
This method is from java.security.acl.AclEntry.
AgoAclEntry myAclEntry = server.createAclEntry(); // ... some processing Principal pr = myAclEntry.getPrincipal();
public void setNegativePermissions()
This method is from java.security.acl.AclEntry.
AgoAclEntry myAclEntry = server.createAclEntry(); // ... some processing myAclEntry.setNegativePermissions();
public boolean isNegative()
This method is from java.security.acl.AclEntry.
AgoAclEntry myAclEntry = server.createAclEntry(); // ... some processing boolean isNegative = myAclEntry.isNegative();
public boolean addPermission(Permission permission)
permission
- the permission to be associated with
the principal in this entry.
For a list of permission types, see AgoPermission
.
This method is from java.security.acl.AclEntry.
AgoAclEntry myAclEntry = server.createAclEntry(); // ... some processing AgoPermission permission = ... boolean success = myAclEntry.addPermission(permission);
public boolean removePermission(Permission permission)
permission
- the permission to be removed from this entry.
For a list of permission types, see AgoPermission
.
This method is from java.security.acl.AclEntry.
AgoAclEntry myAclEntry = server.createAclEntry(); // ... some processing boolean success = myAclEntry.removePermission(permission);
public boolean checkPermission(Permission permission)
permission
- the permission to be checked forFor a list of permission types, see AgoPermission
.
This method is from java.security.acl.AclEntry.
AgoAclEntry myAclEntry = server.createAclEntry(); // ... some processing boolean isPermPartOfSet = myAclEntry.checkPermission(permission);
public Enumeration permissions()
This method is from java.security.acl.AclEntry.
AgoAclEntry myAclEntry = server.createAclEntry(); // ... some processing Enumeration e = myAclEntry.permissions();
public Object clone()
AgoAclEntry myAclEntry = server.createAclEntry(); // ... some processing Object clone = myAclEntry.clone();
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |