public class AccessController extends Object implements Action
Turbine uses a User-Role-Permission arrangement for access control. Users are assigned Roles. Roles are assigned Permissions. Turbine modules then check the Permission required for an action or information with the set of Permissions currently associated with the session (which are dependent on the user associated with the session.)
The criteria for assigning Roles/Permissions is application dependent, in some cases an application may change a User's Roles during the session. To achieve flexibility, the ACL takes an Object parameter, which the application can use to doPerform the ACL.
This action is special in that it should only be executed by the Turbine servlet.
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
Constructor and Description |
---|
AccessController() |
Modifier and Type | Method and Description |
---|---|
void |
doPerform(PipelineData pipelineData)
If there is a user and the user is logged in, doPerform will
set the RunData ACL.
|
public AccessController()
public void doPerform(PipelineData pipelineData) throws org.apache.fulcrum.security.util.FulcrumSecurityException
link SecurityService.getACL(User)
and added to the current
session.Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.