Class PentahoBasicAclVoter
- java.lang.Object
-
- org.pentaho.platform.engine.security.acls.voter.AbstractPentahoAclVoter
-
- org.pentaho.platform.engine.security.acls.voter.PentahoBasicAclVoter
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IAclVoter
,org.pentaho.platform.api.engine.IPentahoInitializer
- Direct Known Subclasses:
PentahoAllowAnonymousAclVoter
,PentahoUserOverridesVoter
public class PentahoBasicAclVoter extends AbstractPentahoAclVoter implements org.pentaho.platform.api.engine.IAclVoter
Standard basic ACL Voter. This voter simply aggregates all the applicable access controls on an object when asked for the effective ACL.For example, if the user (sally) belongs to the following roles:
User Id Role sally dev mgr Role Access dev Execute sales Execute and Subscribe sally Nothing - Author:
- mbatchel
- See Also:
PentahoUserOverridesVoter
-
-
Field Summary
-
Fields inherited from class org.pentaho.platform.engine.security.acls.voter.AbstractPentahoAclVoter
adminRole
-
-
Constructor Summary
Constructors Constructor Description PentahoBasicAclVoter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authentication
getAuthentication(org.pentaho.platform.api.engine.IPentahoSession session)
PentahoAclEntry
getEffectiveAcl(org.pentaho.platform.api.engine.IPentahoSession session, org.pentaho.platform.api.engine.IAclHolder holder)
org.pentaho.platform.api.engine.IAclEntry[]
getEffectiveAcls(org.pentaho.platform.api.engine.IPentahoSession session, org.pentaho.platform.api.engine.IAclHolder holder)
boolean
hasAccess(org.pentaho.platform.api.engine.IPentahoSession session, org.pentaho.platform.api.engine.IAclHolder holder, int mask)
-
Methods inherited from class org.pentaho.platform.engine.security.acls.voter.AbstractPentahoAclVoter
getAdminRole, init, isGranted, isPentahoAdministrator, setAdminRole
-
-
-
-
Method Detail
-
getAuthentication
public org.springframework.security.core.Authentication getAuthentication(org.pentaho.platform.api.engine.IPentahoSession session)
- Specified by:
getAuthentication
in classAbstractPentahoAclVoter
-
hasAccess
public boolean hasAccess(org.pentaho.platform.api.engine.IPentahoSession session, org.pentaho.platform.api.engine.IAclHolder holder, int mask)
- Specified by:
hasAccess
in interfaceorg.pentaho.platform.api.engine.IAclVoter
-
getEffectiveAcls
public org.pentaho.platform.api.engine.IAclEntry[] getEffectiveAcls(org.pentaho.platform.api.engine.IPentahoSession session, org.pentaho.platform.api.engine.IAclHolder holder)
- Specified by:
getEffectiveAcls
in interfaceorg.pentaho.platform.api.engine.IAclVoter
-
getEffectiveAcl
public PentahoAclEntry getEffectiveAcl(org.pentaho.platform.api.engine.IPentahoSession session, org.pentaho.platform.api.engine.IAclHolder holder)
- Specified by:
getEffectiveAcl
in interfaceorg.pentaho.platform.api.engine.IAclVoter
-
-