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.Configuration
create(com.soffid.iam.api.Configuration configuracio)
void
delete(com.soffid.iam.api.Configuration configuracio)
void
deleteBlob(String name)
Collection<com.soffid.iam.api.Configuration>
findConfigurationByFilter(String codi, String valor, String descripcio, String codiXarxa)
com.soffid.iam.api.Configuration
findMasterParameterByNameAndNetwork(String paramter, String networkName)
com.soffid.iam.api.Configuration
findParameterByNameAndNetworkName(String codiParametre, String codiXarxa)
String
findTenantParameter(String tenant, String parameter)
byte[]
getBlob(String name)
BlobConfigurationEntityDao
getBlobConfigurationEntityDao()
Gets reference toblobConfigurationEntityDao
.String
getBlobVersion(String name)
ConfigEntityDao
getConfigEntityDao()
Gets reference toconfiguracioEntityDao
.Collection<com.soffid.iam.api.Configuration>
getParameters()
protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.com.soffid.iam.service.SyncServerService
getSyncServerService()
Gets reference toseyconServerService
.protected abstract com.soffid.iam.api.Configuration
handleCreate(com.soffid.iam.api.Configuration configuracio)
protected abstract void
handleDelete(com.soffid.iam.api.Configuration configuracio)
protected abstract void
handleDeleteBlob(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.Configuration
handleFindMasterParameterByNameAndNetwork(String paramter, String networkName)
protected abstract com.soffid.iam.api.Configuration
handleFindParameterByNameAndNetworkName(String codiParametre, String codiXarxa)
protected abstract String
handleFindTenantParameter(String tenant, String parameter)
protected abstract byte[]
handleGetBlob(String name)
protected abstract String
handleGetBlobVersion(String name)
protected abstract Collection<com.soffid.iam.api.Configuration>
handleGetParameters()
protected abstract com.soffid.iam.api.Configuration
handleUpdate(com.soffid.iam.api.Configuration configuracio)
protected abstract void
handleUpdateBlob(String name, byte[] data)
protected abstract void
handleUpdateBlob(String name, byte[] data, String version)
void
setBlobConfigurationEntityDao(BlobConfigurationEntityDao blobConfigurationEntityDao)
Sets reference toblobConfigurationEntityDao
.void
setConfigEntityDao(ConfigEntityDao configuracioEntityDao)
Sets reference toconfiguracioEntityDao
.void
setSyncServerService(com.soffid.iam.service.SyncServerService seyconServerService)
Sets reference toseyconServerService
.com.soffid.iam.api.Configuration
update(com.soffid.iam.api.Configuration configuracio)
void
updateBlob(String name, byte[] data)
void
updateBlob(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:
getBlob
in 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:
create
in 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:
findMasterParameterByNameAndNetwork
in 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:
findParameterByNameAndNetworkName
in 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:
update
in 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:
findTenantParameter
in 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:
getBlobVersion
in 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:
findConfigurationByFilter
in 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:
getParameters
in 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:
delete
in 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:
deleteBlob
in 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:
updateBlob
in 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:
updateBlob
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-