mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Rename "clientIdentifier" to "clientId" almost everywhere
It's best to be consistent and use the same thing everywhere. "clientId" was already used in more places and is shorter and no more ambiguous, so it's the logical one to win out. Note that this CL is almost solely a big Eclipse-assisted refactoring. There are two places that I did not change clientIdentifier -- the actual entity field on Registrar (though I did change all getters and setters), and the name of a column on the exported registrar spreadsheet. Both would require data migrations. Also fixes a few minor nits discovered in touched files, including an incorrect test in OfyFilterTest.java and some superfluous uses of String.format() when calling checkArgument(). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=133956465
This commit is contained in:
parent
0564bcdbc9
commit
4813ed392b
62 changed files with 208 additions and 200 deletions
|
@ -194,7 +194,7 @@ public final class SyncGroupMembersAction implements Runnable {
|
|||
long totalRemoved = 0;
|
||||
for (final RegistrarContact.Type type : RegistrarContact.Type.values()) {
|
||||
groupKey = getGroupEmailAddressForContactType(
|
||||
registrar.getClientIdentifier(), type, publicDomainName);
|
||||
registrar.getClientId(), type, publicDomainName);
|
||||
Set<String> currentMembers = groupsConnection.getMembersOfGroup(groupKey);
|
||||
Set<String> desiredMembers = FluentIterable.from(registrarContacts)
|
||||
.filter(new Predicate<RegistrarContact>() {
|
||||
|
@ -218,7 +218,7 @@ public final class SyncGroupMembersAction implements Runnable {
|
|||
}
|
||||
}
|
||||
logger.infofmt("Successfully synced contacts for registrar %s: added %d and removed %d",
|
||||
registrar.getClientIdentifier(),
|
||||
registrar.getClientId(),
|
||||
totalAdded,
|
||||
totalRemoved);
|
||||
} catch (IOException e) {
|
||||
|
@ -227,7 +227,7 @@ public final class SyncGroupMembersAction implements Runnable {
|
|||
// job will run within an hour anyway and effectively resume where it left off if this was a
|
||||
// transient error.
|
||||
String msg = String.format("Couldn't sync contacts for registrar %s to group %s",
|
||||
registrar.getClientIdentifier(), groupKey);
|
||||
registrar.getClientId(), groupKey);
|
||||
throw new RuntimeException(msg, e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue