use of org.apache.commons.lang3.builder.EqualsBuilder in project cas by apereo.
the class AbstractRegisteredServiceAttributeReleasePolicy method equals.
@Override
public boolean equals(final Object o) {
if (o == null) {
return false;
}
if (this == o) {
return true;
}
if (!(o instanceof AbstractRegisteredServiceAttributeReleasePolicy)) {
return false;
}
final AbstractRegisteredServiceAttributeReleasePolicy that = (AbstractRegisteredServiceAttributeReleasePolicy) o;
final EqualsBuilder builder = new EqualsBuilder();
return builder.append(this.registeredServiceAttributeFilter, that.registeredServiceAttributeFilter).append(this.authorizedToReleaseCredentialPassword, that.authorizedToReleaseCredentialPassword).append(this.authorizedToReleaseProxyGrantingTicket, that.authorizedToReleaseProxyGrantingTicket).append(this.principalAttributesRepository, that.principalAttributesRepository).append(this.excludeDefaultAttributes, that.excludeDefaultAttributes).isEquals();
}
use of org.apache.commons.lang3.builder.EqualsBuilder in project cas by apereo.
the class DefaultHandlerResult method equals.
@Override
public boolean equals(final Object obj) {
if (!(obj instanceof DefaultHandlerResult)) {
return false;
}
if (obj == this) {
return true;
}
final DefaultHandlerResult other = (DefaultHandlerResult) obj;
final EqualsBuilder builder = new EqualsBuilder();
builder.append(this.handlerName, other.handlerName);
builder.append(this.credentialMetaData, other.credentialMetaData);
builder.append(this.principal, other.principal);
builder.append(CollectionUtils.wrap(this.warnings), CollectionUtils.wrap(other.warnings));
return builder.isEquals();
}
use of org.apache.commons.lang3.builder.EqualsBuilder in project cas by apereo.
the class AbstractWebApplicationService method equals.
@Override
public boolean equals(final Object obj) {
if (obj == null) {
return false;
}
if (obj == this) {
return true;
}
if (obj.getClass() != getClass()) {
return false;
}
final AbstractWebApplicationService rhs = (AbstractWebApplicationService) obj;
final EqualsBuilder builder = new EqualsBuilder();
builder.append(this.id, rhs.id).append(this.originalUrl, rhs.originalUrl).append(this.artifactId, rhs.artifactId).append(this.principal, rhs.principal).append(this.loggedOutAlready, rhs.loggedOutAlready).append(this.format, rhs.format);
return builder.isEquals();
}
use of org.apache.commons.lang3.builder.EqualsBuilder in project cas by apereo.
the class AbstractRegisteredService method equals.
@Override
public boolean equals(final Object o) {
if (o == null) {
return false;
}
if (this == o) {
return true;
}
if (!(o instanceof AbstractRegisteredService)) {
return false;
}
final AbstractRegisteredService that = (AbstractRegisteredService) o;
final EqualsBuilder builder = new EqualsBuilder();
return builder.append(this.proxyPolicy, that.proxyPolicy).append(this.evaluationOrder, that.evaluationOrder).append(this.description, that.description).append(this.name, that.name).append(this.serviceId, that.serviceId).append(this.theme, that.theme).append(this.usernameAttributeProvider, that.usernameAttributeProvider).append(this.logoutType, that.logoutType).append(this.attributeReleasePolicy, that.attributeReleasePolicy).append(this.accessStrategy, that.accessStrategy).append(this.logo, that.logo).append(this.publicKey, that.publicKey).append(this.logoutUrl, that.logoutUrl).append(this.requiredHandlers, that.requiredHandlers).append(this.proxyPolicy, that.proxyPolicy).append(this.properties, that.properties).append(this.multifactorPolicy, that.multifactorPolicy).append(this.informationUrl, that.informationUrl).append(this.privacyUrl, that.privacyUrl).isEquals();
}
use of org.apache.commons.lang3.builder.EqualsBuilder in project cas by apereo.
the class DuoCredential method equals.
@Override
public boolean equals(final Object obj) {
if (!(obj instanceof DuoCredential)) {
return false;
}
if (obj == this) {
return true;
}
final DuoCredential other = (DuoCredential) obj;
final EqualsBuilder builder = new EqualsBuilder();
builder.append(this.username, other.getUsername());
return builder.isEquals();
}
Aggregations