|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.engine.security.acls.voter.AbstractPentahoAclVoter
public abstract class AbstractPentahoAclVoter
Constructor Summary | |
---|---|
AbstractPentahoAclVoter()
|
Method Summary | |
---|---|
GrantedAuthority |
getAdminRole()
Gets the role used to determine whether someone is the system-manager. |
abstract Authentication |
getAuthentication(IPentahoSession session)
|
void |
init(IPentahoSession session)
Simplifier for initialization of objects from the PentahoSystem object |
boolean |
isGranted(IPentahoSession session,
GrantedAuthority role)
Returns true if the user is a member of the specified role |
boolean |
isPentahoAdministrator(IPentahoSession session)
Determines whether the user is a super-manager of Pentaho. |
void |
setAdminRole(GrantedAuthority value)
Sets the role used to determine whether someone is the system-manager. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.pentaho.platform.api.engine.IAclVoter |
---|
getEffectiveAcl, getEffectiveAcls, hasAccess |
Constructor Detail |
---|
public AbstractPentahoAclVoter()
Method Detail |
---|
public abstract Authentication getAuthentication(IPentahoSession session)
public GrantedAuthority getAdminRole()
IAclVoter
getAdminRole
in interface IAclVoter
GrantedAuthority
of the role someone must be in to
be the system manager.public void setAdminRole(GrantedAuthority value)
IAclVoter
setAdminRole
in interface IAclVoter
value
- The GrantedAuthority
which someone must be a
considered a system managerpublic void init(IPentahoSession session)
IPentahoInitializer
init
in interface IPentahoInitializer
public boolean isPentahoAdministrator(IPentahoSession session)
IAclVoter
isPentahoAdministrator
in interface IAclVoter
true
if the user is a super-managerpublic boolean isGranted(IPentahoSession session, GrantedAuthority role)
IAclVoter
isGranted
in interface IAclVoter
true
if the user is a member of the specified role
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |