|
||||||||||
| 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
org.pentaho.platform.engine.security.acls.voter.PentahoAllowAllAclVoter
public class PentahoAllowAllAclVoter
| Constructor Summary | |
|---|---|
PentahoAllowAllAclVoter()
|
|
| Method Summary | |
|---|---|
Authentication |
getAuthentication(IPentahoSession session)
|
IPentahoAclEntry |
getEffectiveAcl(IPentahoSession session,
IAclHolder holder)
This returns the effective ACL for the piece of content for the given user. |
AclEntry[] |
getEffectiveAcls(IPentahoSession session,
IAclHolder holder)
Returns an array of the authorities from the IAclHolder that apply to the provided authentication object. |
boolean |
hasAccess(IPentahoSession session,
IAclHolder holder,
int mask)
Determines whether the user (auth) has the requested authority (mask) based on the list of effective authorities from the holder. |
boolean |
isGranted(IPentahoSession session,
GrantedAuthority auth)
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. |
| Methods inherited from class org.pentaho.platform.engine.security.acls.voter.AbstractPentahoAclVoter |
|---|
getAdminRole, init, setAdminRole |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PentahoAllowAllAclVoter()
| Method Detail |
|---|
public boolean hasAccess(IPentahoSession session,
IAclHolder holder,
int mask)
IAclVoter
public Authentication getAuthentication(IPentahoSession session)
getAuthentication in class AbstractPentahoAclVoter
public AclEntry[] getEffectiveAcls(IPentahoSession session,
IAclHolder holder)
IAclVoter
public IPentahoAclEntry getEffectiveAcl(IPentahoSession session,
IAclHolder holder)
IAclVoternull. If the user has no
access to the object, it needs to return a PentahoAclEntry with
nothing (mask of 0).
public boolean isPentahoAdministrator(IPentahoSession session)
IAclVoter
isPentahoAdministrator in interface IAclVoterisPentahoAdministrator in class AbstractPentahoAclVotertrue if the user is a super-manager
public boolean isGranted(IPentahoSession session,
GrantedAuthority auth)
IAclVoter
isGranted in interface IAclVoterisGranted in class AbstractPentahoAclVotertrue 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 | |||||||||