@PermitAll public class ErrorHandlingServiceBean extends com.whitestein.lsps.common.SecureAndLoggingService implements ErrorHandlingServiceLocal, ErrorHandlingServiceRemote, ErrorHandlingResendServiceLocal
| Constructor and Description |
|---|
ErrorHandlingServiceBean()
Creates new instance.
|
ErrorHandlingServiceBean(RollbackItemDao rollbackItemDao)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
RollbackInfoList |
findRollbackInfos(RollbackInfoCriteria criteria)
Returns all rollback information for given agent.
|
ModelInstance |
getErrorModelInstance(long rollbackInfoId,
long errorModelInstanceId)
Returns model instance at the time of exception.
|
RollbackInfo |
getRollbackInfo(long id)
Retrieves a full rollback info instance.
|
void |
removeRollbackInfo(long id)
Removes given rollback info.
|
boolean |
resend(RollbackItem item)
Resends roll-back item in a new transaction.
|
boolean |
retryOperation(long id)
Re-sends given communication unit to the agent.
|
public ErrorHandlingServiceBean()
public ErrorHandlingServiceBean(RollbackItemDao rollbackItemDao)
rollbackItemDao - java.lang.NullPointerException - if any of the arguments is null@RightsAllowed(value="Exception:Read") public RollbackInfo getRollbackInfo(long id)
ErrorHandlingServiceEngineRights.READ_ROLLBACK_INFOgetRollbackInfo in interface ErrorHandlingServiceid - the identifier of the rollback info@RightsAllowed(value="Exception:Read") public RollbackInfoList findRollbackInfos(RollbackInfoCriteria criteria)
ErrorHandlingServiceEngineRights.READ_ROLLBACK_INFOfindRollbackInfos in interface ErrorHandlingServicecriteria - the agent name.RollbackInfo objects.@RightsAllowed(value="Exception:Remove")
public void removeRollbackInfo(long id)
throws RollbackInfoNotFoundException
ErrorHandlingServiceEngineRights.REMOVE_ROLLBACK_INFOremoveRollbackInfo in interface ErrorHandlingServiceid - the RollbackInfo.getId() valueRollbackInfoNotFoundException - if no rollback-info can be found for the given id@RightsAllowed(value="Exception:Resend")
public boolean retryOperation(long id)
throws RollbackInfoNotFoundException
ErrorHandlingServiceEngineRights.RESEND_ROLLBACK_INFOretryOperation in interface ErrorHandlingServiceid - the RollbackInfo.getId() value.RollbackInfoNotFoundException - if no rollback-info can be found for the given idpublic ModelInstance getErrorModelInstance(long rollbackInfoId, long errorModelInstanceId) throws RollbackInfoNotFoundException, ModelInstanceStateException
ErrorHandlingServicegetErrorModelInstance in interface ErrorHandlingServiceRollbackInfoNotFoundExceptionModelInstanceStateExceptionpublic boolean resend(RollbackItem item)
ErrorHandlingResendServiceLocalresend in interface ErrorHandlingResendServiceLocalCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.