Issue #1682 Fixed registry query that prevented deletions of subscriptions

Change-Id: I92da9f43cfb86711d6238c07a86cad94742777f2

Former-commit-id: 22c8ed7add [formerly 22c8ed7add [formerly b3ef0276414f5009f79e55e3b08c58daeeb56e26]]
Former-commit-id: 3a3fb00f78
Former-commit-id: c07e7fac10
This commit is contained in:
Benjamin Phillippe 2013-10-23 13:03:25 -05:00
parent 7aa870767f
commit 5538c94240

View file

@ -34,6 +34,7 @@ import oasis.names.tc.ebxml.regrep.xsd.rim.v4.QueryType;
import oasis.names.tc.ebxml.regrep.xsd.rim.v4.RegistryObjectType;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
import com.raytheon.uf.common.util.CollectionUtil;
import com.raytheon.uf.edex.registry.ebxml.dao.RegistryObjectDao;
import com.raytheon.uf.edex.registry.ebxml.exception.EbxmlRegistryException;
import com.raytheon.uf.edex.registry.ebxml.services.query.QueryConstants;
@ -89,6 +90,7 @@ import com.raytheon.uf.edex.registry.ebxml.util.EbxmlExceptionUtil;
* Apr 23, 2013 1910 djohnson Don't allow NPE on registry object list, remove non ANSI Javadoc.
* 5/21/2013 2022 bphillip Set return type on call to findAssociations
* 10/8/2013 1682 bphillip Refactored querying
* 10/23/2013 1682 bphillip Returns empty query result if no ids were found
*
* </pre>
*
@ -163,6 +165,9 @@ public class FindAssociatedObjects extends RegistryQueryPlugin {
}
try {
if (CollectionUtil.isNullOrEmpty(ids)) {
return new QueryResponse();
}
return createResponse(registryObjectDao.getById(ids));
} catch (EbxmlRegistryException e) {
throw EbxmlExceptionUtil.createMsgRegistryException(