org.starhope.appius.mb
Class Messages

java.lang.Object
  extended by org.starhope.appius.mb.Messages

public class Messages
extends Object

Author:
brpocock

Constructor Summary
Messages()
           
 
Method Summary
static String account_not_approved()
          Deprecated. 
static String agree_ts_and_cs()
          Deprecated. 
static String answer_incorrect()
          Deprecated. 
static String bad_cc()
          Deprecated. 
static String blank_field(String field)
          FIXME (theys)
static String card_fail_generic()
          Deprecated. 
static String cc_invalid()
          Deprecated. 
static String cc_num_not_16_digits()
          Deprecated. 
static String ccv_invalid()
          Deprecated. 
static String code_invalid()
           
static String dob_invalid()
          TODO: document this method (brpocock, Sep 26, 2009)
static String exp_invalid()
          TODO: document this method (brpocock, Sep 26, 2009)
static String formatFutureDate(Date targetDate)
          Deprecated. 
static String formatMemory(long numBytes)
          Deprecated. 
static String[] getSecurityQuestion()
          Get suggested question(s) for the forgotten password recovery system
static String getText(String string)
          Deprecated. 
static String getText(String string, String language, String dialect)
          Deprecated. 
static String listToDisplay(Collection<String> buddyListNames, String language, String dialect)
          TODO: document this method (brpocock, Sep 10, 2009)
static String listToDisplay(List<String> words, String language, String dialect)
          Deprecated. 
static String listToDisplay(Object[] stuff, String language, String dialect)
          Deprecated. 
static String listToDisplay(Set<String> words, String language, String dialect)
          Deprecated. 
static String login_invalid()
          Deprecated. 
static String login_length()
          Deprecated. 
static String mail_change()
          Deprecated. 
static String mail_invalid()
          Deprecated. 
static String mail_mismatch()
          Deprecated. 
static String mail_not_on_file()
          Deprecated. 
static String mail_not_verified()
          Deprecated. 
static String minPrecisionOneCent()
          Deprecated. 
static String not_logged_in()
           
static String one_cent_accuracy()
          Deprecated. 
static String onlyVisaOrMC()
          Deprecated. 
static String parent_account_already_exists()
          Deprecated. 
static String password_change()
          Deprecated. 
static String password_invalid()
          Deprecated. 
static String password_length()
          Deprecated. 
static String password_mismatch()
          Deprecated. 
static String password_reset()
          Deprecated. 
static String password_same()
          Deprecated. 
static String password_send()
          Deprecated. 
static String payment_already_made()
          Deprecated. 
static String prettyDate(Date date)
           
static String retry_payment_message()
          Deprecated. 
static String retry_payment()
          Deprecated. 
static String rulesAgree()
          Deprecated. 
static String select_toot_upgrade()
          Deprecated. 
static String subscription_invalid()
          Deprecated. 
static String unsupported_currency()
          Deprecated. 
static String user_does_not_exist()
          Deprecated. 
static String username_invalid()
          Deprecated. 
static String username_unavail()
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Messages

public Messages()
Method Detail

account_not_approved

@Deprecated
public static final String account_not_approved()
Deprecated. 

Returns:
"Your account has not been approved."

agree_ts_and_cs

@Deprecated
public static final String agree_ts_and_cs()
Deprecated. 

Returns:
"You must agree to the Terms and Conditions to play in Tootsville."

answer_incorrect

@Deprecated
public static final String answer_incorrect()
Deprecated. 

Returns:
"You have answered your question incorrectly. Please try again or contact customer service if you are having trouble"

bad_cc

@Deprecated
public static final String bad_cc()
Deprecated. 

Returns:
"Oops! We are having trouble processing your Credit Card. The card is being declined. Please try again with a different Credit Card."

blank_field

public static final String blank_field(String field)
FIXME (theys)

Parameters:
field - WRITEME
Returns:
"You have left the required " + field + " field blank. Please try again.";

card_fail_generic

@Deprecated
public static String card_fail_generic()
Deprecated. 

The credit card processing failed, but the processor (authorize.net) did not return a detailed explanation of the reason for the failure.

Returns:
a user-visible message explaining this situation

cc_invalid

