Package com.soffid.iam.service
Class ServiceServiceBase
- java.lang.Object
-
- com.soffid.iam.service.ServiceServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.ServiceService
- Direct Known Subclasses:
ServiceServiceImpl
public abstract class ServiceServiceBase extends Object implements com.soffid.iam.service.ServiceService
Spring Service base class for
see com.soffid.iam.service.ServiceServicecom.soffid.iam.service.ServiceService
, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description ServiceServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.soffid.iam.api.Service
create(com.soffid.iam.api.Service servei)
void
delete(com.soffid.iam.api.Service servei)
com.soffid.iam.api.Service
findServiceByName(String codi)
Collection<com.soffid.iam.api.Service>
findServicesByCriteria(String codi, String descripcio)
protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.ServiceEntityDao
getServiceEntityDao()
Gets reference toserveiEntityDao
.Collection<com.soffid.iam.api.Service>
getServices()
protected abstract com.soffid.iam.api.Service
handleCreate(com.soffid.iam.api.Service servei)
protected abstract void
handleDelete(com.soffid.iam.api.Service servei)
protected abstract com.soffid.iam.api.Service
handleFindServiceByName(String codi)
protected abstract Collection<com.soffid.iam.api.Service>
handleFindServicesByCriteria(String codi, String descripcio)
protected abstract Collection<com.soffid.iam.api.Service>
handleGetServices()
protected abstract com.soffid.iam.api.Service
handleUpdate(com.soffid.iam.api.Service servei)
void
setServiceEntityDao(ServiceEntityDao serveiEntityDao)
Sets reference toserveiEntityDao
.com.soffid.iam.api.Service
update(com.soffid.iam.api.Service servei)
-
-
-
Method Detail
-
setServiceEntityDao
public void setServiceEntityDao(ServiceEntityDao serveiEntityDao)
Sets reference toserveiEntityDao
.
-
getServiceEntityDao
public ServiceEntityDao getServiceEntityDao()
Gets reference toserveiEntityDao
.
-
create
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Service create(com.soffid.iam.api.Service servei) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
create
in interfacecom.soffid.iam.service.ServiceService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleCreate
protected abstract com.soffid.iam.api.Service handleCreate(com.soffid.iam.api.Service servei) throws Exception
- Throws:
Exception
-
findServiceByName
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Service findServiceByName(String codi) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findServiceByName
in interfacecom.soffid.iam.service.ServiceService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindServiceByName
protected abstract com.soffid.iam.api.Service handleFindServiceByName(String codi) throws Exception
- Throws:
Exception
-
update
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Service update(com.soffid.iam.api.Service servei) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
update
in interfacecom.soffid.iam.service.ServiceService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleUpdate
protected abstract com.soffid.iam.api.Service handleUpdate(com.soffid.iam.api.Service servei) throws Exception
- Throws:
Exception
-
findServicesByCriteria
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.Service> findServicesByCriteria(String codi, String descripcio) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findServicesByCriteria
in interfacecom.soffid.iam.service.ServiceService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindServicesByCriteria
protected abstract Collection<com.soffid.iam.api.Service> handleFindServicesByCriteria(String codi, String descripcio) throws Exception
- Throws:
Exception
-
getServices
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Collection<com.soffid.iam.api.Service> getServices() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getServices
in interfacecom.soffid.iam.service.ServiceService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetServices
protected abstract Collection<com.soffid.iam.api.Service> handleGetServices() throws Exception
- Throws:
Exception
-
delete
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public void delete(com.soffid.iam.api.Service servei) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
delete
in interfacecom.soffid.iam.service.ServiceService
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleDelete
protected abstract void handleDelete(com.soffid.iam.api.Service servei) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-