Class DefaultSurveillanceViewService

    • Constructor Detail

      • DefaultSurveillanceViewService

        public DefaultSurveillanceViewService()
    • Method Detail

      • setNodeDao

        public void setNodeDao​(NodeDao nodeDao)
        Method to set the node dao.
        Parameters:
        nodeDao - the NodeDao to be used
      • setMonitoredServiceDao

        public void setMonitoredServiceDao​(MonitoredServiceDao monitoredServiceDao)
        Method to set the monitored service dao.
        Parameters:
        monitoredServiceDao - the MonitoredServiceDao to be used
      • setResourceDao

        public void setResourceDao​(ResourceDao resourceDao)
        Method to set the resource dao.
        Parameters:
        resourceDao - the ResourceDao to be used
      • setGraphDao

        public void setGraphDao​(GraphDao graphDao)
        Method to set the graph dao.
        Parameters:
        graphDao - the GraphDao to be used
      • setNotificationDao

        public void setNotificationDao​(NotificationDao notificationDao)
        Method to set the notification dao.
        Parameters:
        notificationDao - the NotificationDao to be used
      • setCategoryDao

        public void setCategoryDao​(CategoryDao categoryDao)
        Method to set the category dao.
        Parameters:
        categoryDao - the CategoryDao to be used
      • setAlarmDao

        public void setAlarmDao​(AlarmDao alarmDao)
        Method to set the alarm dao.
        Parameters:
        alarmDao - the AlarmDao to be used
      • setGroupDao

        public void setGroupDao​(GroupDao groupDao)
        Method to set the group dao.
        Parameters:
        groupDao - the GroupDao to be used
      • setOutageDao

        public void setOutageDao​(OutageDao outageDao)
        Method to set the outage dao.
        Parameters:
        outageDao - the OutageDao to be used
      • setTransactionOperations

        public void setTransactionOperations​(org.springframework.transaction.support.TransactionOperations transactionOperations)
        Method to set the transaction operations instance
        Parameters:
        transactionOperations -
      • selectDefaultViewForUsername

        public View selectDefaultViewForUsername​(String username)
        Returns the default view for a given username.

        1. If a view which name equals the username exists it will be returned 2. If a view which name equals the user's group exists it will be returned 3. the default view defined by the default-view attribute will be returned

        Specified by:
        selectDefaultViewForUsername in interface SurveillanceViewService
        Parameters:
        username - the username to be used
        Returns:
        the default view for this user
      • getExecutorService

        public com.google.common.util.concurrent.ListeningExecutorService getExecutorService()
        Returns the executor pool.
        Specified by:
        getExecutorService in interface SurveillanceViewService
        Returns:
        the executor service pool