@Deprecated
public static final String cc_invalid()
Deprecated. 

Returns:
"The credit card number you have entered is invalid. Please try again."

cc_num_not_16_digits

@Deprecated
public static String cc_num_not_16_digits()
Deprecated. 

credit-card number entered is not 13 nor 16 digits

Returns:
WRITEME

ccv_invalid

@Deprecated
public static final String ccv_invalid()
Deprecated. 

Returns:
"Your password is already set as that!"

code_invalid

public static final String code_invalid()
Returns:
"The peanut code you have entered is either invalid or already used."

dob_invalid

public static final String dob_invalid()
TODO: document this method (brpocock, Sep 26, 2009)

Returns:
WRITEME

exp_invalid

public static final String exp_invalid()
TODO: document this method (brpocock, Sep 26, 2009)

Returns:
WRITEME

formatFutureDate

@Deprecated
public static String formatFutureDate(Date targetDate)
Deprecated. 

Format a date into a user-friendly visible object relative to "now."

Parameters:
targetDate - the date (in the future)
Returns:
a user-visible string form

formatMemory

@Deprecated
public static String formatMemory(long numBytes)
Deprecated. 

TODO: document this method (brpocock, Nov 18, 2009)

Parameters:
numBytes - WRITEME
Returns:
WRITEME

getSecurityQuestion

public static String[] getSecurityQuestion()
Get suggested question(s) for the forgotten password recovery system

Returns:
array of possible security questions.

getText

@Deprecated
public static String getText(String string)
Deprecated. 

TODO: Please document this with directions to replace this method if it is deprecated.

Parameters:
string - WRITEME
Returns:
WRITEME

getText

@Deprecated
public static String getText(String string,
                                        String language,
                                        String dialect)
Deprecated. 

Parameters:
string - The identifier (dotted hierarchy) of the string to be returned
language - WRITEME
dialect - WRITEME
Returns:
The translated, locale-specific — haha. I lie. The US English message in user-visible format.

listToDisplay

public static String listToDisplay(Collection<String> buddyListNames,
                                   String language,
                                   String dialect)
TODO: document this method (brpocock, Sep 10, 2009)

Parameters:
buddyListNames - WRITEME
language - WRITEME
dialect - WRITEME
Returns:
WRITEME

listToDisplay

@Deprecated
public static String listToDisplay(List<String> words,
                                              String language,
                                              String dialect)
Deprecated. 

Given a list of strings, combine then into a string for display purposes.

For English, the list will obey the traditional grammatical usage of commas: List elements are joined with commas, except that the conjunction (in our case, always “and”) occurs penultimate, and two or three element lists do not use commas.

For Spanish, works essentially the same way.

For other languages, we just join the words with commas and omit the conjunction

Parameters:
words - A list of words.
language - The user's display language
dialect - The user's sublanguage dialect
Returns:
The list formatted into a string.

listToDisplay

@Deprecated
public static String listToDisplay(Object[] stuff,
                                              String language,
                                              String dialect)
Deprecated. 

WRITEME: document this method (brpocock, Aug 24, 2009)

Parameters:
stuff - WRITEME
language - WRITEME
dialect - WRITEME
Returns:
WRITEME

listToDisplay

@Deprecated
public static String listToDisplay(Set<String> words,
                                              String language,
                                              String dialect)
Deprecated. 

TODO: document this method (brpocock, Sep 26, 2009)

Parameters:
words - WRITEME
language - WRITEME
dialect - WRITEME
Returns:
WRITEME

login_invalid

@Deprecated
public static final String login_invalid()
Deprecated. 

Returns:
"Your username or password is incorrect. Please check your typnig and try logging in again."

login_length

@Deprecated
public static final String login_length()
Deprecated. 

Returns:
"The username you choose is too short. Please pick a new one at least " + User.MIN_LOGIN_LENGTH + " characters long."

mail_change

@Deprecated
public static final String mail_change()
Deprecated. 

Returns:
"You have successfully updated your e-mail address. Please make sure you verify your e-mail by following the instructions in the e-mail we just sent you."

mail_invalid

@Deprecated
public static final String mail_invalid()
Deprecated. 

