Search in sources :

Example 6 with PageDescriptor

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();
}
Also used : PageDescriptor(com.evolveum.midpoint.authentication.api.authorization.PageDescriptor)

Aggregations

PageDescriptor (com.evolveum.midpoint.authentication.api.authorization.PageDescriptor)6 AuthorizationAction (com.evolveum.midpoint.authentication.api.authorization.AuthorizationAction)3 PolyString (com.evolveum.midpoint.prism.polystring.PolyString)1 WebPage (org.apache.wicket.markup.html.WebPage)1