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.Servicecreate(com.soffid.iam.api.Service servei)voiddelete(com.soffid.iam.api.Service servei)com.soffid.iam.api.ServicefindServiceByName(String codi)Collection<com.soffid.iam.api.Service>findServicesByCriteria(String codi, String descripcio)protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.ServiceEntityDaogetServiceEntityDao()Gets reference toserveiEntityDao.Collection<com.soffid.iam.api.Service>getServices()protected abstract com.soffid.iam.api.ServicehandleCreate(com.soffid.iam.api.Service servei)protected abstract voidhandleDelete(com.soffid.iam.api.Service servei)protected abstract com.soffid.iam.api.ServicehandleFindServiceByName(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.ServicehandleUpdate(com.soffid.iam.api.Service servei)voidsetServiceEntityDao(ServiceEntityDao serveiEntityDao)Sets reference toserveiEntityDao.com.soffid.iam.api.Serviceupdate(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:
createin 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:
findServiceByNamein 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:
updatein 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:
findServicesByCriteriain 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:
getServicesin 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:
deletein 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 currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-