Class RegistreAccesServiceBase

  • All Implemented Interfaces:
    es.caib.seycon.ng.servei.RegistreAccesService

    public abstract class RegistreAccesServiceBase
    extends Object
    implements es.caib.seycon.ng.servei.RegistreAccesService

    Spring Service base class for es.caib.seycon.ng.servei.RegistreAccesService, provides access to all services and entities referenced by this service.

    see es.caib.seycon.ng.servei.RegistreAccesService
    • Constructor Detail

      • RegistreAccesServiceBase

        public RegistreAccesServiceBase()
    • Method Detail

      • setAccessLogService

        public void setAccessLogService​(com.soffid.iam.service.AccessLogService accessLogService)
        Sets reference to accessLogService.
      • getAccessLogService

        public com.soffid.iam.service.AccessLogService getAccessLogService()
        Gets reference to accessLogService.
      • findAccessLogByJsonQueryAsync

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

        protected abstract com.soffid.iam.api.AsyncList<es.caib.seycon.ng.comu.RegistreAcces> handleFindAccessLogByJsonQueryAsync​(String jsonQuery)
                                                                                                                           throws Exception
        Throws:
        Exception
      • create

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.RegistreAcces create​(es.caib.seycon.ng.comu.RegistreAcces registre)
                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface es.caib.seycon.ng.servei.RegistreAccesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract es.caib.seycon.ng.comu.RegistreAcces handleCreate​(es.caib.seycon.ng.comu.RegistreAcces registre)
                                                                      throws Exception
        Throws:
        Exception
      • findDarrersRegistresAccesMaquinaSSO

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.RegistreAcces> findDarrersRegistresAccesMaquinaSSO​(String nomServidor,
                                                                                                    String numRegistres)
                                                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findDarrersRegistresAccesMaquinaSSO in interface es.caib.seycon.ng.servei.RegistreAccesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindDarrersRegistresAccesMaquinaSSO

        protected abstract Collection<es.caib.seycon.ng.comu.RegistreAcces> handleFindDarrersRegistresAccesMaquinaSSO​(String nomServidor,
                                                                                                                      String numRegistres)
                                                                                                               throws Exception
        Throws:
        Exception
      • findDarrersRegistresByCodiUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.RegistreAcces> findDarrersRegistresByCodiUsuari​(String codiUsuari,
                                                                                                 String numRegistres,
                                                                                                 String codiProtocolAcces)
                                                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findDarrersRegistresByCodiUsuari in interface es.caib.seycon.ng.servei.RegistreAccesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindDarrersRegistresByCodiUsuari

        protected abstract Collection<es.caib.seycon.ng.comu.RegistreAcces> handleFindDarrersRegistresByCodiUsuari​(String codiUsuari,
                                                                                                                   String numRegistres,
                                                                                                                   String codiProtocolAcces)
                                                                                                            throws Exception
        Throws:
        Exception
      • findRegistreByDataIniAndCodiUsuari

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.RegistreAcces> findRegistreByDataIniAndCodiUsuari​(String dataIni,
                                                                                                   String codiUsuari,
                                                                                                   String numRegistres)
                                                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findRegistreByDataIniAndCodiUsuari in interface es.caib.seycon.ng.servei.RegistreAccesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindRegistreByDataIniAndCodiUsuari

        protected abstract Collection<es.caib.seycon.ng.comu.RegistreAcces> handleFindRegistreByDataIniAndCodiUsuari​(String dataIni,
                                                                                                                     String codiUsuari,
                                                                                                                     String numRegistres)
                                                                                                              throws Exception
        Throws:
        Exception
      • findRegistresAccesByFiltre

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.RegistreAcces> findRegistresAccesByFiltre​(String data,
                                                                                           String nomServidor,
                                                                                           String nomClient,
                                                                                           String codiUsuari)
                                                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findRegistresAccesByFiltre in interface es.caib.seycon.ng.servei.RegistreAccesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findRegistresAccesByFiltre

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.RegistreAcces> findRegistresAccesByFiltre​(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:
        findRegistresAccesByFiltre in interface es.caib.seycon.ng.servei.RegistreAccesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findRegistresAccesByFiltreNou

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.RegistreAcces> findRegistresAccesByFiltreNou​(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:
        findRegistresAccesByFiltreNou in interface es.caib.seycon.ng.servei.RegistreAccesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findRegistresAccesByMaquina

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.RegistreAcces> findRegistresAccesByMaquina​(String dataIni,
                                                                                            String nomServidor,
                                                                                            String numRegistres,
                                                                                            String protocolAcces)
                                                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findRegistresAccesByMaquina in interface es.caib.seycon.ng.servei.RegistreAccesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindRegistresAccesByMaquina

        protected abstract Collection<es.caib.seycon.ng.comu.RegistreAcces> handleFindRegistresAccesByMaquina​(String dataIni,
                                                                                                              String nomServidor,
                                                                                                              String numRegistres,
                                                                                                              String protocolAcces)
                                                                                                       throws Exception
        Throws:
        Exception
      • findRegistresAccesByMaquinaAccesSSO

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<es.caib.seycon.ng.comu.RegistreAcces> findRegistresAccesByMaquinaAccesSSO​(String dataIni,
                                                                                                    String nomServidor,
                                                                                                    String numRegistres)
                                                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findRegistresAccesByMaquinaAccesSSO in interface es.caib.seycon.ng.servei.RegistreAccesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindRegistresAccesByMaquinaAccesSSO

        protected abstract Collection<es.caib.seycon.ng.comu.RegistreAcces> handleFindRegistresAccesByMaquinaAccesSSO​(String dataIni,
                                                                                                                      String nomServidor,
                                                                                                                      String numRegistres)
                                                                                                               throws Exception
        Throws:
        Exception
      • findAccessLogByJsonQuery

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<es.caib.seycon.ng.comu.RegistreAcces> findAccessLogByJsonQuery​(String jsonQuery,
                                                                                   Integer start,
                                                                                   Integer pageSize)
                                                                            throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccessLogByJsonQuery in interface es.caib.seycon.ng.servei.RegistreAccesService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAccessLogByJsonQuery

        protected abstract List<es.caib.seycon.ng.comu.RegistreAcces> 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