package org.ovirt.engine.ui.webadmin.widget; /** * Widgets that implement this interface have a user access policy associated with them. */ public interface HasAccess { /** * Checks whether or not the current user has the right to access this widget. * * @return {@code true} if the user can access this widget, {@code false} otherwise. */ boolean isAccessible(); /** * Sets the accessibility of the widget for the current user. * * @param accessible * {@code true} if the user can access this widget, {@code false} otherwise. */ void setAccessible(boolean accessible); }