de.otto.edison.togglz.activation.HeaderOptOutStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of edison-togglz Show documentation
Show all versions of edison-togglz Show documentation
Status library of the edison-microservice project.
package de.otto.edison.togglz.activation;
import org.togglz.core.activation.Parameter;
import org.togglz.core.repository.FeatureState;
import org.togglz.core.user.FeatureUser;
import org.togglz.servlet.activation.HeaderActivationStrategy;
public class HeaderOptOutStrategy extends EdisonHeaderActivationStrategy {
static final String ID = "headerOptOut";
@Override
public String getId() {
return ID;
}
@Override
public String getName() {
return "HeaderOptOut";
}
@Override
public boolean isActive(FeatureState featureState, FeatureUser user) {
return !super.isActive(featureState, user);
}
@Override
public Parameter[] getParameters() {
return new Parameter[0];
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy