//FIXME: use maxResults from... config instead of hardcoding 100?
l =
m_fieldSearch
.findObjects(s_headerAndDCFields,
100,
new FieldSearchQuery(Condition
.getConditions("pid='"
+ pid
+ "' dcmDate>'2000-01-01'")))
.objectFieldsList();
} catch (ServerException se) {
throw new RepositoryException(se.getClass().getName() + ": "
+ se.getMessage());
}
if (l.size() > 0) {
ObjectFields f = (ObjectFields) l.get(0);
return new SimpleRecord(getHeader(f), getDCXML(f), s_emptySet);
} else {
// see if it exists
try {
l =
m_fieldSearch
.findObjects(new String[] {"pid"},
1,
new FieldSearchQuery(Condition
.getConditions("pid='"
+ pid + "'")))
.objectFieldsList();
} catch (ServerException se) {
throw new RepositoryException(se.getClass().getName() + ": "