Package com.skava.constants
Class UserResponseCodes
java.lang.Object
com.skava.constants.UserResponseCodes
- All Implemented Interfaces:
Serializable
This class which contains Constants used for the user response codes used through-out
the application.
- Author:
- Infosys Equinox
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Access Denied.static final String
User Address Does Not Exist.static final String
User Auth Failed.static final String
User Auth Success.static final String
Blacklist Items Value Delete Successstatic final String
Blacklist Items ValueNot Existstatic final String
Blacklist items value invalid codestatic final String
User Card Does Not Exist.static final String
Card Expired.static final String
Card Missing.static final String
Card Expiration Month and Year missing.static final String
Collection Already Exists.static final String
Invalid Collection Name.static final String
Collection Name NOT Given.static final String
Collection Not Exist.static final String
Collection Properties Exists.static final String
Collection Properties Not Exist.static final String
Collection Property Collection ID Missing.static final String
Collection Property Name Missing.static final String
Collection Property Value Missing.static final String
Consent Already Exist.static final String
Consent Does Not Exist.static final String
Credentials Does Not Exist.static final String
Credentials Missing.static final String
User Custom Property deleted.static final String
Custom Property Missing.static final String
Date parse Failure.static final String
Duplicate Card.static final String
Empty Identity.static final String
Empty request.static final String
User Limit Exceeded.static final String
User Code failure.static final String
Identity Does Not Exit.static final String
Invalid Activation Param.static final String
Invalid Address Id.static final String
Invalid Business Id.static final String
User Invalid Card Expiration Month.static final String
Invalid Card id.static final String
Invalid Collection Descriptionstatic final String
Invalid Collection Properties.static final String
Invalid Collection Id.static final String
Invalid Consent.static final String
Invalid Create User Class.static final String
Invalid Default Address.static final String
Invalid Default Card.static final String
CODE_INVALID_EMAIL_ADDRESSstatic final String
Invalid Filter.static final String
CODE_INVALID_FIRSTNAMEstatic final String
CODE_INVALID_LASTNAMEstatic final String
Invalid Notes Id.static final String
Invalid Notification Param.static final String
Invalid Reset Param.static final String
Invalid Search Param.static final String
Invalid Search Param.static final String
Invalid Search Value.static final String
Invalid Size.static final String
Invalid Sort Key.static final String
Invalid Sort Order.static final String
Invalid Sort Param.static final String
Invalid Status.static final String
Invalid Title.static final String
Invalid user.static final String
Invalid User Consent Object.static final String
Invalid User Name.static final String
Login Limit Exceeded.static final String
Mandatory Properties Missing.static final String
User No Address Available.static final String
User No Card Available.static final String
No Collection Properties Available.static final String
User No Custom Properties Available.static final String
User No Search Result Found.static final String
User No Security Questions Available.static final String
Property Does Not Exist.static final String
Resend mail thresholdstatic final String
User Code success.static final String
User Activation Param Expired.static final String
User Activation Param Not Matched.static final String
User Address Delete Failed.static final String
User Not Allowed To Create invalid address properties.static final String
User Address Missing.static final String
User already exist.static final String
User Assign Multiple Default Address.static final String
User Assign Multiple Default Card.static final String
User Auth Notification param Expired.static final String
User Auth Notification param NOT Matched.static final String
User Card Delete Failed.static final String
User Card Missing.static final String
User Consent Already Exist.static final String
User Consent Does Not Exist.static final String
User Custom Property Delete Failed.static final String
User Deactivation Failed.static final String
User Does Not Exist.static final String
Duplicate User.static final String
User Duplicate Address.static final String
User Address Limit Exceeded.static final String
User Card Limit Exceeded.static final String
Facebook Authentication Failed.static final String
Google Authentication Failed.static final String
User Identities Does Not Matched Descriptionstatic final String
User Invalid credentials.static final String
User Invalid Authenticator Class Name.static final String
User Invalid Custom Property.static final String
Invalid Login Credentials Descriptionstatic final String
User Invalid Page.static final String
User Invalid Security Questions and Answers.static final String
User Invalid Type.static final String
User MFA Invalid otp.static final String
User MFA Invalid Token.static final String
User MFA Login Invalid OTP.static final String
User MFA Login Invalid Token.static final String
User MFA Login Token Expired.static final String
User MFA Maximum Fail Limit Exceeded.static final String
User MFA Maximum Fail Limit Exceeded.static final String
User MFA Maximum Resend Limit Exceeded.static final String
User MFA Maximum Fail Limit Exceeded.static final String
User MFA Token Expired.static final String
User NOT Active.static final String
User Not Allowed to Activate.static final String
User Not Allowed to Create Addressstatic final String
User Not Allowed To Create Notes.static final String
User Not Allowed to Delete Addressstatic final String
User Not Allowed To Load Address.static final String
User Not Allowed to Load Notes.static final String
User Not Allowed To Load Security Questions.static final String
User Not Allowed To Login.static final String
User Not Allowed To Reset.static final String
User Not Allowed For Notification Operation.static final String
User Not Allowed To Update.static final String
User Not Allowed to Update Addressstatic final String
User Not Allowed to Update MFA Authenticator statusstatic final String
User Not Allowed To Update Notes.static final String
User Not Allowed To Update Password.static final String
User Not Allowed To Update Security Questions.static final String
User Not Allowed For Notification Operation.static final String
code invalid password change limitsstatic final String
User Not Allowed To Create Notes.static final String
User Notes Does Not Exist.static final String
User Password Does Not Matched.static final String
Password Got Expired.static final String
User Passwords Repeated.static final String
User Reset Param Expired.static final String
User Reset Param Not Matched.static final String
User Reset Pass Failed.static final String
User Security Questions Validation Failed.static final String
User Validate Activation Failed.static final String
User Validate Reset Failed.static final String
Userid Missing.static final String
Validation Fail.static final String
Collection Update Failure.static final String
Invalid Search Param.static final String
Generate User Notification.static final String
Password Reset by Security Questionstatic final String
User Segment already existstatic final String
Validating User Auth Notification Params. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getMessage
(org.springframework.context.MessageSource messageSource, String responseCode, String locale) This method is used to get the response message from the API calls.
-
Field Details
-
CODE_SUCCESS
User Code success.- See Also:
-
CODE_FAILURE
User Code failure.- See Also:
-
CODE_DATEPARSE_FAILURE
Date parse Failure.- See Also:
-
CODE_USER_ALREADY_EXIST
User already exist.- See Also:
-
CODE_USER_INVAID_CREDENTIAL
User Invalid credentials.- See Also:
-
CODE_USER_DOES_NOT_EXIST
User Does Not Exist.- See Also:
-
CODE_ADDRESS_DOES_NOT_EXIST
User Address Does Not Exist.- See Also:
-
CODE_CARD_DOES_NOT_EXIST
User Card Does Not Exist.- See Also:
-
CODE_USER_VALIDATE_ACTIVATION_FAILED
User Validate Activation Failed.- See Also:
-
CODE_USER_ACTIVATION_PARAM_EXPIRED
User Activation Param Expired.- See Also:
-
CODE_USER_RESET_PASS_FAILED
User Reset Pass Failed.- See Also:
-
CODE_USER_VALIDATE_RESET_FAILED
User Validate Reset Failed.- See Also:
-
CODE_USER_RESET_PARAM_EXPIRED
User Reset Param Expired.- See Also:
-
CODE_USER_SECURITY_QUESTION_VALIDATION_FAILED
User Security Questions Validation Failed.- See Also:
-
CODE_PROPERTY_DOES_NOT_EXIST
Property Does Not Exist.- See Also:
-
CODE_IDENTITY_DOES_NOT_EXIST
Identity Does Not Exit.- See Also:
-
CODE_CREDENTIALS_DOES_NOT_EXIST
Credentials Does Not Exist.- See Also:
-
CODE_USER_ACTIVATION_PARAM_NOT_MATCHED
User Activation Param Not Matched.- See Also:
-
CODE_USER_ADDRESS_MISSING
User Address Missing.- See Also:
-
CODE_USER_DUPLICATE_ADDRESS
User Duplicate Address.- See Also:
-
CODE_INVALID_DEFAULT_ADDRESS
Invalid Default Address.- See Also:
-
CODE_CARD_MISSING
Card Missing.- See Also:
-
CODE_DUPLICATE_CARD
Duplicate Card.- See Also:
-
CODE_INVALID_DEFAULT_CARD
Invalid Default Card.- See Also:
-
CODE_VALIDATION_FAIL
Validation Fail.- See Also:
-
CODE_MANDATORY_PROP_MISSING
Mandatory Properties Missing.- See Also:
-
CODE_AUTH_SUCCESS
User Auth Success.- See Also:
-
CODE_AUTH_FAILED
User Auth Failed.- See Also:
-
CODE_USER_CARD_MISSING
User Card Missing.- See Also:
-
CODE_USER_NOT_ACTIVE
User NOT Active.- See Also:
-
CODE_USER_AUTH_NOTIFICATION_PARAM_EXPIRED
User Auth Notification param Expired.- See Also:
-
CODE_USER_AUTH_NOTIFICATION_PARAM_NOT_MATCHED
User Auth Notification param NOT Matched.- See Also:
-
CODE_NO_SEQURITY_QUESTIONS_AVAILABLE
User No Security Questions Available.- See Also:
-
CODE_NO_ADDRESSS_AVAILABLE
User No Address Available.- See Also:
-
CODE_NO_CARDS_AVAILABLE
User No Card Available.- See Also:
-
CODE_NO_CUSTOMPROPERTIES_AVAILABLE
User No Custom Properties Available.- See Also:
-
CODE_USER_INVALID_SECURITY_QUESTIONS_AND_ANSWERS
User Invalid Security Questions and Answers.- See Also:
-
CODE_INVALID_SIZE
Invalid Size.- See Also:
-
CODE_NO_SEARCH_RESULT_FOUND
User No Search Result Found.- See Also:
-
CODE_USER_RESET_PARAM_NOT_MATCHED
User Reset Param Not Matched.- See Also:
-
CODE_INVALID_CARDEXPIRATIONMONTH
User Invalid Card Expiration Month.- See Also:
-
CODE_CARD_EXPIRED
Card Expired.- See Also:
-
CODE_CARDEXPIRATIONMONTHANDYEAR_MISSING
Card Expiration Month and Year missing.- See Also:
-
CODE_USER_DEACTIVATION_FAILED
User Deactivation Failed.- See Also:
-
CODE_USER_ADDRESS_DELETE_FAILED
User Address Delete Failed.- See Also:
-
CODE_USER_CARD_DELETE_FAILED
User Card Delete Failed.- See Also:
-
CODE_USER_CUSTOM_PROPERTY_DELETE_FAILED
User Custom Property Delete Failed.- See Also:
-
CODE_CREDENTIALS_MISSING
Credentials Missing.- See Also:
-
CODE_INVALID_CARDID
Invalid Card id.- See Also:
-
CODE_USER_INVALID_CUSTOMPROPERTY
User Invalid Custom Property.- See Also:
-
CODE_INVALID_ADDRESS_ID
Invalid Address Id.- See Also:
-
CODE_INVALID_BUSINESS_ID
Invalid Business Id.- See Also:
-
CODE_COLLECTION_PROPERTY_NAME_MISSING
Collection Property Name Missing.- See Also:
-
CODE_COLLECTION_PROPERTY_VALUE_MISSING
Collection Property Value Missing.- See Also:
-
CODE_COLLECTION_PROPERTY_COLLECTIONID_MISSING
Collection Property Collection ID Missing.- See Also:
-
CODE_COLLECTION_NAME_NOT_GIVEN
Collection Name NOT Given.- See Also:
-
CODE_CUSTOM_PROPERTY_MISSING
Custom Property Missing.- See Also:
-
CODE_EMPTY_IDENTITY
Empty Identity.- See Also:
-
CODE_USER_NOT_ALLOWED_TO_ACTIVATE
User Not Allowed to Activate.- See Also:
-
CODE_USER_EXCEEDS_CARD_LIMIT
User Card Limit Exceeded.- See Also:
-
CODE_USER_EXCEEDS_ADDRESS_LIMIT
User Address Limit Exceeded.- See Also:
-
CODE_USER_ASSIGN_MULTIPLE_DEFAULT_CARD
User Assign Multiple Default Card.- See Also:
-
CODE_USER_ASSIGN_MULTIPLE_DEFAULT_ADDRESS
User Assign Multiple Default Address.- See Also:
-
CODE_COLLECTION_NOT_EXIST
Collection Not Exist.- See Also:
-
CODE_COLLECTION_PROPERTIES_NOT_EXIST
Collection Properties Not Exist.- See Also:
-
CODE_NO_COLLECTION_PROPERTIES_AVAILABLE
No Collection Properties Available.- See Also:
-
CODE_INVALID_SORT_PARAM
Invalid Sort Param.- See Also:
-
CODE_INVALID_SORT_ORDER
Invalid Sort Order.- See Also:
-
CODE_INVALID_SORT_KEY
Invalid Sort Key.- See Also:
-
CODE_INVALID_ACTIVATION_PARAM
Invalid Activation Param.- See Also:
-
CODE_INVALID_RESET_PARAM
Invalid Reset Param.- See Also:
-
CODE_INVALID_SEARCH_VALUE
Invalid Search Value.- See Also:
-
CODE_INVALID_SEARCH_PARAM
Invalid Search Param.- See Also:
-
CODE_COLLECTION_PROPERTIES_EXISTS
Collection Properties Exists.- See Also:
-
CODE_COLLECTION_ALREADY_EXISTS
Collection Already Exists.- See Also:
-
CODE_COLLECTION_NAME_INVALID
Invalid Collection Name.- See Also:
-
CODE_EXCEEEDS_USER_LIMIT
User Limit Exceeded.- See Also:
-
CODE_USER_DUPLICATE
Duplicate User.- See Also:
-
CODE_INVALID_STATUS
Invalid Status.- See Also:
-
CODE_USER_NOT_ALLOWED_TO_UPDATE
User Not Allowed To Update.- See Also:
-
CODE_INVALID_NOTIFICATION_PARAM_PARAM
Invalid Notification Param.- See Also:
-
CODE_INVALID_COLLECTIONID
Invalid Collection Id.- See Also:
-
CODE_INVALID_CONSENT
Invalid Consent.- See Also:
-
CODE_CONSENT_ALREADY_EXIST
Consent Already Exist.- See Also:
-
CODE_CONSENT_DOES_NOT_EXIST
Consent Does Not Exist.- See Also:
-
CODE_INVALID_TITLE
Invalid Title.- See Also:
-
CODE_INVALID_USER
Invalid user.- See Also:
-
CODE_INVALID_COLLECTION_PROPERTIES
Invalid Collection Properties.- See Also:
-
CODE_USERID_MISSING
Userid Missing.- See Also:
-
CODE_LOGIN_LIMIT_EXCEEDED
Login Limit Exceeded.- See Also:
-
CODE_USER_PASSWRD_DOESNOT_MATCHED
User Password Does Not Matched.- See Also:
-
CODE_INVALID_USER_CONSENT_OBJECT
Invalid User Consent Object.- See Also:
-
CODE_USER_CONSENT_ALREADY_EXIST
User Consent Already Exist.- See Also:
-
CODE_USER_CONSENT_DOESNOT_EXIST
User Consent Does Not Exist.- See Also:
-
CODE_USER_NOT_ALLOWED_TO_RESET
User Not Allowed To Reset.- See Also:
-
CODE_USER_NOT_ALLOWED_TO_CREATE_NOTES
User Not Allowed To Create Notes.- See Also:
-
CODE_USER_NOTES_DELETE_SUCCESS
User Not Allowed To Create Notes.- See Also:
-
CODE_USER_NOT_ALLOWED_TO_LOAD_NOTES
User Not Allowed to Load Notes.- See Also:
-
CODE_USER_NOTES_DOESNOT_EXIST
User Notes Does Not Exist.- See Also:
-
CODE_USER_NOT_ALLOWED_TO_LOAD_ADDRESS
User Not Allowed To Load Address.- See Also:
-
CODE_USER_PASSWRDS_REPEATED
User Passwords Repeated.- See Also:
-
CODE_USER_INVALID_PAGE
User Invalid Page.- See Also:
-
CODE_ACCESS_DENIED
Access Denied.- See Also:
-
COLLECTION_UPDATE_FAILURE
Collection Update Failure.- See Also:
-
CODE_USER_INVALID_TYPE
User Invalid Type.- See Also:
-
CODE_USER_GOOGLE_AUTHENTICATION_FAILED
Google Authentication Failed.- See Also:
-
CODE_USER_INVALID_AUTHENTICATOR_CLASS_NAME
User Invalid Authenticator Class Name.- See Also:
-
CODE_USER_FACEBOOK_AUTHENTICATION_FAILED
Facebook Authentication Failed.- See Also:
-
CODE_USER_MFA_LOGIN_INVALID_OTP
User MFA Login Invalid OTP.- See Also:
-
CODE_USER_MFA_LOGIN_TOKEN_EXPIRED
User MFA Login Token Expired.- See Also:
-
CODE_USER_MFA_MAXIMUM_RESEND_LIMIT_EXCEEDED
User MFA Maximum Resend Limit Exceeded.- See Also:
-
CODE_USER_MFA_MAXIMUM_FAILED_LIMIT_EXCEEDED
User MFA Maximum Fail Limit Exceeded.- See Also:
-
CODE_USER_MFA_LOGIN_INVALID_TOKEN
User MFA Login Invalid Token.- See Also:
-
CODE_INVALID_USER_NAME
Invalid User Name.- See Also:
-
CODE_INVALID_FILTER
Invalid Filter.- See Also:
-
CODE_INVALID_COLLECTION_DESCRIPTION
Invalid Collection Description- See Also:
-
CODE_USER_INVALID_LOGIN_CREDENTIALS
Invalid Login Credentials Description- See Also:
-
CODE_USER_IDENTITIES_NOT_MATCHED
User Identities Does Not Matched Description- See Also:
-
CODE_USER_NOT_ALLOWED_TO_CREATE_ADDRESS
User Not Allowed to Create Address- See Also:
-
CODE_USER_NOT_ALLOWED_TO_UPDATE_ADDRESS
User Not Allowed to Update Address- See Also:
-
CODE_USER_NOT_ALLOWED_TO_DELETE_ADDRESS
User Not Allowed to Delete Address- See Also:
-
CODE_USER_MFA_MAXIMUM_FAILED_LIMIT_EXCEEDED_FOR_SIGNUP
User MFA Maximum Fail Limit Exceeded.- See Also:
-
CODE_USER_NOT_ALLOWED_TO_SEND_NOTIFICATION
User Not Allowed For Notification Operation.- See Also:
-
CODE_USER_NOT_ALLOWED_TO_VALIDATE_NOTIFICATION
User Not Allowed For Notification Operation.- See Also:
-
CODE_USER_NOT_ALLOWED_TO_UPDATE_PASSWRD
User Not Allowed To Update Password.- See Also:
-
CODE_USER_NOT_ALLOWED_TO_LOAD_SECURITY_QUESTIONS
User Not Allowed To Load Security Questions.- See Also:
-
CODE_USER_NOT_ALLOWED_TO_UPDATE_SECURITY_QUESTIONS
User Not Allowed To Update Security Questions.- See Also:
-
CODE_INVALID_SEARCH_PARAM_ALPHANUMERIC
Invalid Search Param.- See Also:
-
CODE_USER_PASSWRDS_EXPIRED
Password Got Expired.- See Also:
-
CODE_INVALID_CREATE_USER_CLASS_NAME
Invalid Create User Class.- See Also:
-
CODE_RESEND_MAIL_THRESHOLD_NOT_REACHED
Resend mail threshold- See Also:
-
CODE_USER_MFA_TOKEN_EXPIRED
User MFA Token Expired.- See Also:
-
CODE_INVALID_EMAIL_ADDRESS
CODE_INVALID_EMAIL_ADDRESS- See Also:
-
CODE_INVALID_FIRSTNAME
CODE_INVALID_FIRSTNAME- See Also:
-
CODE_INVALID_LASTNAME
CODE_INVALID_LASTNAME- See Also:
-
CODE_USER_ADDRESS_INVALID_ADDRESS_PROPERTY
User Not Allowed To Create invalid address properties.- See Also:
-
CODE_USER_NOT_PASS_PASSWORD_CHANGE_INTERVAL
code invalid password change limits- See Also:
-
CODE_CUSTOM_PROPERTY_DELETED_SUCCESS
User Custom Property deleted.- See Also:
-
VALIDATE_USER_AUTH_NOTIFICATION
Validating User Auth Notification Params.- See Also:
-
GENERATE_USER_NOTIFICATION
Generate User Notification.- See Also:
-
PWD_RESET_SECURITY_QUESTION
Password Reset by Security Question- See Also:
-
CODE_USER_MFA_INVALID_TOKEN
User MFA Invalid Token.- See Also:
-
CODE_USER_MFA_INVALID_OTP
User MFA Invalid otp.- See Also:
-
CODE_USER_MFA_MAXIMUM_UPDATE_FAILED_LIMIT_EXCEEDED
User MFA Maximum Fail Limit Exceeded.- See Also:
-
CODE_USER_NOT_ALLOWED_TO_UPDATE_MFA_AUTH_STATUS
User Not Allowed to Update MFA Authenticator status- See Also:
-
USER_SEGMENT_ALREADY_EXIST
User Segment already exist- See Also:
-
CODE_INVALID_NOTES_ID
Invalid Notes Id.- See Also:
-
CODE_USER_NOT_ALLOWED_TO_UPDATE_NOTES
User Not Allowed To Update Notes.- See Also:
-
CODE_BLACKLIST_ITEMS_INVALID_VALUE
Blacklist items value invalid code- See Also:
-
CODE_BLACKLIST_DOESNOT_EXIST
Blacklist Items ValueNot Exist- See Also:
-
CODE_BLACKLIST_DELETE_SUCCESS
Blacklist Items Value Delete Success- See Also:
-
CODE_USER_NOT_ALLOWED_TO_LOGIN
User Not Allowed To Login.- See Also:
-
DUPLICATE_SEARCH_PARAM
Invalid Search Param.- See Also:
-
CODE_EMPTY_REQUEST
Empty request.- See Also:
-
-
Constructor Details
-
UserResponseCodes
public UserResponseCodes()
-
-
Method Details
-
getMessage
public static String getMessage(org.springframework.context.MessageSource messageSource, String responseCode, String locale) This method is used to get the response message from the API calls.- Parameters:
messageSource
- HoldsMessageSource
object which is used for messages.responseCode
- Indicates the response codes which is return by the API calls.locale
- API Response and error messages will be responded in the locale mentioned in this parameter.- Returns:
- the response code and response messages which is return by the API calls.
-