mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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 : "");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user