org.outerj.xreporter.authorisation
Interface AuthorisationManager

All Known Implementing Classes:
AuthorisationManagerImpl

public interface AuthorisationManager

The AuthorisationManager controls access to reports and data sources.


Field Summary
static java.lang.String ROLE
           
 
Method Summary
 boolean canAccessDataSource(User user, java.lang.String dataSourceId)
           
 boolean canAccessReport(User user, java.lang.String reportDefinitionId)
           
 java.util.Set getAllowedDataSourceIds(User user)
          Returns a set of all data source id's (= String objects) that the user is allowed to access.
 java.util.Set getAllowedReportDefinitionIds(User user)
          Returns a set of all report definition id's (= String objects) that the user is allowed to access.
 

Field Detail

ROLE

public static final java.lang.String ROLE
See Also:
Constant Field Values
Method Detail

canAccessReport

public boolean canAccessReport(User user,
                               java.lang.String reportDefinitionId)
                        throws AuthorisationException
Throws:
AuthorisationException

getAllowedReportDefinitionIds

public java.util.Set getAllowedReportDefinitionIds(User user)
                                            throws AuthorisationException
Returns a set of all report definition id's (= String objects) that the user is allowed to access.

Throws:
AuthorisationException

canAccessDataSource

public boolean canAccessDataSource(User user,
                                   java.lang.String dataSourceId)
                            throws AuthorisationException
Throws:
AuthorisationException

getAllowedDataSourceIds

public java.util.Set getAllowedDataSourceIds(User user)
                                      throws AuthorisationException
Returns a set of all data source id's (= String objects) that the user is allowed to access.

Throws:
AuthorisationException