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.Configuraciocreate(es.caib.seycon.ng.comu.Configuracio configuracio)voiddelete(es.caib.seycon.ng.comu.Configuracio configuracio)voiddeleteBlob(String name)Collection<es.caib.seycon.ng.comu.Configuracio>findConfiguracioByFiltre(String codi, String valor, String descripcio, String codiXarxa)es.caib.seycon.ng.comu.ConfiguraciofindMasterParameterByNameAndNetwork(String paramter, String networkName)es.caib.seycon.ng.comu.ConfiguraciofindParametreByCodiAndCodiXarxa(String codiParametre, String codiXarxa)StringfindTenantParameter(String tenant, String parameter)byte[]getBlob(String name)StringgetBlobVersion(String name)com.soffid.iam.service.ConfigurationServicegetConfigurationService()Gets reference toconfigurationService.Collection<es.caib.seycon.ng.comu.Configuracio>getParametres()protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.protected abstract es.caib.seycon.ng.comu.ConfiguraciohandleCreate(es.caib.seycon.ng.comu.Configuracio configuracio)protected abstract voidhandleDelete(es.caib.seycon.ng.comu.Configuracio configuracio)protected abstract voidhandleDeleteBlob(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.ConfiguraciohandleFindMasterParameterByNameAndNetwork(String paramter, String networkName)protected abstract es.caib.seycon.ng.comu.ConfiguraciohandleFindParametreByCodiAndCodiXarxa(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<es.caib.seycon.ng.comu.Configuracio>handleGetParametres()protected abstract es.caib.seycon.ng.comu.ConfiguraciohandleUpdate(es.caib.seycon.ng.comu.Configuracio configuracio)protected abstract voidhandleUpdateBlob(String name, byte[] data)protected abstract voidhandleUpdateBlob(String name, byte[] data, String version)voidsetConfigurationService(com.soffid.iam.service.ConfigurationService configurationService)Sets reference toconfigurationService.es.caib.seycon.ng.comu.Configuracioupdate(es.caib.seycon.ng.comu.Configuracio configuracio)voidupdateBlob(String name, byte[] data)voidupdateBlob(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:
getBlobin 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:
createin 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:
findMasterParameterByNameAndNetworkin 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:
findParametreByCodiAndCodiXarxain 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:
updatein 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:
findTenantParameterin 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:
getBlobVersionin 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:
findConfiguracioByFiltrein 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:
getParametresin 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:
deletein 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:
deleteBlobin 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:
updateBlobin 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:
updateBlobin 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 currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-