public boolean isAnonymous() { return this.equals(ANONYMOUS); }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof GoUserPrinciple)) return false; GoUserPrinciple that = (GoUserPrinciple) o; if (authorities != null ? !authorities.equals(that.authorities) : that.authorities != null) return false; if (displayName != null ? !displayName.equals(that.displayName) : that.displayName != null) return false; return username != null ? username.equals(that.username) : that.username == null; }
public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } StageResultMessage that = (StageResultMessage) o; if (cancelledBy != null ? !cancelledBy.equals(that.cancelledBy) : that.cancelledBy != null) { return false; } if (event != that.event) { return false; } if (stageIdentifier != null ? !stageIdentifier.equals(that.stageIdentifier) : that.stageIdentifier != null) { return false; } return true; }
public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } StageStatusMessage that = (StageStatusMessage) o; if (result != that.result) { return false; } if (!stageIdentifier.equals(that.stageIdentifier)) { return false; } if (stageState != that.stageState) { return false; } if (userName != null ? !userName.equals(that.userName) : that.userName != null) { return false; } return true; }
public EmailBodyGenerator(MaterialRevisions materialRevisions, Username cancelledBy, SystemEnvironment systemEnvironment, StageIdentifier stageIdentifier) { this.systemEnvironment = systemEnvironment; this.stageIdentifier = stageIdentifier; emailBody = new StringBuilder(); if (!Username.BLANK.equals(cancelledBy)) { emailBody.append("The stage was cancelled by ").append(CaseInsensitiveString.str(cancelledBy.getUsername())).append(".\n"); } addStageLink(); addMaterialRevisions(materialRevisions); }