org.apereo.cas.consent.ConsentableAttributeBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cas-server-support-consent-api Show documentation
Show all versions of cas-server-support-consent-api Show documentation
cas-server-support-consent-api
package org.apereo.cas.consent;
import org.springframework.core.Ordered;
/**
* This is {@link ConsentableAttributeBuilder}.
*
* @author Misagh Moayyed
* @since 6.2.0
*/
@FunctionalInterface
public interface ConsentableAttributeBuilder extends Ordered {
/**
* No op consentable attribute builder.
*
* @return the consentable attribute builder
*/
static ConsentableAttributeBuilder noOp() {
return attribute -> attribute;
}
/**
* Build.
*
* @param attribute the attribute
* @return the cas consentable attribute
*/
CasConsentableAttribute build(CasConsentableAttribute attribute);
@Override
default int getOrder() {
return Ordered.LOWEST_PRECEDENCE;
}
/**
* Gets name.
*
* @return the name
*/
default String getName() {
return getClass().getSimpleName();
}
}