org.pentaho.platform.dataaccess.datasource.wizard.service.impl
Interface IDataAccessViewPermissionHandler

All Known Implementing Classes:
DebugDataAccessViewPermissionHandler, SimpleDataAccessViewPermissionHandler

public interface IDataAccessViewPermissionHandler

Implement this interface to override the view permissions behavior of data access. This interface may be implemented and then the implementation class specified in the data-access settings.xml file, within the settings/dataaccess-permission-handler. The specific setting for this class is data-access-view-roles and data-access-view-users

Author:
Ramaiz Mansoor (rmansoor@pentaho.com)

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
 

Method Detail

getPermittedRoleList

List<String> getPermittedRoleList(IPentahoSession session)
This method returns list of permitted roles who are allowed to view and use datasource

Parameters:
session - pentaho session
Returns:
List of permitted roles

getPermittedUserList

List<String> getPermittedUserList(IPentahoSession session)
This method returns list of permitted user who are allowed to view and use datasource

Parameters:
session - pentaho session
Returns:
List of permitted users

getDefaultAcls

int getDefaultAcls(IPentahoSession session)
This method returns the default acls for permitted role and user

Parameters:
session - pentaho session
Returns:
int default acls

hasDataAccessViewPermission

boolean hasDataAccessViewPermission(IPentahoSession session)
This method returns true if user represented by session has view permission

Parameters:
session - pentaho session
Returns:
true if user represented by session has view permission