Klasse TurbineAccessControlListImpl
java.lang.Object
org.apache.fulcrum.security.model.turbine.TurbineAccessControlListImpl
- Alle implementierten Schnittstellen:
- Serializable,- AccessControlList,- TurbineAccessControlList
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: TurbineAccessControlList.java 1096130 2019-03-25 10:37:19Z painter $
- Autor:
- John D. McNally, Brett McLaughlin, Greg Ritter, Rafal Krzewski, Henning P. Schmiedehausen, Marco Knüttel
- Siehe auch:
- 
KonstruktorübersichtKonstruktorenKonstruktorBeschreibungTurbineAccessControlListImpl(Set<? extends TurbineUserGroupRole> turbineUserGroupRoleSet, GroupManager groupManager, RoleManager roleManager, TurbineModelManager modelManager, org.apache.avalon.framework.logger.Logger logger) Constructs a new AccessControlList.
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungGroup[]Returns all groups defined in the system.Retrieves a set of Groups an user is assigned to.Retrieves a set of Permissions an user is assigned in the global Group.getPermissions(Group group) Retrieves a set of Permissions an user is assigned in a Group.getRoles()Retrieves a set of Roles an user is assigned in the global Group.Retrieves a set of Roles an user is assigned in a Group.booleanhasPermission(String permission) Checks if the user is assigned a specific Permission in the global Group.booleanhasPermission(String permission, String group) Checks if the user is assigned a specific Permission in the Group.booleanhasPermission(String permission, Group group) Checks if the user is assigned a specific Permission in the Group.booleanhasPermission(String permissionName, GroupSet groupset) Checks if the user is assigned a specific Permission in any of the given GroupsbooleanhasPermission(Permission permission) Checks if the user is assigned a specific Permission in the global Group.booleanhasPermission(Permission permission, Group group) Checks if the user is assigned a specific Permission in the Group.booleanhasPermission(Permission permission, GroupSet groupset) Checks if the user is assigned a specific Permission in any of the given GroupsbooleanChecks if the user is assigned a specific Role in the global Group.booleanChecks if the user is assigned a specific Role in the Group.booleanChecks if the user is assigned a specific Role in any of the given GroupsbooleanChecks if the user is assigned a specific Role in the global Group.booleanChecks if the user is assigned a specific Role in the Group.booleanChecks if the user is assigned a specific Role in any of the given Groups
- 
Konstruktordetails- 
TurbineAccessControlListImplpublic TurbineAccessControlListImpl(Set<? extends TurbineUserGroupRole> turbineUserGroupRoleSet, GroupManager groupManager, RoleManager roleManager, TurbineModelManager modelManager, org.apache.avalon.framework.logger.Logger logger) throws FulcrumSecurityException 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.- Parameter:
- turbineUserGroupRoleSet- The set of user/group/role relations that this acl is built from
- groupManager- the Group manager
- roleManager- the Role manager
- modelManager- the model Manager
- logger-
- Löst aus:
- FulcrumSecurityException- if the global group cannot be retrieved
 
 
- 
- 
Methodendetails- 
getRolesRetrieves a set of Roles an user is assigned in a Group.- Angegeben von:
- getRolesin Schnittstelle- TurbineAccessControlList
- Parameter:
- group- the Group
- Gibt zurück:
- the set of Roles this user has within the Group.
 
- 
getRolesRetrieves a set of Roles an user is assigned in the global Group.- Angegeben von:
- getRolesin Schnittstelle- TurbineAccessControlList
- Gibt zurück:
- the set of Roles this user has within the global Group or null.
 
- 
getPermissionsRetrieves a set of Permissions an user is assigned in a Group.- Angegeben von:
- getPermissionsin Schnittstelle- TurbineAccessControlList
- Parameter:
- group- the Group
- Gibt zurück:
- the set of Permissions this user has within the Group.
 
- 
getPermissionsRetrieves a set of Permissions an user is assigned in the global Group.- Angegeben von:
- getPermissionsin Schnittstelle- TurbineAccessControlList
- Gibt zurück:
- the set of Permissions this user has within the global Group.
 
- 
hasRoleChecks if the user is assigned a specific Role in the Group.- Angegeben von:
- hasRolein Schnittstelle- TurbineAccessControlList
- Parameter:
- role- the Role
- group- the Group
- Gibt zurück:
- trueif the user is assigned the Role in the Group.
 
