lukefitzwolfgang / icatproject

Automatically exported from code.google.com/p/icatproject
0 stars 0 forks source link

Parameter search #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With Parameter searching for investigations implemented we now need a way of 
finding the parameters to search. Currently the only method is 

listParameters(String sessionId);

which is limited to 200 and cannot be paged.

We need methods to get parameters: I suggest 

1) Paging version of the listParameters method
2) getParametersByName(String sessionId, String name) which searches for 
parameters by name. I suggest it is very eager (i.e. %name% in searches) and 
case insensitive.
3) What about getParametersByUnits(String sessionId, String units), so for 
example I can find all parameters measured in Kelvin - again should be eager 
and case insensitive)

Original issue reported on code.google.com by tom.grif...@stfc.ac.uk on 29 Sep 2010 at 10:16

GoogleCodeExporter commented 9 years ago
Hi,

you are right. listParameters(sid) is not enough.

It could be useful also to include methods like:

 · getParameterByNameUnits (String sessionId, String name, String units).

 · getParameterByAdvanced (String sessionId, AdvanedDetailParameter p). In AdvanedDetail you can select search mode  (NAME_CONTAINS, NAME_EQUAL ..., UNITS_START_WITH, UNITS_END_WITH,...)

Original comment by cruzcruz...@gmail.com on 6 Oct 2010 at 2:12

GoogleCodeExporter commented 9 years ago
HI Najor,
That sounds good to me.
Searching should be case insensitive I think.

Are you OK to implement this functionality?

Original comment by tom.grif...@stfc.ac.uk on 13 Oct 2010 at 11:52

GoogleCodeExporter commented 9 years ago
Hi Tom,

Yes. I'd try to add this funcionality and commit the changes before our next 
meeting.

Best regards.
Najor

Original comment by cruzcruz...@gmail.com on 19 Oct 2010 at 11:56

GoogleCodeExporter commented 9 years ago
Hi Tom,

The changes are made. If you can take a look at it'd be of great help.

Thanks.

Original comment by cruzcruz...@gmail.com on 21 Oct 2010 at 2:39

GoogleCodeExporter commented 9 years ago
Fixed in 4.0

Original comment by dr.s.m.f...@gmail.com on 5 Apr 2012 at 9:14