| com.pentaho.security.acls.voter.IAclVoter
All known Subclasses: com.pentaho.security.acls.voter.AbstractPentahoAclVoter, com.pentaho.security.acls.voter.PentahoBasicAclVoter,
IAclVoter | public interface IAclVoter (Code) | | |
getAdminRole | public GrantedAuthority getAdminRole()(Code) | | Gets the role used to determine whether someone is the system-manager.
GrantedAuthority of the role someone must be in tobe the system manager. |
getEffectiveAcl | public PentahoAclEntry getEffectiveAcl(IPentahoSession session, IAclHolder holder)(Code) | | This returns the effective ACL for the piece of content for the given
user. Ideally, this will look at all the effective ACLs returned for this
user for this piece of content, and return an ACL that encapsulates all
the users' access to that content. The returning PentahoAclEntry will
represent the ACL that the user has to the content.
This method should NEVER return null . If the user has no
access to the object, it needs to return a PentahoAclEntry with
nothing (mask of 0).
Parameters: session - Parameters: holder - PentahoAclEntry holding the access to the object. |
getEffectiveAcls | public AclEntry[] getEffectiveAcls(IPentahoSession session, IAclHolder holder)(Code) | | Returns an array of the authorities from the IAclHolder that apply to the
provided authentication object.
Parameters: auth - Parameters: holder - The array of authorities from the IAclHolder that apply to theperson in question |
hasAccess | public boolean hasAccess(IPentahoSession session, IAclHolder holder, int mask)(Code) | | Determines whether the user (auth) has the requested authority (mask)
based on the list of effective authorities from the holder.
Parameters: auth - Parameters: holder - Parameters: mask - true if the user has the requested access. |
isGranted | public boolean isGranted(IPentahoSession session, GrantedAuthority role)(Code) | | Returns true if the user is a member of the specified role
Parameters: session - Parameters: role - true if the user is a member of the specified role |
isPentahoAdministrator | public boolean isPentahoAdministrator(IPentahoSession session)(Code) | | Determines whether the user is a super-manager of Pentaho. Uses the
Manager Role.
Parameters: session - true if the user is a super-manager |
setAdminRole | public void setAdminRole(GrantedAuthority value)(Code) | | Sets the role used to determine whether someone is the system-manager.
Parameters: value - The GrantedAuthority which someone must be aconsidered a system manager |
|
|