/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. package com.google.ie.web.controller;
  16. /**
  17. * An interface that stores constants for the web tier
  18. *
  19. * @author abraina
  20. */
  21. public interface WebConstants {
  22. String USER = "user";
  23. String SUCCESS = "success";
  24. String SEARCH = "search";
  25. String ERROR = "error";
  26. String ASTERISK = "*";
  27. String GLOBAL_MESSAGE = "globalMessage";
  28. String CAPTCHA = "captcha";
  29. String IDEA = "idea";
  30. String IDEA_CATEGORY = "ideaCategory";
  31. String TAG = "tag";
  32. String VIEW_STATUS = "viewStatus";
  33. String MIN_WEIGHT = "minWeight";
  34. String MAX_WEIGHT = "maxWeight";
  35. String CAPTCHA_MISMATCH = "Please provide valid captcha";
  36. String NO_RECORDS_FOUND = "No records found";
  37. String RECORD_NOT_FOUND = "Record not found";
  38. String NO_IDEAS_FOUND = "No ideas found";
  39. String DUPLICATE_IDEAS_FOUND = "Duplicate ideas found.";
  40. String SUMMARY_ADDED_SUCCESSFULLY = "Idea summary added successfully.";
  41. String NO_TAGS_FOUND = "No tags found";
  42. String EMAIL_REQUIRED = "emailRequired";
  43. int ZERO = 0;
  44. int ONE = 1;
  45. int HUNDRED = 100;
  46. int THOUSAND = 1000;
  47. int MINUS_ONE = -1;
  48. int PAGE_LIMIT = 50;
  49. int IDEA_POSITIVE_VOTE_POINTS = 10;
  50. int IDEA_NEGATIVE_VOTE_POINTS = 5;
  51. int COMMENT_POSITIVE_VOTE_POINTS = 10;
  52. int COMMENT_NEGATIVE_VOTE_POINTS = 5;
  53. String MY_IDEAS_COUNT = "count";
  54. String INBOX_ITEM_COUNT = "inboxCount";
  55. String TAGS = "tags";
  56. String WEIGHTS = "weights";
  57. String CATEGORIES = "categories";
  58. String IDEAS = "ideas";
  59. String ORIG_IDEA = "origIdea";
  60. String TOTAL_COUNT = "totalCount";
  61. String NOT_FOUND = "No object found";
  62. String VOTE = "vote";
  63. String RE_CAPTCHA_PUBLIC_KEY = "rcPublicKey";
  64. String VOTE_SUCCESSFUL = "Vote is Succesfully added";
  65. String VOTE_FAILED = "Vote is failed to add";
  66. String RECENT_IDEAS_MODEL_KEY = "recentIdeas";
  67. String POPULAR_IDEAS_MODEL_KEY = "popularIdeas";
  68. String RECENTLY_PICKED_IDEA_MODEL_KEY = "recentlyPickedIdeas";
  69. String COMMENTS = "comments";
  70. String PROJECT_COMMENT = "projComment";
  71. String IDEA_COMMENT = "ideaComment";
  72. String NO_COMMENTS_FOUND = "No Comments found";
  73. String COMMENT_SUCCESSFULL = "Comment is successfully added";
  74. String ALL_IDEAS_SEARCH_STRING = "title:[* TO *]";
  75. String IDEA_DETAIL = "ideaDetail";
  76. String IDEA_TITLE = "ideaTitle";
  77. String COMMENT_KEY_NULL = "Comment key is null or empty";
  78. String VALIDATION_ERROR = "Input data is invalid";
  79. String COMMENT_FAILED = "Comment failed to add";
  80. // Number of duplicate ideas to be shown at the time of publishing
  81. int DUPLICATE_IDEAS_SHOWN = 3;
  82. String PREVIOUS = "previous";
  83. String NEXT = "next";
  84. String PAGING = "paging";
  85. String PROJECTS = "projects";
  86. String USERS = "users";
  87. String INBOX_ITEMS = "inboxItems";
  88. String IDEA_AND_COMMENTS = "ideaAndComments";
  89. String PROJECT_DETAIL = "project";
  90. String FLAG = "flag";
  91. String DUPLICATE = "duplicate";
  92. String DUPLICATE_IDEAS = "duplicateIdeas";
  93. String IDEA_FLAGGING_SUCCESSFULL = "Idea is flagged successfully and it's waiting for admin approval";
  94. String FLAGGING_FAILED = "Problem occurs while flagging";
  95. String PROJECT_COMMENT_ALREADY_FLAGGED = "Comment is already flagged.";
  96. String COMMENT_FLAGGING_SUCCESSFULL = "Comment is flagged successfully and it's waiting for admin approval";
  97. String IDEA_DUPLICATE_SUCCESS = "Idea is flagged duplicate successfully and it's waiting for admin approval";
  98. String IDEA_DUPLICATE_FAILED = "Problem occurs while marking idea as duplicate";
  99. String ADMIN_REQUESTS = "adminRequests";
  100. String AUDIT = "audit";
  101. String EMAIL_SUCCESS = "email";
  102. String EMAIL_ERROR = "email";
  103. String IS_DUPLICATE = "isDuplicate";
  104. String INVALID_USER = "User is not an admin user or not logged in.";
  105. String UN_AUTHORIZED_USER = "Either user credentials are wrong or the user has been banned by the site administrator.";
  106. String REFERER = "referer";
  107. }