Class ConfigurationServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.ConfigurationService
    Direct Known Subclasses:
    ConfigurationServiceImpl

    public abstract class ConfigurationServiceBase
    extends Object
    implements com.soffid.iam.service.ConfigurationService

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

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

      • ConfigurationServiceBase

        public ConfigurationServiceBase()
    • Method Detail

      • setBlobConfigurationEntityDao

        public void setBlobConfigurationEntityDao​(BlobConfigurationEntityDao blobConfigurationEntityDao)
        Sets reference to blobConfigurationEntityDao.
      • getBlobConfigurationEntityDao

        public BlobConfigurationEntityDao getBlobConfigurationEntityDao()
        Gets reference to blobConfigurationEntityDao.
      • setConfigEntityDao

        public void setConfigEntityDao​(ConfigEntityDao configuracioEntityDao)
        Sets reference to configuracioEntityDao.
      • getConfigEntityDao

        public ConfigEntityDao getConfigEntityDao()
        Gets reference to configuracioEntityDao.
      • setSyncServerService

        public void setSyncServerService​(com.soffid.iam.service.SyncServerService seyconServerService)
        Sets reference to seyconServerService.
      • getSyncServerService

        public com.soffid.iam.service.SyncServerService getSyncServerService()
        Gets reference to seyconServerService.
      • getBlob

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public byte[] getBlob​(String name)
                       throws es.caib.seycon.ng.exception.InternalErrorException,
                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getBlob in interface com.soffid.iam.service.ConfigurationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • create

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

        protected abstract com.soffid.iam.api.Configuration handleCreate​(com.soffid.iam.api.Configuration configuracio)
                                                                  throws Exception
        Throws:
        Exception
      • findMasterParameterByNameAndNetwork

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Configuration findMasterParameterByNameAndNetwork​(String paramter,
                                                                                    String networkName)
                                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findMasterParameterByNameAndNetwork in interface com.soffid.iam.service.ConfigurationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindMasterParameterByNameAndNetwork

        protected abstract com.soffid.iam.api.Configuration handleFindMasterParameterByNameAndNetwork​(String paramter,
                                                                                                      String networkName)
                                                                                               throws Exception
        Throws:
        Exception
      • findParameterByNameAndNetworkName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Configuration findParameterByNameAndNetworkName​(String codiParametre,
                                                                                  String codiXarxa)
                                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findParameterByNameAndNetworkName in interface com.soffid.iam.service.ConfigurationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindParameterByNameAndNetworkName

        protected abstract com.soffid.iam.api.Configuration handleFindParameterByNameAndNetworkName​(String codiParametre,
                                                                                                    String codiXarxa)
                                                                                             throws Exception
        Throws:
        Exception
      • update

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

        protected abstract com.soffid.iam.api.Configuration handleUpdate​(com.soffid.iam.api.Configuration configuracio)
                                                                  throws Exception
        Throws:
        Exception
      • findTenantParameter

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       readOnly=true)
        public String findTenantParameter​(String tenant,
                                          String parameter)
                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findTenantParameter in interface com.soffid.iam.service.ConfigurationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getBlobVersion

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Configuration> findConfigurationByFilter​(String codi,
                                                                                      String valor,
                                                                                      String descripcio,
                                                                                      String codiXarxa)
                                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findConfigurationByFilter in interface com.soffid.iam.service.ConfigurationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getParameters

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Configuration> getParameters()
                                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getParameters in interface com.soffid.iam.service.ConfigurationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetParameters

        protected abstract Collection<com.soffid.iam.api.Configuration> handleGetParameters()
                                                                                     throws Exception
        Throws:
        Exception
      • delete

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

        protected abstract void handleDelete​(com.soffid.iam.api.Configuration configuracio)
                                      throws Exception
        Throws:
        Exception
      • deleteBlob

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void deleteBlob​(String name)
                        throws es.caib.seycon.ng.exception.InternalErrorException,
                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        deleteBlob in interface com.soffid.iam.service.ConfigurationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • updateBlob

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void updateBlob​(String name,
                               byte[] data)
                        throws es.caib.seycon.ng.exception.InternalErrorException,
                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateBlob in interface com.soffid.iam.service.ConfigurationService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdateBlob

        protected abstract void handleUpdateBlob​(String name,
                                                 byte[] data)
                                          throws Exception
        Throws:
        Exception
      • updateBlob

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void updateBlob​(String name,
                               byte[] data,
                               String version)
                        throws es.caib.seycon.ng.exception.InternalErrorException,
                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateBlob in interface com.soffid.iam.service.ConfigurationService
        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