Class DomainServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.DomainService
    Direct Known Subclasses:
    DomainServiceImpl

    public abstract class DomainServiceBase
    extends Object
    implements com.soffid.iam.service.DomainService

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

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

      • DomainServiceBase

        public DomainServiceBase()
    • Method Detail

      • setInformationSystemEntityDao

        public void setInformationSystemEntityDao​(InformationSystemEntityDao aplicacioEntityDao)
        Sets reference to aplicacioEntityDao.
      • getInformationSystemEntityDao

        public InformationSystemEntityDao getInformationSystemEntityDao()
        Gets reference to aplicacioEntityDao.
      • 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.
      • 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.
      • setApplicationDomainEntityDao

        public void setApplicationDomainEntityDao​(ApplicationDomainEntityDao dominiAplicacioEntityDao)
        Sets reference to dominiAplicacioEntityDao.
      • getApplicationDomainEntityDao

        public ApplicationDomainEntityDao getApplicationDomainEntityDao()
        Gets reference to dominiAplicacioEntityDao.
      • setGroupEntityDao

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

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

        public void setGroupService​(com.soffid.iam.service.GroupService grupService)
        Sets reference to grupService.
      • getGroupService

        public com.soffid.iam.service.GroupService getGroupService()
        Gets reference to grupService.
      • setUserService

        public void setUserService​(com.soffid.iam.service.UserService usuariService)
        Sets reference to usuariService.
      • getUserService

        public com.soffid.iam.service.UserService getUserService()
        Gets reference to usuariService.
      • setDomainValueEntityDao

        public void setDomainValueEntityDao​(DomainValueEntityDao valorDominiAplicacioEntityDao)
        Sets reference to valorDominiAplicacioEntityDao.
      • getDomainValueEntityDao

        public DomainValueEntityDao getDomainValueEntityDao()
        Gets reference to valorDominiAplicacioEntityDao.
      • findDomainValueByTextAndFilterAsync

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

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.DomainValue> handleFindDomainValueByTextAndFilterAsync​(String text,
                                                                                                                                  String query)
                                                                                                                           throws Exception
        Throws:
        Exception
      • findDomainValueByTextAndFilter

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

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.DomainValue> handleFindDomainValueByTextAndFilter​(String text,
                                                                                                                               String query,
                                                                                                                               Integer first,
                                                                                                                               Integer max)
                                                                                                                        throws Exception
        Throws:
        Exception
      • create

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

        protected abstract com.soffid.iam.api.Domain handleCreate​(com.soffid.iam.api.Domain domini)
                                                           throws Exception
        Throws:
        Exception
      • findDomainByApplicationAndName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Domain findDomainByApplicationAndName​(String codiAplicacio,
                                                                        String name)
                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findDomainByApplicationAndName in interface com.soffid.iam.service.DomainService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindDomainByApplicationAndName

        protected abstract com.soffid.iam.api.Domain handleFindDomainByApplicationAndName​(String codiAplicacio,
                                                                                          String name)
                                                                                   throws Exception
        Throws:
        Exception
      • findApplicationDomainByDomianNameAndApplicationName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Domain findApplicationDomainByDomianNameAndApplicationName​(String nomDomini,
                                                                                             String codiAplicacio)
                                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findApplicationDomainByDomianNameAndApplicationName in interface com.soffid.iam.service.DomainService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindApplicationDomainByDomianNameAndApplicationName

        protected abstract com.soffid.iam.api.Domain handleFindApplicationDomainByDomianNameAndApplicationName​(String nomDomini,
                                                                                                               String codiAplicacio)
                                                                                                        throws Exception
        Throws:
        Exception
      • findGroupsDomain

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Domain findGroupsDomain()
                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupsDomain in interface com.soffid.iam.service.DomainService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupsDomain

        protected abstract com.soffid.iam.api.Domain handleFindGroupsDomain()
                                                                     throws Exception
        Throws:
        Exception
      • findUserDomainGroup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Domain findUserDomainGroup()
                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserDomainGroup in interface com.soffid.iam.service.DomainService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUserDomainGroup

        protected abstract com.soffid.iam.api.Domain handleFindUserDomainGroup()
                                                                        throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Domain update​(com.soffid.iam.api.Domain domini)
                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.DomainService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

        protected abstract com.soffid.iam.api.Domain handleUpdate​(com.soffid.iam.api.Domain domini)
                                                           throws Exception
        Throws:
        Exception
      • create

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

        protected abstract com.soffid.iam.api.DomainValue handleCreate​(com.soffid.iam.api.DomainValue valorDomini)
                                                                throws Exception
        Throws:
        Exception
      • findApplicationDomainValueByDomainNameAndDomainApplicationNameAndValue

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.DomainValue findApplicationDomainValueByDomainNameAndDomainApplicationNameAndValue​(String nomDomini,
                                                                                                                     String codiAplicacio,
                                                                                                                     String valor)
                                                                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findApplicationDomainValueByDomainNameAndDomainApplicationNameAndValue in interface com.soffid.iam.service.DomainService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindApplicationDomainValueByDomainNameAndDomainApplicationNameAndValue

        protected abstract com.soffid.iam.api.DomainValue handleFindApplicationDomainValueByDomainNameAndDomainApplicationNameAndValue​(String nomDomini,
                                                                                                                                       String codiAplicacio,
                                                                                                                                       String valor)
                                                                                                                                throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.DomainValue update​(com.soffid.iam.api.DomainValue valorDomini)
                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.DomainService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

        protected abstract com.soffid.iam.api.DomainValue handleUpdate​(com.soffid.iam.api.DomainValue valorDomini)
                                                                throws Exception
        Throws:
        Exception
      • findApplicationDomainsByApplicationName

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

        protected abstract Collection<com.soffid.iam.api.Domain> handleFindApplicationDomainsByApplicationName​(String codiAplicacio)
                                                                                                        throws Exception
        Throws:
        Exception
      • findDomainsByApplicationName

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

        protected abstract Collection<com.soffid.iam.api.Domain> handleFindDomainsByApplicationName​(String codiAplicacio)
                                                                                             throws Exception
        Throws:
        Exception
      • findDomainValuesByFilter

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.DomainValue> findDomainValuesByFilter​(com.soffid.iam.api.Domain domini,
                                                                                   String codi,
                                                                                   String descripcio,
                                                                                   String codiUsuari)
                                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findDomainValuesByFilter in interface com.soffid.iam.service.DomainService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindDomainValuesByFilter

        protected abstract Collection<com.soffid.iam.api.DomainValue> handleFindDomainValuesByFilter​(com.soffid.iam.api.Domain domini,
                                                                                                     String codi,
                                                                                                     String descripcio,
                                                                                                     String codiUsuari)
                                                                                              throws Exception
        Throws:
        Exception
      • delete

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void delete​(com.soffid.iam.api.Domain domini)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delete in interface com.soffid.iam.service.DomainService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelete

        protected abstract void handleDelete​(com.soffid.iam.api.Domain domini)
                                      throws Exception
        Throws:
        Exception
      • delete

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void delete​(com.soffid.iam.api.DomainValue valorDomini)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delete in interface com.soffid.iam.service.DomainService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelete

        protected abstract void handleDelete​(com.soffid.iam.api.DomainValue valorDomini)
                                      throws Exception
        Throws:
        Exception
      • getPrincipal

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