1
0
mirror of https://github.com/google/nomulus synced 2026-01-05 13:07:04 +00:00

RDAP: Document RDAP guidance

Updates the RDAP code to reflect guidance and confirmation received from various mailing lists.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=129254894
This commit is contained in:
mountford
2016-08-03 13:58:27 -07:00
committed by Ben McIlwain
parent 6fc7eb40c6
commit eb792e89ef
5 changed files with 86 additions and 0 deletions

View File

@@ -66,6 +66,8 @@ public class RdapEntityAction extends RdapActionBase {
wasValidKey = true;
Key<ContactResource> contactKey = Key.create(ContactResource.class, pathSearchString);
ContactResource contactResource = ofy().load().key(contactKey).now();
// As per Andy Newton on the regext mailing list, contacts by themselves have no role, since
// they are global, and might have different roles for different domains.
if ((contactResource != null) && clock.nowUtc().isBefore(contactResource.getDeletionTime())) {
return RdapJsonFormatter.makeRdapJsonForContact(
contactResource,