Class AccessLogServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.AccessLogService
    Direct Known Subclasses:
    AccessLogServiceImpl

    public abstract class AccessLogServiceBase
    extends Object
    implements com.soffid.iam.service.AccessLogService

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

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

      • AccessLogServiceBase

        public AccessLogServiceBase()
    • Method Detail

      • setAsyncRunnerService

        public void setAsyncRunnerService​(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)
        Sets reference to asyncRunnerService.
      • getAsyncRunnerService

        public com.soffid.iam.service.AsyncRunnerService getAsyncRunnerService()
        Gets reference to asyncRunnerService.
      • 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.
      • setGroupEntityDao

        public void setGroupEntityDao​(GroupEntityDao grupEntityDao)
        Sets reference to grupEntityDao.
      • getGroupEntityDao

        public GroupEntityDao getGroupEntityDao()
        Gets reference to grupEntityDao.
      • setHostEntityDao

        public void setHostEntityDao​(HostEntityDao maquinaEntityDao)
        Sets reference to maquinaEntityDao.
      • getHostEntityDao

        public HostEntityDao getHostEntityDao()
        Gets reference to maquinaEntityDao.
      • setAccessLogEntityDao

        public void setAccessLogEntityDao​(AccessLogEntityDao registreAccesEntityDao)
        Sets reference to registreAccesEntityDao.
      • getAccessLogEntityDao

        public AccessLogEntityDao getAccessLogEntityDao()
        Gets reference to registreAccesEntityDao.
      • setServiceEntityDao

        public void setServiceEntityDao​(ServiceEntityDao serveiEntityDao)
        Sets reference to serveiEntityDao.
      • getServiceEntityDao

        public ServiceEntityDao getServiceEntityDao()
        Gets reference to serveiEntityDao.
      • setUserEntityDao

        public void setUserEntityDao​(UserEntityDao usuariEntityDao)
        Sets reference to usuariEntityDao.
      • getUserEntityDao

        public UserEntityDao getUserEntityDao()
        Gets reference to usuariEntityDao.
      • findAccessLogByJsonQueryAsync

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.AccessLog> findAccessLogByJsonQueryAsync​(String jsonQuery)
                                                                                                 throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccessLogByJsonQueryAsync in interface com.soffid.iam.service.AccessLogService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAccessLogByJsonQueryAsync

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.AccessLog> handleFindAccessLogByJsonQueryAsync​(String jsonQuery)
                                                                                                                   throws Exception
        Throws:
        Exception
      • create

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AccessLog create​(com.soffid.iam.api.AccessLog registre)
                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.AccessLogService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract com.soffid.iam.api.AccessLog handleCreate​(com.soffid.iam.api.AccessLog registre)
                                                              throws Exception
        Throws:
        Exception
      • findLastEntriesSSOHostAccess

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.AccessLog> findLastEntriesSSOHostAccess​(String nomServidor,
                                                                                     String numRegistres)
                                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findLastEntriesSSOHostAccess in interface com.soffid.iam.service.AccessLogService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindLastEntriesSSOHostAccess

        protected abstract Collection<com.soffid.iam.api.AccessLog> handleFindLastEntriesSSOHostAccess​(String nomServidor,
                                                                                                       String numRegistres)
                                                                                                throws Exception
        Throws:
        Exception
      • findLastEntriesByUserName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.AccessLog> findLastEntriesByUserName​(String codiUsuari,
                                                                                  String numRegistres,
                                                                                  String codiProtocolAcces)
                                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findLastEntriesByUserName in interface com.soffid.iam.service.AccessLogService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindLastEntriesByUserName

        protected abstract Collection<com.soffid.iam.api.AccessLog> handleFindLastEntriesByUserName​(String codiUsuari,
                                                                                                    String numRegistres,
                                                                                                    String codiProtocolAcces)
                                                                                             throws Exception
        Throws:
        Exception
      • findEntryByInitialDataAndUserName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.AccessLog> findEntryByInitialDataAndUserName​(String dataIni,
                                                                                          String codiUsuari,
                                                                                          String numRegistres)
                                                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findEntryByInitialDataAndUserName in interface com.soffid.iam.service.AccessLogService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindEntryByInitialDataAndUserName

        protected abstract Collection<com.soffid.iam.api.AccessLog> handleFindEntryByInitialDataAndUserName​(String dataIni,
                                                                                                            String codiUsuari,
                                                                                                            String numRegistres)
                                                                                                     throws Exception
        Throws:
        Exception
      • findEntryByFilter

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.AccessLog> findEntryByFilter​(String data,
                                                                          String nomServidor,
                                                                          String nomClient,
                                                                          String codiUsuari)
                                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findEntryByFilter in interface com.soffid.iam.service.AccessLogService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findEntryByFilter

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.AccessLog> findEntryByFilter​(String dataIni,
                                                                          String dataFi,
                                                                          String nomServidor,
                                                                          String nomClient,
                                                                          String codiUsuari)
                                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findEntryByFilter in interface com.soffid.iam.service.AccessLogService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findEntryByNewFilter

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.AccessLog> findEntryByNewFilter​(String dataIni,
                                                                             String dataFi,
                                                                             String nomServidor,
                                                                             String nomClient,
                                                                             String codiUsuari)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findEntryByNewFilter in interface com.soffid.iam.service.AccessLogService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findEntryByHost

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.AccessLog> findEntryByHost​(String dataIni,
                                                                        String nomServidor,
                                                                        String numRegistres,
                                                                        String protocolAcces)
                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findEntryByHost in interface com.soffid.iam.service.AccessLogService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findEntryBySSOHostAccess

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.AccessLog> findEntryBySSOHostAccess​(String dataIni,
                                                                                 String nomServidor,
                                                                                 String numRegistres)
                                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findEntryBySSOHostAccess in interface com.soffid.iam.service.AccessLogService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAccessLogByJsonQuery

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.AccessLog> findAccessLogByJsonQuery​(String jsonQuery,
                                                                           Integer start,
                                                                           Integer pageSize)
                                                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccessLogByJsonQuery in interface com.soffid.iam.service.AccessLogService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAccessLogByJsonQuery

        protected abstract List<com.soffid.iam.api.AccessLog> handleFindAccessLogByJsonQuery​(String jsonQuery,
                                                                                             Integer start,
                                                                                             Integer pageSize)
                                                                                      throws Exception
        Throws:
        Exception
      • getPrincipal

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