@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
- NullPointerException
- if any of the arguments is null@RightsAllowed(value="Exception:Read") public RollbackInfo getRollbackInfo(long id)
ErrorHandlingService
EngineRights.READ_ROLLBACK_INFO
getRollbackInfo
in interface ErrorHandlingService
id
- the identifier of the rollback info@RightsAllowed(value="Exception:Read") public RollbackInfoList findRollbackInfos(RollbackInfoCriteria criteria)
ErrorHandlingService
EngineRights.READ_ROLLBACK_INFO
findRollbackInfos
in interface ErrorHandlingService
criteria
- the agent name.RollbackInfo
objects.@RightsAllowed(value="Exception:Remove") public void removeRollbackInfo(long id) throws RollbackInfoNotFoundException
ErrorHandlingService
EngineRights.REMOVE_ROLLBACK_INFO
removeRollbackInfo
in interface ErrorHandlingService
id
- 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
ErrorHandlingService
EngineRights.RESEND_ROLLBACK_INFO
retryOperation
in interface ErrorHandlingService
id
- 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
ErrorHandlingService
getErrorModelInstance
in interface ErrorHandlingService
RollbackInfoNotFoundException
ModelInstanceStateException
public boolean resend(RollbackItem item)
ErrorHandlingResendServiceLocal
resend
in interface ErrorHandlingResendServiceLocal
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.