|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.platform.engine.security.acls.voter.AbstractPentahoAclVoter
public abstract class AbstractPentahoAclVoter
| Constructor Summary | |
|---|---|
AbstractPentahoAclVoter()
|
|
| Method Summary | |
|---|---|
org.springframework.security.GrantedAuthority |
getAdminRole()
Gets the role used to determine whether someone is the system-manager. |
abstract org.springframework.security.Authentication |
getAuthentication(IPentahoSession session)
|
void |
init(IPentahoSession session)
Simplifier for initialization of objects from the PentahoSystem object |
boolean |
isGranted(IPentahoSession session,
org.springframework.security.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(org.springframework.security.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 org.springframework.security.Authentication getAuthentication(IPentahoSession session)
public org.springframework.security.GrantedAuthority getAdminRole()
IAclVoter
getAdminRole in interface IAclVoterGrantedAuthority of the role someone must be in to
be the system manager.public void setAdminRole(org.springframework.security.GrantedAuthority value)
IAclVoter
setAdminRole in interface IAclVotervalue - The GrantedAuthority which someone must be a
considered a system managerpublic void init(IPentahoSession session)
IPentahoInitializer
init in interface IPentahoInitializerpublic boolean isPentahoAdministrator(IPentahoSession session)
IAclVoter
isPentahoAdministrator in interface IAclVotertrue if the user is a super-manager
public boolean isGranted(IPentahoSession session,
org.springframework.security.GrantedAuthority role)
IAclVoter
isGranted in interface IAclVotertrue 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 | |||||||||