Class AuditServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.AuditService
    Direct Known Subclasses:
    AuditServiceImpl

    public abstract class AuditServiceBase
    extends Object
    implements com.soffid.iam.service.AuditService

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

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

      • AuditServiceBase

        public AuditServiceBase()
    • 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.
      • setAuditEntityDao

        public void setAuditEntityDao​(AuditEntityDao auditoriaEntityDao)
        Sets reference to auditoriaEntityDao.
      • getAuditEntityDao

        public AuditEntityDao getAuditEntityDao()
        Gets reference to auditoriaEntityDao.
      • findAuditByJsonQueryAsync

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.Audit> findAuditByJsonQueryAsync​(String query)
                                                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAuditByJsonQueryAsync in interface com.soffid.iam.service.AuditService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAuditByJsonQueryAsync

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.Audit> handleFindAuditByJsonQueryAsync​(String query)
                                                                                                           throws Exception
        Throws:
        Exception
      • findAuditByJsonQuery

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<com.soffid.iam.api.Audit> findAuditByJsonQuery​(String query,
                                                                                             Integer first,
                                                                                             Integer last)
                                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAuditByJsonQuery in interface com.soffid.iam.service.AuditService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAuditByJsonQuery

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.Audit> handleFindAuditByJsonQuery​(String query,
                                                                                                               Integer first,
                                                                                                               Integer last)
                                                                                                        throws Exception
        Throws:
        Exception
      • create

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

        protected abstract com.soffid.iam.api.Audit handleCreate​(com.soffid.iam.api.Audit auditoria)
                                                          throws Exception
        Throws:
        Exception
      • findAuditById

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Audit findAuditById​(Long id)
                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAuditById in interface com.soffid.iam.service.AuditService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAuditById

        protected abstract com.soffid.iam.api.Audit handleFindAuditById​(Long id)
                                                                 throws Exception
        Throws:
        Exception
      • findAuditByJsonQuery

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Audit> findAuditByJsonQuery​(String query)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAuditByJsonQuery in interface com.soffid.iam.service.AuditService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAuditsByCriteria

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Audit> findAuditsByCriteria​(String data,
                                                                         String autor,
                                                                         String objecte,
                                                                         String usuari,
                                                                         String accio)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAuditsByCriteria in interface com.soffid.iam.service.AuditService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAuditsByCriteria

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Audit> findAuditsByCriteria​(String dataIni,
                                                                         String dataFi,
                                                                         String autor,
                                                                         String objecte,
                                                                         String usuari,
                                                                         String accio)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAuditsByCriteria in interface com.soffid.iam.service.AuditService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAuditsByCriteria

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Audit> findAuditsByCriteria​(String data,
                                                                         String autor,
                                                                         String objecte,
                                                                         String usuari,
                                                                         String objecteAuditat,
                                                                         String valorOA,
                                                                         String accio)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAuditsByCriteria in interface com.soffid.iam.service.AuditService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAuditsByCriteria

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Audit> findAuditsByCriteria​(String dataIni,
                                                                         String dataFi,
                                                                         String autor,
                                                                         String objecte,
                                                                         String usuari,
                                                                         String objecteAuditat,
                                                                         String valorOA,
                                                                         String accio)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAuditsByCriteria in interface com.soffid.iam.service.AuditService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPrincipal

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