Updated comments to filters
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@167178 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
427bf23e5c
commit
a05ca4c714
|
@ -107,7 +107,7 @@ public class GeonetworkRequestDecoder {
|
|||
* MODE must be: {@link MODE}
|
||||
* SCOPE must be: ROOT|VO|VRE or a GCUBETOKEN
|
||||
* VISIBILITY must be: {@link VISIBILITY}
|
||||
* OWNER (is optional): filter by owner
|
||||
* FILTERS (is optional): a filter as key/value read from GN configurations
|
||||
* @param pathWithoutGN the path without Geonetwork base URL
|
||||
*
|
||||
* @return the geonetwork request criteria
|
||||
|
@ -124,7 +124,7 @@ public class GeonetworkRequestDecoder {
|
|||
GeonetworkRequestCriteria requestCriteria = new GeonetworkRequestCriteria();
|
||||
|
||||
if(params.length < 3){
|
||||
throw new BadRequestException("Bad request. Read the request "+pathWithoutGN+". You must pass a valid request like [GEONETWORK_BASE_URL]/SCOPE/MODE/VISIBILITY/OWNER");
|
||||
throw new BadRequestException("Bad request. Read the request "+pathWithoutGN+". You must pass a valid request like [GEONETWORK_BASE_URL]/SCOPE/MODE/VISIBILITY/FILTERS");
|
||||
}
|
||||
|
||||
//SCOPE or gcube-token
|
||||
|
@ -187,7 +187,7 @@ public class GeonetworkRequestDecoder {
|
|||
throw new BadRequestException("The parameter VISIBILITY is null or empty. You must pass a valid VISIBILITY parameter as "+VISIBILITY.PRV + " or "+VISIBILITY.PUB +" as third parameter");
|
||||
|
||||
|
||||
//OWNER
|
||||
//FILTER
|
||||
if(params.length > 3 && params[3]!=null && params[3]!=GeonetworkRequestFilterParameters.REQUEST_DELIMITIER){
|
||||
filters = new HashMap<String, String>(1);
|
||||
filters.put(params[3], "");
|
||||
|
|
Loading…
Reference in New Issue