Returns:
"The email address you have entered appears to be invalid, please check your typing."

mail_mismatch

@Deprecated
public static final String mail_mismatch()
Deprecated. 

Returns:
"The email addresses you have entered do not match."

mail_not_on_file

@Deprecated
public static final String mail_not_on_file()
Deprecated. 

TODO: document this method (brpocock, Sep 17, 2009)

Returns:
WRITEME

mail_not_verified

@Deprecated
public static final String mail_not_verified()
Deprecated. 

The message catalogue

Returns:
"Please confirm your e-mail address. Tootsville Customer Service has just resent the e-mail with verification instructions in case you have lost the original."

minPrecisionOneCent

@Deprecated
public static String minPrecisionOneCent()
Deprecated. 

Returns:
"The amount of the payment supplied included fractional values of less than 1¢ (USD $.01). This is not supported. Payment values must be in increments of 1¢."

not_logged_in

public static final String not_logged_in()
Returns:
"You must be logged in to do that."

one_cent_accuracy

@Deprecated
public static String one_cent_accuracy()
Deprecated. 

TODO: document this method (brpocock, Sep 17, 2009)

Returns:
WRITEME

onlyVisaOrMC

@Deprecated
public static String onlyVisaOrMC()
Deprecated. 

Returns:
"The subscription system only supports VISA or MasterCard, sorry."

parent_account_already_exists

@Deprecated
public static final String parent_account_already_exists()
Deprecated. 

WRITEME: document this method (theys, Aug 26, 2009)

Returns:
WRITEME

password_change

@Deprecated
public static final String password_change()
Deprecated. 

Returns:
"You have successfully changed your password."

password_invalid

@Deprecated
public static final String password_invalid()
Deprecated. 

Returns:
"The password you have entered is incorrect."

password_length

@Deprecated
public static final String password_length()
Deprecated. 

Returns:
"That password is too short, please pick one that is 6 characters long."

password_mismatch

@Deprecated
public static final String password_mismatch()
Deprecated. 

Returns:
"Your password does not match the confirmation, please retype your password in both fields."

password_reset

@Deprecated
public static final String password_reset()
Deprecated. 

The message catalogue

Returns:
WRITEME

password_same

@Deprecated
public static final String password_same()
Deprecated. 

Returns:
"Your password is already set as that!"

password_send

@Deprecated
public static final String password_send()
Deprecated. 

The message catalogue

Returns:
WRITEME

payment_already_made

@Deprecated
public static final String payment_already_made()
Deprecated. 

Returns:
"A payment has already been made for that subscription for the Toots Account you have selected."

prettyDate

public static String prettyDate(Date date)
Parameters:
date - WRITEME
Returns:
WRITEME

retry_payment

@Deprecated
public static final String retry_payment()
Deprecated. 

payment gateway asked us to retry transaction later

Returns:
WRITEME

retry_payment_message

@Deprecated
public static String retry_payment_message()
Deprecated. 

TODO: document this method (brpocock, Sep 17, 2009)

Returns:
WRITEME

rulesAgree

@Deprecated
public static final String rulesAgree()
Deprecated. 

Returns:
"You must agree to the rules to play Tootsville."

select_toot_upgrade

@Deprecated
public static final String select_toot_upgrade()
Deprecated. 

Returns:
"Please click your child's Toots account, from the 'My Child's Toots Account(s)' list, and then click 'Make Me A V.I.T.' to upgrade. "

subscription_invalid

@Deprecated
public static final String subscription_invalid()
Deprecated. 

TODO: document this method (theys, Sep 4, 2009)

Returns:
WRITEME

unsupported_currency

@Deprecated
public static final String unsupported_currency()
Deprecated. 

TODO: document this method (theys, Sep 4, 2009)

Returns:
WRITEME

user_does_not_exist

@Deprecated
public static final String user_does_not_exist()
Deprecated. 

Returns:
"The credit card number you have entered is invalid. Please try again."

username_invalid

@Deprecated
public static final String username_invalid()
Deprecated. 

Returns:
"That username contains invalid characters or is not allowed, please choose another one."

username_unavail

@Deprecated
public static final String username_unavail()
Deprecated. 

Returns:
"That username is not available, please choose another one."