Add RDAP support for deleted domains and filtering by registrar

This CL adds the functionality for domain searches. Entities and nameservers have already been handled by previous CLs.

Deleted items can only be seen by admins, and by registrars viewing their own deleted items.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=172097922
This commit is contained in:
mountford 2017-10-13 08:07:54 -07:00 committed by jianglai
parent 048ae4b4ba
commit 03087ddc85
9 changed files with 769 additions and 281 deletions

View file

@ -219,7 +219,7 @@ public class RdapNameserverSearchAction extends RdapActionBase {
shouldIncludeDeleted()
? (RESULT_SET_SIZE_SCALING_FACTOR * (rdapResultSetMaxSize + 1))
: (rdapResultSetMaxSize + 1));
return makeSearchResults(getMatchingResources(query, now), now);
return makeSearchResults(getMatchingResources(query, shouldIncludeDeleted(), now), now);
}
/** Searches for nameservers by IP address, returning a JSON array of nameserver info maps. */
@ -234,7 +234,7 @@ public class RdapNameserverSearchAction extends RdapActionBase {
shouldIncludeDeleted()
? (RESULT_SET_SIZE_SCALING_FACTOR * (rdapResultSetMaxSize + 1))
: (rdapResultSetMaxSize + 1));
return makeSearchResults(getMatchingResources(query, now), now);
return makeSearchResults(getMatchingResources(query, shouldIncludeDeleted(), now), now);
}
/**