Package com.soffid.iam.service
Class AsyncRunnerServiceBase
- java.lang.Object
-
- com.soffid.iam.service.AsyncRunnerServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.AsyncRunnerService
- Direct Known Subclasses:
AsyncRunnerServiceImpl
public abstract class AsyncRunnerServiceBase extends Object implements com.soffid.iam.service.AsyncRunnerService
Spring Service base class for
see com.soffid.iam.service.AsyncRunnerServicecom.soffid.iam.service.AsyncRunnerService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description AsyncRunnerServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.soffid.iam.service.AsyncRunnerServicegetAsyncRunnerService()Gets reference toasyncRunnerService.protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.protected abstract voidhandleRun(Runnable runnable, com.soffid.iam.api.AsyncList result)protected abstract voidhandleRunInternal(Runnable runnable, com.soffid.iam.api.AsyncList result)protected abstract ObjecthandleRunNewTransaction(com.soffid.iam.common.TransactionalTask runnable)protected abstract ObjecthandleRunTransaction(com.soffid.iam.common.TransactionalTask runnable)voidrun(Runnable runnable, com.soffid.iam.api.AsyncList result)voidrunInternal(Runnable runnable, com.soffid.iam.api.AsyncList result)ObjectrunNewTransaction(com.soffid.iam.common.TransactionalTask runnable)ObjectrunTransaction(com.soffid.iam.common.TransactionalTask runnable)voidsetAsyncRunnerService(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)Sets reference toasyncRunnerService.
-
-
-
Method Detail
-
setAsyncRunnerService
public void setAsyncRunnerService(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)
Sets reference toasyncRunnerService.
-
getAsyncRunnerService
public com.soffid.iam.service.AsyncRunnerService getAsyncRunnerService()
Gets reference toasyncRunnerService.
-
runNewTransaction
@Transactional(isolation=DEFAULT, propagation=REQUIRES_NEW, rollbackFor=java.lang.Exception.class) public Object runNewTransaction(com.soffid.iam.common.TransactionalTask runnable) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
runNewTransactionin interfacecom.soffid.iam.service.AsyncRunnerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRunNewTransaction
protected abstract Object handleRunNewTransaction(com.soffid.iam.common.TransactionalTask runnable) throws Exception
- Throws:
Exception
-
runTransaction
@Transactional(isolation=DEFAULT, propagation=REQUIRED, rollbackFor=java.lang.Exception.class) public Object runTransaction(com.soffid.iam.common.TransactionalTask runnable) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
runTransactionin interfacecom.soffid.iam.service.AsyncRunnerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRunTransaction
protected abstract Object handleRunTransaction(com.soffid.iam.common.TransactionalTask runnable) throws Exception
- Throws:
Exception
-
run
@Transactional(isolation=DEFAULT, propagation=REQUIRED, noRollbackFor=java.lang.Exception.class, readOnly=true) public void run(Runnable runnable, com.soffid.iam.api.AsyncList result) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
runin interfacecom.soffid.iam.service.AsyncRunnerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRun
protected abstract void handleRun(Runnable runnable, com.soffid.iam.api.AsyncList result) throws Exception
- Throws:
Exception
-
runInternal
@Transactional(isolation=DEFAULT, propagation=REQUIRED, noRollbackFor=java.lang.Exception.class, readOnly=true) public void runInternal(Runnable runnable, com.soffid.iam.api.AsyncList result) throws es.caib.seycon.ng.exception.InternalErrorException- Specified by:
runInternalin interfacecom.soffid.iam.service.AsyncRunnerService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRunInternal
protected abstract void handleRunInternal(Runnable runnable, com.soffid.iam.api.AsyncList result) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-