org.pentaho.platform.dataaccess.datasource.wizard.service.impl
Class SimpleDataAccessViewPermissionHandler

java.lang.Object
  extended by org.pentaho.platform.dataaccess.datasource.wizard.service.impl.SimpleDataAccessViewPermissionHandler
All Implemented Interfaces:
IDataAccessViewPermissionHandler

public class SimpleDataAccessViewPermissionHandler
extends Object
implements IDataAccessViewPermissionHandler


Constructor Summary
SimpleDataAccessViewPermissionHandler()
           
 
Method Summary
 int getDefaultAcls(IPentahoSession session)
          This method returns the default acls for permitted role and user
 List<String> getPermittedRoleList(IPentahoSession session)
          This method returns list of permitted roles who are allowed to view and use datasource
 List<String> getPermittedUserList(IPentahoSession session)
          This method returns list of permitted user who are allowed to view and use datasource
 boolean hasDataAccessViewPermission(IPentahoSession session)
          This method returns true if user represented by session has view permission
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDataAccessViewPermissionHandler

public SimpleDataAccessViewPermissionHandler()
Method Detail

getPermittedRoleList

public List<String> getPermittedRoleList(IPentahoSession session)
Description copied from interface: IDataAccessViewPermissionHandler
This method returns list of permitted roles who are allowed to view and use datasource

Specified by:
getPermittedRoleList in interface IDataAccessViewPermissionHandler
Parameters:
session - pentaho session
Returns:
List of permitted roles

getPermittedUserList

public List<String> getPermittedUserList(IPentahoSession session)
Description copied from interface: IDataAccessViewPermissionHandler
This method returns list of permitted user who are allowed to view and use datasource

Specified by:
getPermittedUserList in interface IDataAccessViewPermissionHandler
Parameters:
session - pentaho session
Returns:
List of permitted users

getDefaultAcls

public int getDefaultAcls(IPentahoSession session)
Description copied from interface: IDataAccessViewPermissionHandler
This method returns the default acls for permitted role and user

Specified by:
getDefaultAcls in interface IDataAccessViewPermissionHandler
Parameters:
session - pentaho session
Returns:
int default acls

hasDataAccessViewPermission

public boolean hasDataAccessViewPermission(IPentahoSession session)
Description copied from interface: IDataAccessViewPermissionHandler
This method returns true if user represented by session has view permission

Specified by:
hasDataAccessViewPermission in interface IDataAccessViewPermissionHandler
Parameters:
session - pentaho session
Returns:
true if user represented by session has view permission