当前页面:
在线文档首页 >
JBoss Seam 1.1.1 API 英文版文档
AclImpl (JBoss Seam API Documentation) - JBoss Seam 1.1.1 API 英文版文档
org.jboss.seam.security.acl
Class AclImpl
java.lang.Object
org.jboss.seam.security.acl.AclImpl
- All Implemented Interfaces:
- Acl, Owner
public class AclImpl
- extends Object
- implements Acl
Default Acl implementation.
- Author:
- Shane Bryzak
Constructor Summary |
AclImpl(Principal owner)
Construct a new Acl owned by the specified Principal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.acl.Acl |
toString |
AclImpl
public AclImpl(Principal owner)
- Construct a new Acl owned by the specified Principal.
- Parameters:
owner
- Principal
addEntry
public boolean addEntry(Principal caller,
AclEntry entry)
throws NotOwnerException
- Specified by:
addEntry
in interface Acl
- Throws:
NotOwnerException
checkPermission
public boolean checkPermission(Principal principal,
Permission permission)
- Specified by:
checkPermission
in interface Acl
entries
public Enumeration<AclEntry> entries()
- Specified by:
entries
in interface Acl
getPermissions
public Enumeration getPermissions(Principal user)
- Specified by:
getPermissions
in interface Acl
removeEntry
public boolean removeEntry(Principal caller,
AclEntry entry)
throws NotOwnerException
- Specified by:
removeEntry
in interface Acl
- Throws:
NotOwnerException
setName
public void setName(Principal caller,
String name)
throws NotOwnerException
- Specified by:
setName
in interface Acl
- Throws:
NotOwnerException
getName
public String getName()
- Specified by:
getName
in interface Acl
addOwner
public boolean addOwner(Principal caller,
Principal owner)
throws NotOwnerException
- Specified by:
addOwner
in interface Owner
- Throws:
NotOwnerException
deleteOwner
public boolean deleteOwner(Principal caller,
Principal owner)
throws NotOwnerException,
LastOwnerException
- Specified by:
deleteOwner
in interface Owner
- Throws:
NotOwnerException
LastOwnerException
isOwner
public boolean isOwner(Principal owner)
- Specified by:
isOwner
in interface Owner