psdi.app.report

Class ReportService

    • Constructor Detail

      • ReportService

        public ReportService()
                      throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • ReportService

        public ReportService(MXServer mxServer)
                      throws java.rmi.RemoteException
        Parameters:
        srvEnv - -- the "Server Environment" this Service is being created in.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
        Registeres event so that when GROUP, GROUPUSER, REPORTAPPAUTH, REPORTAUTH or APPLICATIONAUTH record is deleted we can catch the event and delete the appropriate record from report application.
        Specified by:
        init in interface Service
        Overrides:
        init in class AppService
        See Also:
        Service
      • canRunThisReport

        public boolean canRunThisReport(UserInfo userInfo,
                                        java.lang.String reportName,
                                        java.lang.String appName)
                                 throws MXException,
                                        java.rmi.RemoteException
        This method checks if for the given userInfo, reportName and appName the report is accessible.
        Specified by:
        canRunThisReport in interface ReportServiceRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • canRunThisReport

        public boolean canRunThisReport(java.lang.String userId,
                                        java.lang.String reportName,
                                        java.lang.String appName,
                                        UserInfo userInfo)
                                 throws MXException,
                                        java.rmi.RemoteException
        This method checks if for the given userId, reportName and appName the report is accessible. Here userInfo is used for creating the Mbos
        Specified by:
        canRunThisReport in interface ReportServiceRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • getAccessibleReportsCollection

        public java.util.ArrayList getAccessibleReportsCollection(UserInfo userInfo)
                                                           throws MXException,
                                                                  java.rmi.RemoteException
        This method returns an ArrayList of REPORTS that the current user has access to. This can be used to quickly check if a REPORTNAME+APPNAME combo is allowed, instead of traversing through a Mbo Set or calling canRun multiple times.
        Specified by:
        getAccessibleReportsCollection in interface ReportServiceRemote
        Throws:
        MXException
        java.rmi.RemoteException
        Since:
        7.1.1.4