PageRenderTime 7248ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/ark-lims/src/main/java/au/org/theark/lims/web/Constants.java

https://gitlab.com/gecgooden/ark
Java | 248 lines | 198 code | 22 blank | 28 comment | 0 complexity | fdec962eb35d572c3ced0c6a48fa8957 MD5 | raw file
  1. /*******************************************************************************
  2. * Copyright (c) 2011 University of Western Australia. All rights reserved.
  3. *
  4. * This file is part of The Ark.
  5. *
  6. * The Ark is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version 3
  9. * of the License, or (at your option) any later version.
  10. *
  11. * The Ark is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. ******************************************************************************/
  19. package au.org.theark.lims.web;
  20. public class Constants {
  21. public static final String UPLOAD_STATUS_OF_AWAITING_VALIDATION = "AWAITING_VALIDATION";
  22. public static final String UPLOAD_STATUS_OF_COMPLETED = "COMPLETED";
  23. public static final String UPLOAD_STATUS_OF_ERROR_IN_DATA_VALIDATION = "ERROR_IN_DATA_VALIDATION";
  24. public static final String UPLOAD_STATUS_OF_ERROR_IN_FILE_VALIDATION = "ERROR_IN_FILE_VALIDATION";
  25. public static final String UPLOAD_STATUS_OF_ERROR_ON_DATA_IMPORT = "ERROR_ON_DATA_IMPORT";
  26. public static final String UPLOAD_STATUS_OF_STATUS_NOT_DEFINED = "STATUS_NOT_DEFINED";
  27. public static final String UPLOAD_STATUS_OF_VALIDATED = "VALIDATED";
  28. public static final String LIMS_MAIN_TAB = "LIMS";
  29. /* Tab names */
  30. public static final String MENU_LIMS_SUBMENU = "limsSubMenus";
  31. public static final String TAB_BIO_COLLECTION = "Collection";
  32. public static final String TAB_BIOSPECIMEN = "Biospecimen";
  33. public static final String TAB_INVENTORY = "Inventory";
  34. /* Resource Keys */
  35. public static final String TAB_MODULE_LIMS = "tab.module.lims";
  36. public static final String TAB_MODULE_LIMS_COLLECTION = "tab.module.lims.collection";
  37. public static final String TAB_MODULE_BIOSPECIMEN = "tab.module.lims.biospecimen";
  38. /* Session items */
  39. public static final String BIO_COLLECTION = "BIO_COLLECTION";
  40. public static final String BIOSPECIMEN = "BIOSPECIMEN";
  41. public static final String LIMS_SERVICE = "limsService";
  42. public static final String LIMS_SUBJECT_SERVICE = "limsSubjectService";
  43. public static final String LIMS_INVENTORY_SERVICE = "limsInventoryService";
  44. public static final String LIMS_ADMIN_SERVICE = "limsAdminService";
  45. public static final String ADMIN_TAB = "Administration";
  46. public static final String STUDY_TAB = "Study";
  47. public static final String SUBJECT_TAB = "Subject";
  48. public static final String STUDY_DETAILS = "Study Details";
  49. public static final String SUB_STUDIES = "Sub Studies";
  50. public static final String SITES = "Sites";
  51. public static final String CONSENT_SECTIONS = "Consent Sections";
  52. public static final String STUDY_COMPONENTS = "Study Components";
  53. public static final String USERS = "Users";
  54. public static final String MY_DETAILS = "My Details";
  55. public static final String STUDY_ADMIN = "Study Admin";
  56. public static final String PARTICIPANT_MANAGEMENT = "Participant Management";
  57. public static final String USER_NAME = "userName";
  58. public static final String FIRST_NAME = "firstName";
  59. public static final String LAST_NAME = "lastName";
  60. public static final String EMAIL = "email";
  61. public static final String PHONE_NUMBER = "phoneNumber";
  62. public static final String PASSWORD = "password";
  63. public static final String OLD_PASSWORD = "oldPassword";
  64. public static final String CONFIRM_PASSWORD = "confirmPassword";
  65. public static final String SAVE = "save";
  66. public static final String SAVEANDCLOSE = "saveAndClose";
  67. public static final String CLOSE = "Close";
  68. public static final String CANCEL = "cancel";
  69. public static final String DELETE = "delete";
  70. public static final String COPY = "copy";
  71. public static final String ARCHIVE = "archive";
  72. public static final String SEARCH_USER_FORM = "searchUserForm";
  73. public static final String SEARCH_FORM = "searchForm";
  74. public static final String SEARCH = "search";
  75. public static final String NEW = "new";
  76. public static final String RESET = "reset";
  77. public static final String ADD_PHONE = "addPhone";
  78. public static final String EDIT = "edit";
  79. public static final int MODE_NEW = 1;
  80. public static final int MODE_EDIT = 2;
  81. public static final int MODE_READ = 3;
  82. /* Person */
  83. public static final String PERSON_PREFERRED_EMAIL = "linkSubjectStudy.person.preferredEmail";
  84. public static final String PERSON_OTHER_EMAIL = "linkSubjectStudy.person.otherEmail";
  85. public static final String PERSON_PREFERRED_NAME = "linkSubjectStudy.person.preferredName";
  86. public static final String PERSON_VITAL_STATUS = "linkSubjectStudy.person.vitalStatus";
  87. public static final String PERSON_PERSON_ID = "linkSubjectStudy.person.id";
  88. public static final String SUBJECT_UID = "linkSubjectStudy.subjectUID";
  89. public static final String PERSON_FIRST_NAME = "linkSubjectStudy.person.firstName";
  90. public static final String PERSON_MIDDLE_NAME = "linkSubjectStudy.person.middleName";
  91. public static final String PERSON_LAST_NAME = "linkSubjectStudy.person.lastName";
  92. public static final String SUBJECT_PREVIOUS_LAST_NAME = "subjectPreviousLastname";
  93. public static final String PERSON = "person";
  94. public static final String GENDER_TYPE = "genderType";
  95. public static final String ID = "id";
  96. public static final String NAME = "name";
  97. public static final String SUBJECT_STATUS = "linkSubjectStudy.subjectStatus";
  98. public static final String SUBJECT_STATUS_ID = "id";
  99. public static final String VITAL_STATUS = "vitalStatus";
  100. public static final String STATUS_NAME = "statusName";
  101. public static final String PERSON_MARITAL_STATUS = "linkSubjectStudy.person.maritalStatus";
  102. public static final String PERSON_CONTACT_METHOD = "linkSubjectStudy.person.personContactMethod";
  103. public static final String PERSON_DOB = "linkSubjectStudy.person.dateOfBirth";
  104. public static final String PERSON_DOD = "linkSubjectStudy.person.dateOfDeath";
  105. public static final String PERSON_CONSENT_DATE = "linkSubjectStudy.consentDate";
  106. public static final String SUBJECT_CONSENT_STATUS = "linkSubjectStudy.consentStatus";
  107. public static final String SUBJECT_CONSENT_TYPE = "linkSubjectStudy.consentType";
  108. public static final String PERSON_CAUSE_OF_DEATH = "linkSubjectStudy.person.causeOfDeath";
  109. public static final String PERSON_TYTPE_TYPE = "linkSubjectStudy.person.titleType";
  110. public static final String PERSON_GENDER_TYPE = "linkSubjectStudy.person.genderType";
  111. public static final String PERSON_GENDER_TYPE_NAME = "linkSubjectStudy.person.genderType.name";
  112. public static final String SUBJECT_FULL_NAME = "subjectFullName";
  113. public static final String PERSON_VITAL_STATUS_NAME = "linkSubjectStudy.person.vitalStatus.statusName";
  114. public static final String SUBJECT_STATUS_NAME = "linkSubjectStudy.person.subjectStatus.name";
  115. public static final String EVEN = "even";
  116. public static final String ODD = "odd";
  117. public static final String CLASS = "class";
  118. public static final String SUBJECT_KEY_LBL = "subjectKeyLbl";
  119. public static final String SUBJECT_LIST = "subjectList";
  120. public static final String PHONE_LIST = "phoneList";
  121. public static final String PHONE_NUMBER_VALUE = "phoneNumberValue";
  122. public static final String CONSENT_LIST = "consentList";
  123. public static final String CONSENT_COMPONENT_LABEL = "consentComponentLabel";
  124. public static final String STATE_SELECTOR_WMC = "stateSelector"; // WebMarkupContainer that
  125. // will house the DropDowns
  126. // for States
  127. public static final String SUBJECT_STATE = "linkSubjectStudy.state";
  128. public static final String SUBJECT_OTHER_STATE = "linkSubjectStudy.otherState";
  129. public static final String SUBJECT_COUNTRY = "linkSubjectStudy.country";
  130. public static final String SUBJECT_AMDRIFID = "linkSubjectStudy.amdrifId";
  131. public static final String SUBJECT_YR_FIRST_MAMMOGRAM = "linkSubjectStudy.yearOfFirstMamogram";
  132. public static final String SUBJECT_YR_RECENT_MAMMOGRAM = "linkSubjectStudy.yearOfRecentMamogram";
  133. public static final String SUBJECT_TOTAL_MAMMOGRAM = "linkSubjectStudy.totalNumberOfMamograms";
  134. public static final String SUBJECT_SITE_ADDRESS = "linkSubjectStudy.siteAddress";
  135. public static final String SUBJECT_CITY = "linkSubjectStudy.city";
  136. public static final String SUBJECT_POST_CODE = "linkSubjectStudy.postCode";
  137. public static final String SUBJECT_CONSENT_TO_ACTIVE_CONTACT = "linkSubjectStudy.consentToActiveContact";
  138. public static final String SUBJECT_CONSENT_TO_USEDATA = "linkSubjectStudy.consentToUseData";
  139. public static final String SUBJECT_CONSENT_PASSIVE_DATA_GATHER = "linkSubjectStudy.consentToPassiveDataGathering";
  140. public static final String SUBJECT_AUTO_GENERATED = "Auto-generated";
  141. public static final String SUBJECTUID_EXAMPLE = "AAA-000000001";
  142. public static final String BIOCOLLECTION_NAME_EXAMPLE = "AAA-000000001";
  143. public static final String BIOSPECIMENUID_EXAMPLE = "AAA-000000001";
  144. public static final String BIOTRANSACTION_STATUS_INITIAL_QUANTITY = "Initial Quantity";
  145. public static final String BIOSPECIMEN_PROCESSING_PROCESSING = "Processing";
  146. public static final String BIOSPECIMEN_PROCESSING_ALIQUOTING = "Aliquoting";
  147. public static final String SUBJECTUIDSEQ_STUDYNAMEID = "studyNameId";
  148. public static final String AUTO_GENERATED = "Auto-generated";
  149. public static final String MANUAL_UIDS_NEXT_RELEASE = "Manual UIDs next release";
  150. // UploadVO
  151. public static final String UPLOADVO_UPLOAD_ID = "upload.id";
  152. public static final String UPLOADVO_UPLOAD_COLLECTION_UPLOAD = "upload.collectionUpload";
  153. public static final String UPLOADVO_UPLOAD_COLLECTION_UPLOAD_ID = "upload.collectionUpload.id";
  154. public static final String UPLOADVO_UPLOAD_COLLECTION_UPLOAD_COLLECTION = "upload.collectionUpload.collection";
  155. public static final String UPLOADVO_UPLOAD_COLLECTION_UPLOAD_COLLECTION_ID = "upload.collectionUpload.collection.id";
  156. public static final String UPLOADVO_UPLOAD_COLLECTION_UPLOAD_COLLECTION_NAME = "upload.collectionUpload.collection.name";
  157. public static final String UPLOADVO_UPLOAD_FILENAME = "upload.filename";
  158. public static final String UPLOADVO_UPLOAD_FILE_FORMAT = "upload.fileFormat";
  159. public static final String UPLOADVO_UPLOAD_FILE_FORMAT_ID = "upload.fileFormat.id";
  160. public static final String UPLOADVO_UPLOAD_FILE_FORMAT_NAME = "upload.fileFormat.name";
  161. public static final String UPLOADVO_UPLOAD_PAYLOAD = "upload.payload";
  162. public static final String UPLOADVO_UPLOAD_DELIMITER_TYPE = "upload.delimiterType";
  163. public static final String UPLOADVO_UPLOAD_UPLOAD_TYPE = "upload.uploadType";
  164. public static final String UPLOADVO_UPLOAD_USER = "upload.user";
  165. public static final String UPLOADVO_UPLOAD_USER_ID = "upload.userId";
  166. public static final String UPLOADVO_UPLOAD_INSERT_TIME = "upload.insertTime";
  167. public static final String UPLOADVO_UPLOAD_UPDATE_USER = "upload.user";
  168. public static final String UPLOADVO_UPLOAD_UPDATE_USER_ID = "upload.user.id";
  169. public static final String UPLOADVO_UPLOAD_UPDATE_TIME = "upload.updateTime";
  170. public static final String UPLOADVO_UPLOAD_CHECKSUM = "upload.checksum";
  171. public static final String UPLOADVO_UPLOAD_START_TIME = "upload.startTime";
  172. public static final String UPLOADVO_UPLOAD_FINISH_TIME = "upload.finishTime";
  173. public static final String UPLOADVO_UPLOAD_UPLOAD_STATUS_NAME = "upload.uploadStatus.name";
  174. public static final String UPLOADVO_UPLOAD_UPLOAD_REPORT = "upload.uploadReport";
  175. public static final String FILE_FORMAT = "fileFormat";
  176. public static final String FILE_FORMAT_ID = "id";
  177. public static final String FILE_FORMAT_NAME = "name";
  178. public static final String UPLOAD = "upload";
  179. public static final String UPLOAD_ID = "id";
  180. public static final String UPLOAD_STUDY = "study";
  181. public static final String UPLOAD_FILE_FORMAT = "fileFormat";
  182. public static final String UPLOAD_DELIMITER_TYPE = "delimiterType";
  183. public static final String UPLOAD_FILENAME = "filename";
  184. public static final String UPLOAD_PAYLOAD = "payload";
  185. public static final String UPLOAD_USER = "user";
  186. public static final String UPLOAD_CHECKSUM = "checksum";
  187. public static final String DELIMITER_TYPE_ID = "id";
  188. public static final String UPLOAD_TYPE_ID = "id";
  189. public static final String DELIMITER_TYPE_NAME = "name";
  190. public static final String UPLOAD_TYPE_NAME = "name";
  191. public static final String UPLOAD_TYPE_FOR_BIOSPECIMEN_CUSTOM = "Custom Data to be associated with a biospecimen";//or for now use db instead as that is what is used elsewhere??
  192. public static final String UPLOAD_TYPE_FOR_BIOSPECIMEN_INVENTARY = "Biospecimen Inventory";
  193. public static final String UPLOAD_TYPE_FOR_BIOCOLLECTION = "Biocollection";
  194. public static final String UPLOAD_TYPE_FOR_BIOSPECIMEN = "Biospecimen";
  195. // Exception messages
  196. public static final String IO_EXCEPTION = "IOException: Input error. ";
  197. public static final String FILE_FORMAT_EXCEPTION = "File Format Exception: Input error. ";
  198. public static final String ARK_SYSTEM_EXCEPTION = "General ARK System Exception: ";
  199. public static final String ARK_BASE_EXCEPTION = "Base ARK System Exception: ";
  200. /* Custom Field */
  201. public static final String CUSTOM_FIELD_FIELD_TITLE = "customField.fieldTitle";
  202. public static final String CUSTOM_FIELD_FIELD_NAME = "customField.name";
  203. public static final String SEARCH_RESULT_LIST = "searchResultList";
  204. public static final String CUSTOM_FIELD_LABEL = "fieldTitleLabel";
  205. public static final String DOWNLOAD_FILE = "downloadFile";
  206. public static final String DELETE_FILE = "deleteFile";
  207. public static final String STUDY_STATUS_COMPLETED = "Completed";
  208. public static final String STUDY_STATUS_REQUESTED = "Requested";
  209. public static final String STUDY_STATUS_RECEIVED = "Received";
  210. public static final String WMC_RECIEVED = "wmc-received";
  211. public static final String WMC_COMPLETED = "wmc-completed";
  212. public static final String WMC_REQUESTED = "wmc-requested";
  213. public static final String WMC_PLAIN = "wmc-plain";
  214. public static final String SUBJECT_FILE_ID = "subjectFile.id";
  215. public static final String SUBJECT_FILE_FILENAME = "subjectFile.filename";
  216. public static final String SUBJECT_FILE_STUDY_COMP = "subjectFile.studyComp";
  217. public static final String SUBJECT_FILE_USER_ID = "subjectFile.userId";
  218. public static final String SUBJECT_FILE_COMMENTS = "subjectFile.comments";
  219. /* General ones */
  220. public static final String PAGE_SEARCH = "page.search";
  221. public static final String PAGE_NEW = "page.new";
  222. public static final String CANCEL_KEY = "cancelKey";
  223. public static final String SAVE_KEY = "saveKey";
  224. public static final String DELETE_KEY = "deleteKey";
  225. public static final String STUDY = "study";
  226. }