Package com.soffid.iam.service
Class ConfigurationServiceBase
- java.lang.Object
-
- com.soffid.iam.service.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
see com.soffid.iam.service.ConfigurationServicecom.soffid.iam.service.ConfigurationService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description ConfigurationServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.soffid.iam.api.Configurationcreate(com.soffid.iam.api.Configuration configuracio)voiddelete(com.soffid.iam.api.Configuration configuracio)voiddeleteBlob(String name)Collection<com.soffid.iam.api.Configuration>findConfigurationByFilter(String codi, String valor, String descripcio, String codiXarxa)com.soffid.iam.api.ConfigurationfindMasterParameterByNameAndNetwork(String paramter, String networkName)com.soffid.iam.api.ConfigurationfindParameterByNameAndNetworkName(String codiParametre, String codiXarxa)StringfindTenantParameter(String tenant, String parameter)byte[]getBlob(String name)BlobConfigurationEntityDaogetBlobConfigurationEntityDao()Gets reference toblobConfigurationEntityDao.StringgetBlobVersion(String name)ConfigEntityDaogetConfigEntityDao()Gets reference toconfiguracioEntityDao.Collection<com.soffid.iam.api.Configuration>getParameters()protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.com.soffid.iam.service.SyncServerServicegetSyncServerService()Gets reference toseyconServerService.protected abstract com.soffid.iam.api.ConfigurationhandleCreate(com.soffid.iam.api.Configuration configuracio)protected abstract voidhandleDelete(com.soffid.iam.api.Configuration configuracio)protected abstract voidhandleDeleteBlob(String name)protected abstract Collection<com.soffid.iam.api.Configuration>handleFindConfigurationByFilter(String codi, String valor, String descripcio, String codiXarxa)protected abstract com.soffid.iam.api.ConfigurationhandleFindMasterParameterByNameAndNetwork(String paramter, String networkName)protected abstract com.soffid.iam.api.ConfigurationhandleFindParameterByNameAndNetworkName(String codiParametre, String codiXarxa)protected abstract StringhandleFindTenantParameter(String tenant, String parameter)protected abstract byte[]handleGetBlob(String name)protected abstract StringhandleGetBlobVersion(String name)protected abstract Collection<com.soffid.iam.api.Configuration>handleGetParameters()protected abstract com.soffid.iam.api.ConfigurationhandleUpdate(com.soffid.iam.api.Configuration configuracio)protected abstract voidhandleUpdateBlob(String name, byte[] data)protected abstract voidhandleUpdateBlob(String name, byte[] data, String version)voidsetBlobConfigurationEntityDao(BlobConfigurationEntityDao blobConfigurationEntityDao)Sets reference toblobConfigurationEntityDao.voidsetConfigEntityDao(ConfigEntityDao configuracioEntityDao)Sets reference toconfiguracioEntityDao.voidsetSyncServerService(com.soffid.iam.service.SyncServerService seyconServerService)Sets reference toseyconServerService.com.soffid.iam.api.Configurationupdate(com.soffid.iam.api.Configuration configuracio)voidupdateBlob(String name, byte[] data)voidupdateBlob(String name, byte[] data, String version)
-
-
-
Method Detail
-
setBlobConfigurationEntityDao
public void setBlobConfigurationEntityDao(BlobConfigurationEntityDao blobConfigurationEntityDao)
Sets reference toblobConfigurationEntityDao.
-
getBlobConfigurationEntityDao
public BlobConfigurationEntityDao getBlobConfigurationEntityDao()
Gets reference toblobConfigurationEntityDao.
-
setConfigEntityDao
public void setConfigEntityDao(ConfigEntityDao configuracioEntityDao)
Sets reference toconfiguracioEntityDao.
-
getConfigEntityDao
public ConfigEntityDao getConfigEntityDao()
Gets reference toconfiguracioEntityDao.
-
setSyncServerService
public void setSyncServerService(com.soffid.iam.service.SyncServerService seyconServerService)
Sets reference toseyconServerService.
-
getSyncServerService
public com.soffid.iam.service.SyncServerService getSyncServerService()
Gets reference toseyconServerService.
-
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:
getBlobin interfacecom.soffid.iam.service.ConfigurationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetBlob
protected abstract byte[] handleGetBlob(String name) throws Exception
- Throws:
Exception
-
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:
createin interfacecom.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:
findMasterParameterByNameAndNetworkin interfacecom.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:
findParameterByNameAndNetworkNamein interfacecom.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:
updatein interfacecom.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:
findTenantParameterin interfacecom.soffid.iam.service.ConfigurationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindTenantParameter
protected abstract String handleFindTenantParameter(String tenant, String parameter) throws Exception
- Throws:
Exception
-
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:
getBlobVersionin interfacecom.soffid.iam.service.ConfigurationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetBlobVersion
protected abstract String handleGetBlobVersion(String name) throws Exception
- Throws:
Exception
-
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:
findConfigurationByFilterin interfacecom.soffid.iam.service.ConfigurationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindConfigurationByFilter
protected abstract Collection<com.soffid.iam.api.Configuration> handleFindConfigurationByFilter(String codi, String valor, String descripcio, String codiXarxa) throws Exception
- Throws:
Exception
-
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:
getParametersin interfacecom.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:
deletein interfacecom.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:
deleteBlobin interfacecom.soffid.iam.service.ConfigurationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDeleteBlob
protected abstract void handleDeleteBlob(String name) throws Exception
- Throws:
Exception
-
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:
updateBlobin interfacecom.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:
updateBlobin interfacecom.soffid.iam.service.ConfigurationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdateBlob
protected abstract void handleUpdateBlob(String name, byte[] data, String version) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-