Package es.caib.seycon.ng.servei
Class ServeiServiceBase
- java.lang.Object
-
- es.caib.seycon.ng.servei.ServeiServiceBase
-
- All Implemented Interfaces:
es.caib.seycon.ng.servei.ServeiService
public abstract class ServeiServiceBase extends Object implements es.caib.seycon.ng.servei.ServeiService
Spring Service base class for
see es.caib.seycon.ng.servei.ServeiServicees.caib.seycon.ng.servei.ServeiService
, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description ServeiServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description es.caib.seycon.ng.comu.Servei
create(es.caib.seycon.ng.comu.Servei servei)
void
delete(es.caib.seycon.ng.comu.Servei servei)
es.caib.seycon.ng.comu.Servei
findServeiByCodi(String codi)
Collection<es.caib.seycon.ng.comu.Servei>
findServeisByCriteri(String codi, String descripcio)
protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.Collection<es.caib.seycon.ng.comu.Servei>
getServeis()
com.soffid.iam.service.ServiceService
getServiceService()
Gets reference toserviceService
.protected abstract es.caib.seycon.ng.comu.Servei
handleCreate(es.caib.seycon.ng.comu.Servei servei)
protected abstract void
handleDelete(es.caib.seycon.ng.comu.Servei servei)
protected abstract es.caib.seycon.ng.comu.Servei
handleFindServeiByCodi(String codi)
protected abstract Collection<es.caib.seycon.ng.comu.Servei>
handleFindServeisByCriteri(String codi, String descripcio)
protected abstract Collection<es.caib.seycon.ng.comu.Servei>
handleGetServeis()
protected abstract es.caib.seycon.ng.comu.Servei
handleUpdate(es.caib.seycon.ng.comu.Servei servei)
void
setServiceService(com.soffid.iam.service.ServiceService serviceService)
Sets reference toserviceService
.es.caib.seycon.ng.comu.Servei
update(es.caib.seycon.ng.comu.Servei servei)
-
-
-
Method Detail
-
setServiceService
public void setServiceService(com.soffid.iam.service.ServiceService serviceService)
Sets reference toserviceService
.
-
getServiceService
public com.soffid.iam.service.ServiceService getServiceService()
Gets reference toserviceService
.
-
create
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.Servei create(es.caib.seycon.ng.comu.Servei servei) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
create
in interfacees.caib.seycon.ng.servei.ServeiService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreate
protected abstract es.caib.seycon.ng.comu.Servei handleCreate(es.caib.seycon.ng.comu.Servei servei) throws Exception
- Throws:
Exception
-
findServeiByCodi
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.Servei findServeiByCodi(String codi) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findServeiByCodi
in interfacees.caib.seycon.ng.servei.ServeiService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindServeiByCodi
protected abstract es.caib.seycon.ng.comu.Servei handleFindServeiByCodi(String codi) throws Exception
- Throws:
Exception
-
update
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public es.caib.seycon.ng.comu.Servei update(es.caib.seycon.ng.comu.Servei servei) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
update
in interfacees.caib.seycon.ng.servei.ServeiService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdate
protected abstract es.caib.seycon.ng.comu.Servei handleUpdate(es.caib.seycon.ng.comu.Servei servei) throws Exception
- Throws:
Exception
-
findServeisByCriteri
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.Servei> findServeisByCriteri(String codi, String descripcio) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findServeisByCriteri
in interfacees.caib.seycon.ng.servei.ServeiService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindServeisByCriteri
protected abstract Collection<es.caib.seycon.ng.comu.Servei> handleFindServeisByCriteri(String codi, String descripcio) throws Exception
- Throws:
Exception
-
getServeis
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<es.caib.seycon.ng.comu.Servei> getServeis() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getServeis
in interfacees.caib.seycon.ng.servei.ServeiService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetServeis
protected abstract Collection<es.caib.seycon.ng.comu.Servei> handleGetServeis() throws Exception
- Throws:
Exception
-
delete
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void delete(es.caib.seycon.ng.comu.Servei servei) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
delete
in interfacees.caib.seycon.ng.servei.ServeiService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDelete
protected abstract void handleDelete(es.caib.seycon.ng.comu.Servei servei) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-