-
Notifications
You must be signed in to change notification settings - Fork 549
Expand file tree
/
Copy pathUserMessage.java
More file actions
124 lines (120 loc) · 8.2 KB
/
UserMessage.java
File metadata and controls
124 lines (120 loc) · 8.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/*
* Licensed under the Apache License, Version 2.0 (the “License”);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.crapi.constant;
public class UserMessage {
public static final String LOGIN_SUCCESSFULL_MESSAGE = "Login successful";
public static final String OTP_REQUIRED_MESSAGE =
"User is locked. OTP has been sent to your email. Please provide that to unlock the account.";
public static final String API_KEY_GENERATED_MESSAGE =
"Api Key generated successfully. Use it in authorization header with ApiKey prefix.";
public static final String API_KEY_GENERATION_FAILED =
"Api Key generation failed! Only permitted for admin users.";
public static final String ACCOUNT_LOCK_MESSAGE = "User account has been locked.";
public static final String ACCOUNT_LOCKED_MESSAGE =
"User account is locked. Retry login with MFA to unlock.";
public static final String ACCOUNT_LOCK_FAILURE =
"Failed to lock the account. Please try again..";
public static final String ACCOUNT_UNLOCKED_MESSAGE = "User account is unlocked.";
public static final String INVALID_CREDENTIALS = "Invalid Credentials";
public static final String SIGN_UP_SUCCESS_MESSAGE =
"User registered successfully! Please Login.";
public static final String SIGN_UP_FAILED = "User registered failed! Please retry.";
public static final String NUMBER_ALREADY_REGISTERED = "Number already registered! Number: ";
public static final String NUMBER_NOT_REGISTERED = "Given Number is not registered! Number:";
public static final String CHANGE_PHONE_MESSAGE =
"The otp has been sent to your email. If you have used example.com email, check your email using the MailHog web portal.";
public static final String NUMBER_CHANGE_SUCCESSFUL = "Phone number change is successful";
public static final String NEW_NUMBER_DOES_NOT_BELONG = "Fail, invalid new number";
public static final String OLD_NUMBER_DOES_NOT_BELONG =
"Fail, number parameter doesn’t belong to the user";
public static final String INVALID_CHANGE_REQUEST = "Fail, invalid change request";
public static final String EMAIL_ALREADY_REGISTERED = "Email already registered! Email: ";
public static final String GIVEN_URL_ALREADY_USED =
"Given URL is already used! Please try to login..";
public static final String EMAIL_NOT_PROVIDED = "Email not provided";
public static final String EMAIL_NOT_REGISTERED = "Given Email is not registered! ";
public static final String INVALID_OTP = "Invalid OTP! Please try again..";
public static final String ERROR = "ERROR..";
public static final String OTP_VERIFIED_SUCCESS = "OTP verified";
public static final String OTP_SEND_SUCCESS_ON_EMAIL = "OTP Sent on the provided email, ";
public static final String EXCEED_NUMBER_OF_ATTEMPS = "You've exceeded the number of attempts.";
public static final String PASSWORD_GOT_RESET = "Password reset successful.";
public static final String VEHICLE_MODEL_IS_NOT_AVAILABLE =
"Sorry we don't have Vehicle model for this company. Please select other..";
public static final String VEHICLE_SAVED_SUCCESSFULLY = "Vehicle saved successfully!";
public static final String VEHICLE_NOT_FOUND = "Failed to get Vehicles";
public static final String VEHICLE_DETAILS_SENT_TO_EMAIL =
"Your newly purchased vehicle details have been sent to you email address. Verify them to add your vehicle. [If you have used example.com email, check your email using the MailHog web portal]";
public static final String CHANGE_EMAIL_MESSAGE =
"The token has been sent to your email. If you have used example.com email, check your email using the MailHog web portal. ";
public static final String CHANGE_EMAIL_OLD_USEREMAIL_NOT_FOUND_MESSAGE =
"Sorry, we didn't find any user for ";
public static final String INVALID_EMAIL_TOKEN = "Sorry, Token did't match";
public static final String OLD_MAIL_DOES_NOT_BELONG =
"Fail, email address parameter doesn’t belong to the user";
public static final String NEW_MAIL_DOES_NOT_BELONG =
"Fail, new email address parameter doesn’t match with token";
public static final String EMAIL_CHANGE_SUCCESSFUL =
"Your Email changed successful. Please login with updated email. ";
public static final String VEHICLE_ALREADY_CREATED = "Sorry, This Vehicle is already added.";
public static final String LOGIN_WITH_EMAIL_TOKEN = "Successfully logged in with email token.";
public static final String VALID_JWT_TOKEN = "The token is a valid JWT token";
public static final String INVALID_JWT_TOKEN = "The token is not a valid JWT token";
public static final String TOKEN_VERIFICATION_FAILOLD =
"Our security team made us remove the \"Login with token\" feature because it's not secure enough. It's not available after API version 2.7";
public static final String TOKEN_VERIFICATION_MISSING = "Missing data. Field is null: ";
public static final String DID_NOT_GET_VEHICLE_FOR_USER =
"Sorry we didn't get vehicle for user: ";
public static final String PROFILE_PICTURE_UPDATE = "Profile picture updated successfully.";
public static final String VIDEO_DELETED_SUCCESS_MESSAGE = "User video deleted successfully.";
public static final String YOU_HAVE_VIDEO_UPLOADED =
"You have already uploaded a video. Please try with change video";
public static final String CONVERT_VIDEO_INTERNAL_USE_ONLY =
"Thi-S endpoint S-hould be accessed only inte-Rnally. -Fine? , endpoint_url http://crapi-identity:"
+ String.valueOf(System.getenv("SERVER_PORT"))
+ "/identity/api/v2/user/videos/convert_video";
public static final String CONVERT_VIDEO_INTERNAL_ERROR = "Error occured while executing.";
public static final String CONVERT_VIDEO_CLOSE_TO_WIN_THE_GAME = "You are very close.";
public static final String CONVERT_VIDEO_BASH_COMMAND_TRIGGERED =
"Video conversion command executed.";
public static final String SORRY_DIDNT_GET_PROFILE =
"Sorry, Didn't get any profile video name for the user.";
public static final String THIS_IS_ADMIN_FUNCTION =
"This is an admin function. Try to access the admin API";
public static final String YOU_WON_THE_GAME = "You won the game.";
public static final String USER_VIDEO_NAME_CHANGED = "Video name changed successfully..";
public static final String CONVERT_VIDEO_PARAM_IS_MISSING = "Video_id param is missing";
public static final String ERROR_EXECUTING_STRING = "Error occured while executing.";
public static final String VIDEO_WAS_NOT_FOUND = "video wasn’t found";
public static final String VIDEO_NOT_FOUND = "Video not found.";
// public static final String
// Exception Message
public static final String INTERNAL_SERVER_ERROR_UNABLE_TO_CREATE_ACCOUNT =
"Internal Server Error. Unable to create account..";
public static final String INTERNAL_SERVER_ERROR = "Internal Issue! Please try after some time";
public static final String CUSTOM_IO_EXCEPTION = "com.crapi.exception: IO Exception";
public static final String CUSTOM_IO_EXCEPTION_UNABLE_TO_CREATE_VEHICLE =
"Sorry! Unable to create the vehicle";
public static final String CONVERSION_VIDEO_OK =
"V09XLiBMb29rIGF0IHlvdS4gQ29tYmluaW5nIE1hc3MgQXNzaWdubWVudCBh"
+ "bmQgU1NSRiB0byBleHBsb2l0IGEgaGlkZGVuIFNoZWxsIEluamVjdGlvbi4K"
+ "V2UncmUgdmVyeSBwcm91ZC4gWW91IHdvbiB0aGUgZ2FtZS4gVW5mb3J0dW5h"
+ "dGVseSwgd2UgZG9uJ3QgYWN0dWFsbHkgIAphbGxvdyBvdXIgcGVudGVzdGVy"
+ "IHRvIHJ1biBhcmJpdHJhcnkgc2hlbGwgY29tbWFuZHMgb24gb3VyIGJhY2tl"
+ "bmQgOiggCkl0IGNvdWxkIGJlIHZlcnkgZXhwZW5zaXZlIGFuZCBhbm5veWlu"
+ "ZyB0byBtYWludGFpbiBpdC4gCkFueWhvdywgaWYgeW91IGhvc3QgeW91ciBv"
+ "d24gaW5zdGFuY2Ugb2YgY3JBUEksIHlvdSBjYW4gc2ltcGx5IGNoYW5nZSB0"
+ "aGUKYGJsb2NrX3NoZWxsX2luamVjdGlvbnNgIGZsYWcgaW4gdGhlIGNvbmZp"
+ "ZyBmaWxlIHRvIGFsbG93IHJlYWwgc2hlbGwgaW5qZWN0aW9ucy4=";
}