forked from NCIP/nci-term-browser
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NCITERM-643] Name search failed on diacritics.
[NCITERM-644] Reduce SQL injection AppScan delays.
- Loading branch information
kimong
committed
Feb 19, 2015
1 parent
77f96db
commit c13cbc2
Showing
10 changed files
with
620 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
132 changes: 132 additions & 0 deletions
132
software/ncitbrowser/src/java/gov/nih/nci/evs/browser/common/HTTPParameterConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
package gov.nih.nci.evs.browser.common; | ||
|
||
import java.util.*; | ||
|
||
public class HTTPParameterConstants { | ||
|
||
public static final String[] HTTP_REQUEST_PARAMETER_NAMES = { | ||
"acceptedLicenses", | ||
"action", | ||
"adv_search_algorithm", | ||
"adv_search_source", | ||
"adv_search_type", | ||
"algorithm", | ||
"answer", | ||
"b", | ||
"captcha_option", | ||
"cart_code", | ||
"cart_dictionary", | ||
"cart_version", | ||
"checked_vocabularies", | ||
"code", | ||
"content_page", | ||
"content_title", | ||
"data_type", | ||
"dictionary", | ||
"dir", | ||
"direction", | ||
"display_app_logo", | ||
"emailaddress", | ||
"format", | ||
"from_download", | ||
"home", | ||
"id", | ||
"initial_search", | ||
"key", | ||
"m", | ||
"matchText", | ||
"message", | ||
"multiplematches", | ||
"n", | ||
"nav_type", | ||
"ncbo_id", | ||
"ns", | ||
"ontology_display_name", | ||
"ontology_list_str", | ||
"ontology_node_id", | ||
"ontology_version", | ||
"opt", | ||
"page_number", | ||
"partial_checked_vocabularies", | ||
"prop", | ||
"referer", | ||
"refresh", | ||
"rel", | ||
"rel_search_association", | ||
"rel_search_direction", | ||
"rel_search_rela", | ||
"rela", | ||
"report", | ||
"resultsPerPage", | ||
"root_vsd_uri", | ||
"sab", | ||
"schema", | ||
"scheme", | ||
"scheme_and_version", | ||
"searchTarget", | ||
"searchTerm", | ||
"selected_vocabularies", | ||
"selectedOntology", | ||
"selectProperty", | ||
"selectPropertyType", | ||
"selectSearchOption", | ||
"selectValueSetSearchOption", | ||
"single_mapping_search", | ||
"sortBy", | ||
"source", | ||
"subject", | ||
"text", | ||
"type", | ||
"uri", | ||
"value_set_home", | ||
"value_set_tab", | ||
"valueset", | ||
"valueset_search_algorithm", | ||
"version", | ||
"view", | ||
"vsd_uri", | ||
"vse", | ||
"javax.faces.ViewState", | ||
"ontology_list", | ||
"ontology_source", | ||
"searchTerm:search.x", | ||
"searchTerm:search.y", | ||
"searchTerm:multiple_search.x", | ||
"searchTerm:multiple_search.y", | ||
"advancedSearchForm", | ||
"advancedSearchForm:adv_search.x", | ||
"advancedSearchForm:adv_search.y", | ||
"valueSetSearchForm", | ||
"valueSetSearchForm:valueset_search.x", | ||
"valueSetSearchForm:valueset_search.y", | ||
"value_set_home", | ||
"valueset_search_algorithm" | ||
}; | ||
|
||
public static final List HTTP_REQUEST_PARAMETER_NAME_LIST = Arrays.asList(HTTP_REQUEST_PARAMETER_NAMES); | ||
|
||
public static final String[] adv_search_algorithm_values = new String[] {"contains", "exactMatch", "lucene", "startsWith"}; | ||
public static final String[] algorithm_values = new String[] {"contains", "exactMatch", "startsWith"}; | ||
public static final String[] direction_values = new String[] {"source", "target"}; | ||
public static final String[] searchTarget_values = new String[] {"codes", "names", "properties", "relationships"}; | ||
public static final String[] selectSearchOption_values = new String[] {"Code", "Name", "Property", "Relationship"}; | ||
public static final String[] selectValueSetSearchOption_values = new String[] {"Code", "CodingScheme", "Name", "Source"}; | ||
public static final String[] valueset_search_algorithm_values = new String[] {"contains", "exactMatch", "startsWith"}; | ||
|
||
public static List adv_search_algorithm_value_list = Arrays.asList(adv_search_algorithm_values); | ||
public static List algorithm_value_list = Arrays.asList(algorithm_values); | ||
public static List direction_value_list = Arrays.asList(direction_values); | ||
public static List searchTarget_value_list = Arrays.asList(searchTarget_values); | ||
public static List selectSearchOption_value_list = Arrays.asList(selectSearchOption_values); | ||
public static List selectValueSetSearchOption_value_list = Arrays.asList(selectValueSetSearchOption_values); | ||
public static List valueset_search_algorithm_value_list = Arrays.asList(valueset_search_algorithm_values); | ||
|
||
/** | ||
* Constructor | ||
*/ | ||
private HTTPParameterConstants() { | ||
// Prevent class from being explicitly instantiated | ||
} | ||
|
||
|
||
} // Class HTTPParameterConstants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.