Interface AuthorizationCheck<C extends AuthorizationCheck>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      C denied​(org.uberfire.mvp.Command onDenied)
      Specifies the command instance to execute in case the check result is denied.
      C granted​(org.uberfire.mvp.Command onGranted)
      Specifies the command instance to execute in case the check result is granted.
      boolean result()
      Get the check result value
    • Method Detail

      • granted

        C granted​(org.uberfire.mvp.Command onGranted)
        Specifies the command instance to execute in case the check result is granted.
        Parameters:
        onGranted - The command to execute
      • denied

        C denied​(org.uberfire.mvp.Command onDenied)
        Specifies the command instance to execute in case the check result is denied.
        Parameters:
        onDenied - The command to execute
      • result

        boolean result()
        Get the check result value
        Returns:
        true if granted, false otherwise