PageRenderTime 69ms CodeModel.GetById 61ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/src/main/java/com/google/ie/web/controller/WebConstants.java

http://thoughtsite.googlecode.com/
Java | 128 lines | 87 code | 21 blank | 20 comment | 0 complexity | 79dc0a3f479a7717c3b3079a84787b94 MD5 | raw file
  1/* Copyright 2010 Google Inc.
  2 * 
  3 * Licensed under the Apache License, Version 2.0 (the "License");
  4 * you may not use this file except in compliance with the License.
  5 * You may obtain a copy of the License at
  6 * 
  7 *      http://www.apache.org/licenses/LICENSE-2.0
  8 * 
  9 * Unless required by applicable law or agreed to in writing, software
 10 * distributed under the License is distributed on an "AS IS" BASIS.
 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12 * See the License for the specific language governing permissions and
 13 * limitations under the License
 14 */
 15
 16package com.google.ie.web.controller;
 17
 18/**
 19 * An interface that stores constants for the web tier
 20 * 
 21 * @author abraina
 22 */
 23public interface WebConstants {
 24    String USER = "user";
 25
 26    String SUCCESS = "success";
 27    String SEARCH = "search";
 28    String ERROR = "error";
 29    String ASTERISK = "*";
 30    String GLOBAL_MESSAGE = "globalMessage";
 31    String CAPTCHA = "captcha";
 32    String IDEA = "idea";
 33    String IDEA_CATEGORY = "ideaCategory";
 34    String TAG = "tag";
 35    String VIEW_STATUS = "viewStatus";
 36    String MIN_WEIGHT = "minWeight";
 37    String MAX_WEIGHT = "maxWeight";
 38    String CAPTCHA_MISMATCH = "Please provide valid captcha";
 39    String NO_RECORDS_FOUND = "No records found";
 40    String RECORD_NOT_FOUND = "Record not found";
 41    String NO_IDEAS_FOUND = "No ideas found";
 42    String DUPLICATE_IDEAS_FOUND = "Duplicate ideas found.";
 43    String SUMMARY_ADDED_SUCCESSFULLY = "Idea summary added successfully.";
 44    String NO_TAGS_FOUND = "No tags found";
 45    String EMAIL_REQUIRED = "emailRequired";
 46    int ZERO = 0;
 47    int ONE = 1;
 48    int HUNDRED = 100;
 49    int THOUSAND = 1000;
 50    int MINUS_ONE = -1;
 51    int PAGE_LIMIT = 50;
 52    int IDEA_POSITIVE_VOTE_POINTS = 10;
 53    int IDEA_NEGATIVE_VOTE_POINTS = 5;
 54    int COMMENT_POSITIVE_VOTE_POINTS = 10;
 55    int COMMENT_NEGATIVE_VOTE_POINTS = 5;
 56    String MY_IDEAS_COUNT = "count";
 57    String INBOX_ITEM_COUNT = "inboxCount";
 58    String TAGS = "tags";
 59    String WEIGHTS = "weights";
 60    String CATEGORIES = "categories";
 61    String IDEAS = "ideas";
 62    String ORIG_IDEA = "origIdea";
 63    String TOTAL_COUNT = "totalCount";
 64    String NOT_FOUND = "No object found";
 65    String VOTE = "vote";
 66
 67    String RE_CAPTCHA_PUBLIC_KEY = "rcPublicKey";
 68
 69    String VOTE_SUCCESSFUL = "Vote is Succesfully added";
 70    String VOTE_FAILED = "Vote is failed to add";
 71    String RECENT_IDEAS_MODEL_KEY = "recentIdeas";
 72    String POPULAR_IDEAS_MODEL_KEY = "popularIdeas";
 73    String RECENTLY_PICKED_IDEA_MODEL_KEY = "recentlyPickedIdeas";
 74
 75    String COMMENTS = "comments";
 76    String PROJECT_COMMENT = "projComment";
 77    String IDEA_COMMENT = "ideaComment";
 78    String NO_COMMENTS_FOUND = "No Comments found";
 79
 80    String COMMENT_SUCCESSFULL = "Comment is successfully added";
 81    String ALL_IDEAS_SEARCH_STRING = "title:[* TO *]";
 82    String IDEA_DETAIL = "ideaDetail";
 83    String IDEA_TITLE = "ideaTitle";
 84    String COMMENT_KEY_NULL = "Comment key is null or empty";
 85
 86    String VALIDATION_ERROR = "Input data is invalid";
 87
 88    String COMMENT_FAILED = "Comment failed to add";
 89    // Number of duplicate ideas to be shown at the time of publishing
 90    int DUPLICATE_IDEAS_SHOWN = 3;
 91    String PREVIOUS = "previous";
 92    String NEXT = "next";
 93    String PAGING = "paging";
 94    String PROJECTS = "projects";
 95    String USERS = "users";
 96    String INBOX_ITEMS = "inboxItems";
 97    String IDEA_AND_COMMENTS = "ideaAndComments";
 98    String PROJECT_DETAIL = "project";
 99    String FLAG = "flag";
100    String DUPLICATE = "duplicate";
101    String DUPLICATE_IDEAS = "duplicateIdeas";
102
103    String IDEA_FLAGGING_SUCCESSFULL = "Idea is flagged successfully and it's waiting for admin approval";
104    String FLAGGING_FAILED = "Problem occurs while flagging";
105    String PROJECT_COMMENT_ALREADY_FLAGGED = "Comment is already flagged.";
106
107    String COMMENT_FLAGGING_SUCCESSFULL = "Comment is flagged successfully and it's waiting for admin approval";
108
109    String IDEA_DUPLICATE_SUCCESS = "Idea is flagged duplicate successfully and it's waiting for admin approval";
110
111    String IDEA_DUPLICATE_FAILED = "Problem occurs while marking idea as duplicate";
112
113    String ADMIN_REQUESTS = "adminRequests";
114
115    String AUDIT = "audit";
116
117    String EMAIL_SUCCESS = "email";
118
119    String EMAIL_ERROR = "email";
120
121    String IS_DUPLICATE = "isDuplicate";
122
123    String INVALID_USER = "User is not an admin user or not logged in.";
124    String UN_AUTHORIZED_USER = "Either user credentials are wrong or the user has been banned by the site administrator.";
125    String REFERER = "referer";
126
127}
128