|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAclVoter
Method Summary | |
---|---|
GrantedAuthority |
getAdminRole()
Gets the role used to determine whether someone is the system-manager. |
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 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. |
Method Detail |
---|
boolean hasAccess(IPentahoSession session, IAclHolder holder, int mask)
auth
- holder
- mask
-
AclEntry[] getEffectiveAcls(IPentahoSession session, IAclHolder holder)
auth
- holder
-
boolean isPentahoAdministrator(IPentahoSession session)
session
-
true
if the user is a super-managerGrantedAuthority getAdminRole()
GrantedAuthority
of the role someone must be in to
be the system manager.void setAdminRole(GrantedAuthority value)
value
- The GrantedAuthority
which someone must be a
considered a system managerboolean isGranted(IPentahoSession session, GrantedAuthority role)
session
- role
-
true
if the user is a member of the specified roleIPentahoAclEntry getEffectiveAcl(IPentahoSession session, IAclHolder holder)
null
. If the user has no
access to the object, it needs to return a PentahoAclEntry with
nothing (mask of 0).
session
- holder
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |