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.AsyncRunnerService
getAsyncRunnerService()
Gets reference toasyncRunnerService
.protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.protected abstract void
handleRun(Runnable runnable, com.soffid.iam.api.AsyncList result)
protected abstract void
handleRunInternal(Runnable runnable, com.soffid.iam.api.AsyncList result)
protected abstract Object
handleRunNewTransaction(com.soffid.iam.common.TransactionalTask runnable)
protected abstract Object
handleRunTransaction(com.soffid.iam.common.TransactionalTask runnable)
void
run(Runnable runnable, com.soffid.iam.api.AsyncList result)
void
runInternal(Runnable runnable, com.soffid.iam.api.AsyncList result)
Object
runNewTransaction(com.soffid.iam.common.TransactionalTask runnable)
Object
runTransaction(com.soffid.iam.common.TransactionalTask runnable)
void
setAsyncRunnerService(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:
runNewTransaction
in 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:
runTransaction
in 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:
run
in 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:
runInternal
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-