- 
hasRoleChecks if the user is assigned a specific Role in any of the given Groups- Angegeben von:
- hasRolein Schnittstelle- TurbineAccessControlList
- Parameter:
- role- the Role
- groupset- a Groupset
- Gibt zurück:
- trueif the user is assigned the Role in any of the given Groups.
 
- 
hasRoleChecks if the user is assigned a specific Role in the Group.- Angegeben von:
- hasRolein Schnittstelle- TurbineAccessControlList
- Parameter:
- roleName- the Role name
- groupName- the Group name
- Gibt zurück:
- trueif the user is assigned the Role in the Group.
 
- 
hasRoleChecks if the user is assigned a specific Role in any of the given Groups- Angegeben von:
- hasRolein Schnittstelle- TurbineAccessControlList
- Parameter:
- rolename- the name of the Role
- groupset- a Groupset
- Gibt zurück:
- trueif the user is assigned the Role in any of the given Groups.
 
- 
hasRoleChecks if the user is assigned a specific Role in the global Group.- Angegeben von:
- hasRolein Schnittstelle- TurbineAccessControlList
- Parameter:
- role- the Role
- Gibt zurück:
- trueif the user is assigned the Role in the global Group.
 
- 
hasRoleChecks if the user is assigned a specific Role in the global Group.- Angegeben von:
- hasRolein Schnittstelle- TurbineAccessControlList
- Parameter:
- role- the Role
- Gibt zurück:
- trueif the user is assigned the Role in the global Group.
 
- 
hasPermissionChecks if the user is assigned a specific Permission in the Group.- Angegeben von:
- hasPermissionin Schnittstelle- TurbineAccessControlList
- Parameter:
- permission- the Permission
- group- the Group
- Gibt zurück:
- trueif the user is assigned the Permission in the Group.
 
- 
hasPermissionChecks if the user is assigned a specific Permission in any of the given Groups- Angegeben von:
- hasPermissionin Schnittstelle- TurbineAccessControlList
- Parameter:
- permission- the Permission
- groupset- a Groupset
- Gibt zurück:
- trueif the user is assigned the Permission in any of the given Groups.
 
- 
hasPermissionChecks if the user is assigned a specific Permission in the Group.- Angegeben von:
- hasPermissionin Schnittstelle- TurbineAccessControlList
- Parameter:
- permission- the Permission
- group- the Group
- Gibt zurück:
- trueif the user is assigned the Permission in the Group.
 
- 
hasPermissionChecks if the user is assigned a specific Permission in the Group.- Angegeben von:
- hasPermissionin Schnittstelle- TurbineAccessControlList
- Parameter:
- permission- the Permission
- group- the Group
- Gibt zurück:
- trueif the user is assigned the Permission in the Group.
 
- 
hasPermissionChecks if the user is assigned a specific Permission in any of the given Groups- Angegeben von:
- hasPermissionin Schnittstelle- TurbineAccessControlList
- Parameter:
- permissionName- the name of the Permission
- groupset- a Groupset
- Gibt zurück:
- trueif the user is assigned the Permission in any of the given Groups.
 
- 
hasPermissionChecks if the user is assigned a specific Permission in the global Group.- Angegeben von:
- hasPermissionin Schnittstelle- TurbineAccessControlList
- Parameter:
- permission- the Permission
- Gibt zurück:
- trueif the user is assigned the Permission in the global Group.
 
- 
hasPermissionChecks if the user is assigned a specific Permission in the global Group.- Angegeben von:
- hasPermissionin Schnittstelle- TurbineAccessControlList
- Parameter:
- permission- the Permission
- Gibt zurück:
- trueif the user is assigned the Permission in the global Group.
 
- 
getAllGroupsReturns all groups defined in the system. This is useful for debugging, when you want to display all roles and permissions an user is assigned. This method is needed because you can't call static methods of TurbineSecurity class from within WebMacro/Velocity template- Angegeben von:
- getAllGroupsin Schnittstelle- TurbineAccessControlList
- Gibt zurück:
- A Group [] of all groups in the system.
 
- 
getGroupSetBeschreibung aus Schnittstelle kopiert:TurbineAccessControlListRetrieves a set of Groups an user is assigned to.- Angegeben von:
- getGroupSetin Schnittstelle- TurbineAccessControlList
- Gibt zurück:
- the set of Groups this user is assigned to.
 
 
-