google-nomulus/java/google/registry/rdap
guyben 1d621bd14d Allow admins read-only access to all registrars
We want to be able to view / test / debug how the registrar console looks for our clients.

However, we don't want to accidentally change the data for registrars, especially in a "non-accountable" way (where we later don't know who did that change)

So we do 2 things here:

- Add a "mode" (read-only and read-write) to the getRegistrarForUser function. We set it according to what we want to do with the registrar. Currently, read-write is only requested for the "update" RegistrarSetting action. Admins will have read-only access to all registrars, but read-write access only to the "admin registrar" (or whatever registrar they are contacts for).

- Support an undocumented "clientId=XXX" query param that replaces the "guessClientIdForUser" function in the original page load. We can then set it when we want to view a different account.

We also change the navigation links on the HTML page to preserve the query.

-------------------------

This might be used also for a better user experience for our clients, especially those with multiple "clientId"s (some registrar entities have multiple "registrar" objects)

Currently, they have to have a separate user for each clientId, and only have one user allowed which has both read and write permissions.

Using this change, we can give them the possibility to add users on their own, some with read-only access (to view billing information without being able to change anything), and use a single user for all their clientIds.

-------------------------

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=215480610
2018-10-03 12:10:28 -04:00
..
BUILD Clean up annotation imports in BUILD files 2018-06-27 15:28:53 -04:00
RdapActionBase.java Allow admins read-only access to all registrars 2018-10-03 12:10:28 -04:00
RdapAuthorization.java Remove unnecessary generic type arguments 2017-11-21 18:17:31 -05:00
RdapAutnumAction.java Initial, easy changes to support later addition of RDAP metrics 2017-11-07 17:39:05 -05:00
RdapDomainAction.java Initial, easy changes to support later addition of RDAP metrics 2017-11-07 17:39:05 -05:00
RdapDomainSearchAction.java Increase RDAP unit test speed 2018-06-27 15:28:53 -04:00
RdapEntityAction.java Remove unnecessary generic type arguments 2017-11-21 18:17:31 -05:00
RdapEntitySearchAction.java Add support for RDAP retrieval of all registrars 2018-01-19 14:45:15 -05:00
RdapHelpAction.java Remove unnecessary generic type arguments 2017-11-21 18:17:31 -05:00
RdapIcannStandardInformation.java Move RDAP boilerplate from remarks to notices 2018-05-05 23:47:47 -04:00
RdapIpAction.java Initial, easy changes to support later addition of RDAP metrics 2017-11-07 17:39:05 -05:00
RdapJsonFormatter.java RDAP: Add registrar entities to nameserver query results 2018-09-08 00:08:29 -04:00
RdapMetrics.java Move metrics dependencies to artifacts under Maven groupId com.google.monitoring-client 2018-01-04 17:12:35 -05:00
RdapModule.java Add RDAP search support for only contacts or only registrars 2018-01-19 14:29:54 -05:00
RdapNameserverAction.java Initial, easy changes to support later addition of RDAP metrics 2017-11-07 17:39:05 -05:00
RdapNameserverSearchAction.java Add next page navigation for RDAP entity searches 2017-12-27 10:53:30 -05:00
RdapResultSet.java Add RDAP metric class 2017-11-21 18:20:26 -05:00
RdapSearchActionBase.java Add next page navigation for RDAP entity searches 2017-12-27 10:53:30 -05:00
RdapSearchPattern.java RDAP: Allow domain and nameserver queries with no initial string under certain circumstances 2017-07-10 11:16:03 -04:00
RdapSearchResults.java Add next page navigation for RDAP nameserver searches 2017-12-27 10:44:05 -05:00
RdapUtils.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00