use of com.evolveum.midpoint.authentication.api.authorization.PageDescriptor in project midpoint by Evolveum.
the class MainMenuItem method checkExperimental.
private boolean checkExperimental(boolean experimentalFeaturesEnabled) {
if (experimentalFeaturesEnabled) {
return true;
}
Class<? extends WebPage> clazz = getPageClass();
if (clazz == null) {
return true;
}
PageDescriptor desc = clazz.getAnnotation(PageDescriptor.class);
if (desc == null) {
return true;
}
return !desc.experimental();
}
Aggregations