RM-2217 Allow null as a filter value.

Also add a few unit tests for the file.

+review RM-96

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@106034 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tom Page
2015-06-12 13:19:08 +00:00
parent 7c62bef29e
commit ac56441fc3
2 changed files with 81 additions and 2 deletions

View File

@@ -147,11 +147,12 @@ public class UserSecurityClearanceGet extends AbstractRmWebScript
* Gets the name filter from the webscript request
*
* @param req {@link WebScriptRequest} The webscript request
* @return {@link String} The name filter (can be null)
* @return {@link String} The name filter from the request (or the empty string if the request doesn't contain one).
*/
private String getNameFilter(WebScriptRequest req)
{
return req.getParameter(NAME_FILTER);
String nameFilter = req.getParameter(NAME_FILTER);
return (nameFilter != null ? nameFilter : "");
}
/**