Klasse BasicAccessControlListImpl
java.lang.Object
org.apache.fulcrum.security.model.basic.BasicAccessControlListImpl
- Alle implementierten Schnittstellen:
Serializable
,AccessControlList
,BasicAccessControlList
This is a control class that makes it easy to find out if a particular User
has a given Permission. It also determines if a User has a a particular Role.
- Version:
- $Id: BasicAccessControlListImpl.java 535465 2007-05-05 06:58:06Z tv
- Autor:
- Eric Pugh
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungBasicAccessControlListImpl
(GroupSet groupSet) Constructs a new AccessControlList. -
Methodenübersicht
-
Konstruktordetails
-
BasicAccessControlListImpl
Constructs a new AccessControlList. This class follows 'immutable' pattern - it's objects can't be modified once they are created. This means that the permissions the users have are in effect form the moment they log in to the moment they log out, and changes made to the security settings in that time are not reflected in the state of this object. If you need to reset an user's permissions you need to invalidate his session.
The objects that constructs an AccessControlList must supply hashtables of role/permission sets keyed with group objects.- Parameter:
groupSet
- a hashtable containing GroupSet objects
-
-
Methodendetails
-
getGroups
Retrieves a set of Groups an user is assigned- Angegeben von:
getGroups
in SchnittstelleBasicAccessControlList
- Gibt zurück:
- the set of Groups
-
hasGroup
Checks if the user is assigned a specific Group- Angegeben von:
hasGroup
in SchnittstelleBasicAccessControlList
- Parameter:
group
- the Group- Gibt zurück:
true
if the user is assigned the Group
-
hasGroup
Checks if the user is assigned a specific Group- Angegeben von:
hasGroup
in SchnittstelleBasicAccessControlList
- Parameter:
group
- the Group name- Gibt zurück:
true
if the user is assigned the Group
-