Class ManageUsersPageMenuItem

  • All Implemented Interfaces:
    MenuItem

    @Component
    public class ManageUsersPageMenuItem
    extends java.lang.Object
    implements MenuItem
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ManageUsersPageMenuItem

        public ManageUsersPageMenuItem()
    • Method Detail

      • getPath

        public java.lang.String getPath()
        Specified by:
        getPath in interface MenuItem
      • getIcon

        public java.lang.String getIcon()
        Specified by:
        getIcon in interface MenuItem
      • getLabel

        public java.lang.String getLabel()
        Specified by:
        getLabel in interface MenuItem
      • applies

        public boolean applies()
        Only admins and project managers can see this page.
        Specified by:
        applies in interface MenuItem
      • getPageClass

        public java.lang.Class<? extends org.apache.wicket.Page> getPageClass()
        Specified by:
        getPageClass in interface MenuItem
      • 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 return true. Use this very carefully and ensure that the proper access checks are performed on the target page.
        Specified by:
        isDirectAccessAllowed in interface MenuItem