Package es.caib.seycon.ng.servei
Class ConfiguracioServiceBase
- java.lang.Object
-
- es.caib.seycon.ng.servei.ConfiguracioServiceBase
-
- All Implemented Interfaces:
es.caib.seycon.ng.servei.ConfiguracioService
public abstract class ConfiguracioServiceBase extends Object implements es.caib.seycon.ng.servei.ConfiguracioService
Spring Service base class for
see es.caib.seycon.ng.servei.ConfiguracioServicees.caib.seycon.ng.servei.ConfiguracioService
, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description ConfiguracioServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description es.caib.seycon.ng.comu.Configuracio
create(es.caib.seycon.ng.comu.Configuracio configuracio)
void
delete(es.caib.seycon.ng.comu.Configuracio configuracio)
void
deleteBlob(String name)
Collection<es.caib.seycon.ng.comu.Configuracio>
findConfiguracioByFiltre(String codi, String valor, String descripcio, String codiXarxa)
es.caib.seycon.ng.comu.Configuracio
findMasterParameterByNameAndNetwork(String paramter, String networkName)
es.caib.seycon.ng.comu.Configuracio
findParametreByCodiAndCodiXarxa(String codiParametre, String codiXarxa)
String
findTenantParameter(String tenant, String parameter)
byte[]
getBlob(String name)
String
getBlobVersion(String name)
com.soffid.iam.service.ConfigurationService
getConfigurationService()
Gets reference toconfigurationService
.Collection<es.caib.seycon.ng.comu.Configuracio>
getParametres()
protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.protected abstract es.caib.seycon.ng.comu.Configuracio
handleCreate(es.caib.seycon.ng.comu.Configuracio configuracio)
protected abstract void
handleDelete(es.caib.seycon.ng.comu.Configuracio configuracio)
protected abstract void
handleDeleteBlob(String name)
protected abstract Collection<es.caib.seycon.ng.comu.Configuracio>
handleFindConfiguracioByFiltre(String codi, String valor, String descripcio, String codiXarxa)
protected abstract es.caib.seycon.ng.comu.Configuracio
handleFindMasterParameterByNameAndNetwork(String paramter, String networkName)
protected abstract es.caib.seycon.ng.comu.Configuracio
handleFindParametreByCodiAndCodiXarxa(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<es.caib.seycon.ng.comu.Configuracio>
handleGetParametres()
protected abstract es.caib.seycon.ng.comu.Configuracio
handleUpdate(es.caib.seycon.ng.comu.Configuracio configuracio)
protected abstract void
handleUpdateBlob(String name, byte[] data)
protected abstract void
handleUpdateBlob(String name, byte[] data, String version)
void
setConfigurationService(com.soffid.iam.service.ConfigurationService configurationService)
Sets reference toconfigurationService
.es.caib.seycon.ng.comu.Configuracio
update(es.caib.seycon.ng.comu.Configuracio configuracio)
void
updateBlob(String name, byte[] data)
void
updateBlob(String name, byte[] data, String version)
-
-
-
Method Detail
-
setConfigurationService
public void setConfigurationService(com.soffid.iam.service.ConfigurationService configurationService)
Sets reference toconfigurationService
.
-
getConfigurationService
public com.soffid.iam.service.ConfigurationService getConfigurationService()
Gets reference toconfigurationService
.
-
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 interfacees.caib.seycon.ng.servei.ConfiguracioService
- 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 es.caib.seycon.ng.comu.Configuracio create(es.caib.seycon.ng.comu.Configuracio configuracio) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
create
in interfacees.caib.seycon.ng.servei.ConfiguracioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreate
protected abstract es.caib.seycon.ng.comu.Configuracio handleCreate(es.caib.seycon.ng.comu.Configuracio configuracio) throws Exception
- Throws:
Exception
-
findMasterParameterByNameAndNetwork
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.Configuracio findMasterParameterByNameAndNetwork(String paramter, String networkName) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findMasterParameterByNameAndNetwork
in interfacees.caib.seycon.ng.servei.ConfiguracioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindMasterParameterByNameAndNetwork
protected abstract es.caib.seycon.ng.comu.Configuracio handleFindMasterParameterByNameAndNetwork(String paramter, String networkName) throws Exception
- Throws:
Exception
-
findParametreByCodiAndCodiXarxa
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.Configuracio findParametreByCodiAndCodiXarxa(String codiParametre, String codiXarxa) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findParametreByCodiAndCodiXarxa
in interfacees.caib.seycon.ng.servei.ConfiguracioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindParametreByCodiAndCodiXarxa
protected abstract es.caib.seycon.ng.comu.Configuracio handleFindParametreByCodiAndCodiXarxa(String codiParametre, String codiXarxa) throws Exception
- Throws:
Exception
-
update
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.Configuracio update(es.caib.seycon.ng.comu.Configuracio configuracio) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
update
in interfacees.caib.seycon.ng.servei.ConfiguracioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdate
protected abstract es.caib.seycon.ng.comu.Configuracio handleUpdate(es.caib.seycon.ng.comu.Configuracio 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 interfacees.caib.seycon.ng.servei.ConfiguracioService
- 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 interfacees.caib.seycon.ng.servei.ConfiguracioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetBlobVersion
protected abstract String handleGetBlobVersion(String name) throws Exception
- Throws:
Exception
-
findConfiguracioByFiltre
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.Configuracio> findConfiguracioByFiltre(String codi, String valor, String descripcio, String codiXarxa) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findConfiguracioByFiltre
in interfacees.caib.seycon.ng.servei.ConfiguracioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindConfiguracioByFiltre
protected abstract Collection<es.caib.seycon.ng.comu.Configuracio> handleFindConfiguracioByFiltre(String codi, String valor, String descripcio, String codiXarxa) throws Exception
- Throws:
Exception
-
getParametres
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.Configuracio> getParametres() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getParametres
in interfacees.caib.seycon.ng.servei.ConfiguracioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetParametres
protected abstract Collection<es.caib.seycon.ng.comu.Configuracio> handleGetParametres() throws Exception
- Throws:
Exception
-
delete
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void delete(es.caib.seycon.ng.comu.Configuracio configuracio) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
delete
in interfacees.caib.seycon.ng.servei.ConfiguracioService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDelete
protected abstract void handleDelete(es.caib.seycon.ng.comu.Configuracio 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 interfacees.caib.seycon.ng.servei.ConfiguracioService
- 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 interfacees.caib.seycon.ng.servei.ConfiguracioService
- 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 interfacees.caib.seycon.ng.servei.ConfiguracioService
- 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
-
-