Class ManageUsersPageMenuItem
- java.lang.Object
-
- de.tudarmstadt.ukp.clarin.webanno.ui.core.users.ManageUsersPageMenuItem
-
-
Constructor Summary
Constructors Constructor Description ManageUsersPageMenuItem()
-
Method Summary
Modifier and Type Method Description boolean
applies()
Only admins and project managers can see this page.java.lang.String
getIcon()
java.lang.String
getLabel()
java.lang.Class<? extends org.apache.wicket.Page>
getPageClass()
java.lang.String
getPath()
boolean
isDirectAccessAllowed()
WicketApplicationBase
introduces a custom authorization service which prevents access to a page if the user is not able to see the corresponding menu item (cf.
-
-
-
Method Detail
-
applies
public boolean applies()
Only admins and project managers can see this page.
-
getPageClass
public java.lang.Class<? extends org.apache.wicket.Page> getPageClass()
- Specified by:
getPageClass
in interfaceMenuItem
-
isDirectAccessAllowed
public boolean isDirectAccessAllowed()
Description copied from interface:MenuItem
WicketApplicationBase
introduces a custom authorization service which prevents access to a page if the user is not able to see the corresponding menu item (cf.MenuItem.applies()
). However, in some cases, it may be necessary to grant the user direct access to a page even if the user does not see the corresponding menu item. For example, users should not see the menu item for the user management page, but they may access this page directly in order to edit their own profile. In such cases, this method should returntrue
. Use this very carefully and ensure that the proper access checks are performed on the target page.- Specified by:
isDirectAccessAllowed
in interfaceMenuItem
-
-