|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.Account.Situation
Field Summary | |
static java.lang.String |
ACCEPT
|
static Account.Situation |
COLLISION
Found a resource account claimed by more than one Lighthouse user. |
static Account.Situation |
CONFIRMED
Found an account we expected to find on the resource. |
static Account.Situation |
DELETED
Did NOT find an account we expected to find on the resource. |
static Account.Situation |
DISPUTED
Found a resource account that correlates with more than one Lighthouse user. |
static java.lang.String |
DO_NOTHING
|
static Account.Situation |
FOUND
Found an account on a resource assigned to the user (but Lighthouse did not know beforehand that the account existed). |
static int |
MAX_NAME_LENGTH
Length of the longest situation name. |
static Account.Situation |
MISSING
No account was found on a resource assigned to the user (but Lighthouse did not really expect the account to exist). |
static java.lang.String |
REJECT
|
static java.lang.String |
REPORT
|
static java.lang.String |
RESPONSE
|
static Account.Situation |
UNASSIGNED
Found a resource account that correlates with an existing Lighthouse user (but the resource is not assigned to that user). |
static Account.Situation |
UNKNOWN
The state of this resource account (relative to Lighthouse) has not yet been determined. |
static Account.Situation |
UNMATCHED
Found a resource account that does NOT correlate with any existing Lighthouse user. |
Method Summary | |
static Account.Situation |
fromString(java.lang.String name)
Translate the specified string into a Situation. |
java.lang.String |
getDescMsgId()
|
java.lang.String |
getErrMsgId()
|
java.lang.String |
getHelpMsgId()
|
java.lang.String |
getId()
|
java.lang.String |
getMsgId()
|
java.lang.String |
getName()
Format the Situation as a Message in the default
Locale. |
java.lang.String |
getName(java.util.Locale locale)
Format the Situation as a Message in the specified
Locale. |
static java.util.Map |
getNameMap()
|
java.util.List |
getPossibleResponses()
|
Account.Response |
getResponse(java.lang.String responseKey)
Returns the Response object corresponding to the named response, if the response is supported by the situation. |
static java.lang.String |
getResponseName(java.util.Locale locale,
java.lang.String response)
Provides an externally visible name for internally defined situation responses. |
static java.lang.String[] |
listSituationNames()
|
static Account.Situation[] |
listSituations()
|
java.lang.String |
qualifyParameter(java.lang.String baseParameter)
Qualify a reconciliation parameter based on the situation name. |
java.lang.String |
toString()
|
java.lang.String |
toString(java.util.Locale locale)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String RESPONSE
public static final java.lang.String DO_NOTHING
public static final java.lang.String REPORT
public static final java.lang.String ACCEPT
public static final java.lang.String REJECT
public static final Account.Situation UNKNOWN
public static final Account.Situation CONFIRMED
Totally normally, and fairly uninteresting. This is okay.
public static final Account.Situation COLLISION
This is definitely an error as it can lead to problems.
public static final Account.Situation FOUND
Not exactly expected, but not exactly surprising, either. This is a warning.
public static final Account.Situation MISSING
Not exactly expected, but not very surprising. This is a warning.
public static final Account.Situation DELETED
Since Lighthouse said the account existed, this is considered to be an error.
public static final Account.Situation UNASSIGNED
Since Lighthouse has no record of the account, this is considered to be an error.
public static final Account.Situation UNMATCHED
Since Lighthouse has no record of the account, this is considered to be an error.
public static final Account.Situation DISPUTED
Since Lighthouse has no record of the account, and since the correlation is unclear, this is considered to be an error.
public static final int MAX_NAME_LENGTH
Temporarily useful in formatting, but should go away once Situation names are localized or each parameter gets a separate column.
Method Detail |
public static java.lang.String getResponseName(java.util.Locale locale, java.lang.String response)
public static Account.Situation[] listSituations()
public static java.lang.String[] listSituationNames()
public static java.util.Map getNameMap()
public java.lang.String getId()
public java.lang.String getMsgId()
public java.lang.String getDescMsgId()
public java.lang.String getErrMsgId()
public java.lang.String getHelpMsgId()
public java.util.List getPossibleResponses()
public java.lang.String toString()
public java.lang.String toString(java.util.Locale locale)
public java.lang.String getName()
Situation
as a Message in the default
Locale.
public java.lang.String getName(java.util.Locale locale)
Situation
as a Message in the specified
Locale.
public java.lang.String qualifyParameter(java.lang.String baseParameter)
public static Account.Situation fromString(java.lang.String name)
public Account.Response getResponse(java.lang.String responseKey)
responseKey
- -
the response name to lookup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |