Class StatsServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.StatsService
    Direct Known Subclasses:
    StatsServiceImpl

    public abstract class StatsServiceBase
    extends Object
    implements com.soffid.iam.service.StatsService

    Spring Service base class for com.soffid.iam.service.StatsService, provides access to all services and entities referenced by this service.

    see com.soffid.iam.service.StatsService
    • Constructor Detail

      • StatsServiceBase

        public StatsServiceBase()
    • Method Detail

      • setAccountEntityDao

        public void setAccountEntityDao​(AccountEntityDao accountEntityDao)
        Sets reference to accountEntityDao.
      • getAccountEntityDao

        public AccountEntityDao getAccountEntityDao()
        Gets reference to accountEntityDao.
      • setApplicationService

        public void setApplicationService​(com.soffid.iam.service.ApplicationService aplicacioService)
        Sets reference to aplicacioService.
      • getApplicationService

        public com.soffid.iam.service.ApplicationService getApplicationService()
        Gets reference to aplicacioService.
      • setAuthorizationEntityDao

        public void setAuthorizationEntityDao​(AuthorizationEntityDao autoritzacioRolEntityDao)
        Sets reference to autoritzacioRolEntityDao.
      • getAuthorizationEntityDao

        public AuthorizationEntityDao getAuthorizationEntityDao()
        Gets reference to autoritzacioRolEntityDao.
      • setAuthorizationService

        public void setAuthorizationService​(com.soffid.iam.service.AuthorizationService autoritzacioService)
        Sets reference to autoritzacioService.
      • getAuthorizationService

        public com.soffid.iam.service.AuthorizationService getAuthorizationService()
        Gets reference to autoritzacioService.
      • setJumpServerGroupEntityDao

        public void setJumpServerGroupEntityDao​(JumpServerGroupEntityDao jumpServerGroupEntityDao)
        Sets reference to jumpServerGroupEntityDao.
      • getJumpServerGroupEntityDao

        public JumpServerGroupEntityDao getJumpServerGroupEntityDao()
        Gets reference to jumpServerGroupEntityDao.
      • setPamSessionService

        public void setPamSessionService​(com.soffid.iam.service.PamSessionService pamSessionService)
        Sets reference to pamSessionService.
      • getPamSessionService

        public com.soffid.iam.service.PamSessionService getPamSessionService()
        Gets reference to pamSessionService.
      • setStatsEntityDao

        public void setStatsEntityDao​(StatsEntityDao statsEntityDao)
        Sets reference to statsEntityDao.
      • getStatsEntityDao

        public StatsEntityDao getStatsEntityDao()
        Gets reference to statsEntityDao.
      • findStats

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Stats findStats​(String name,
                                                  Date since,
                                                  Date until,
                                                  int step)
                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findStats in interface com.soffid.iam.service.StatsService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindStats

        protected abstract com.soffid.iam.api.Stats handleFindStats​(String name,
                                                                    Date since,
                                                                    Date until,
                                                                    int step)
                                                             throws Exception
        Throws:
        Exception
      • purge

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void purge()
                   throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        purge in interface com.soffid.iam.service.StatsService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • updateStats

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void updateStats()
                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateStats in interface com.soffid.iam.service.StatsService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdateStats

        protected abstract void handleUpdateStats()
                                           throws Exception
        Throws:
        Exception
      • getPrincipal

        protected Principal getPrincipal()
        Gets the current principal if one has been set, otherwise returns null.
        Returns:
        the current principal