public interface SituationStore
Modifier and Type | Field and Description |
---|---|
static String |
ASSIGNED_TO_PROPERTY
Situation 'assigned to' property.
|
static String |
HOST_PROPERTY
Host property.
|
static String |
RESOLUTION_STATE_PROPERTY
Resolution state property.
|
static String |
RESUBMIT_AT_PROPERTY
Resubmit 'at' property.
|
static String |
RESUBMIT_BY_PROPERTY
Resubmit 'by' property.
|
static String |
RESUBMIT_ERROR_MESSAGE
Resubmit error message property.
|
static String |
RESUBMIT_RESULT_ERROR
Resubmit result error property.
|
static String |
RESUBMIT_RESULT_PROPERTY
Resubmit result property.
|
static String |
RESUBMIT_RESULT_SUCCESS
Resubmit result successful property.
|
Modifier and Type | Method and Description |
---|---|
void |
assignSituation(String situationId,
String userName)
This method assigns a situation to a specified user.
|
void |
delete(Situation situation)
This method deletes the supplied situation.
|
int |
delete(SituationsQuery query)
This method deletes all situations that meet the criteria
specified in the query.
|
Situation |
getSituation(String id)
This method returns the situation associated with the supplied id.
|
List<Situation> |
getSituations(SituationsQuery query)
This method returns the list of situations that meet the criteria
specified in the query.
|
void |
recordResubmitFailure(String situationId,
String message,
String userName)
Record's a failed resubmit of the situation matching the given id.
|
void |
recordSuccessfulResubmit(String situationId,
String userName)
Record's a successful resubmit of the situation matching the given id.
|
void |
store(Situation situation)
This method persists the supplied situation.
|
void |
unassignSituation(String situationId)
This method unassigns a situation.
|
void |
updateResolutionState(String situationId,
ResolutionState resolutionState)
This method updates the resolution state of a situation.
|
static final String HOST_PROPERTY
static final String RESOLUTION_STATE_PROPERTY
static final String ASSIGNED_TO_PROPERTY
static final String RESUBMIT_ERROR_MESSAGE
static final String RESUBMIT_RESULT_PROPERTY
static final String RESUBMIT_AT_PROPERTY
static final String RESUBMIT_BY_PROPERTY
static final String RESUBMIT_RESULT_ERROR
static final String RESUBMIT_RESULT_SUCCESS
void store(Situation situation) throws Exception
situation
- The situationException
- Failed to store situationSituation getSituation(String id)
id
- The idList<Situation> getSituations(SituationsQuery query)
query
- The situations queryvoid assignSituation(String situationId, String userName) throws Exception
situationId
- The situation iduserName
- The userException
- Failed to assign the situationvoid unassignSituation(String situationId) throws Exception
situationId
- The situation idException
- Failed to unassign the situationvoid updateResolutionState(String situationId, ResolutionState resolutionState) throws Exception
situationId
- The situation idresolutionState
- The resolution stateException
- Failed to update the resolution statevoid recordSuccessfulResubmit(String situationId, String userName)
situationId
- The situation iduserName
- The optional user id who resubmitted the message for this situationvoid recordResubmitFailure(String situationId, String message, String userName)
situationId
- The situation idmessage
- The exception messageuserName
- The optional user id who resubmitted the message for this situationint delete(SituationsQuery query)
query
- The situations queryvoid delete(Situation situation)
situation
- The situationCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.