Class DefaultUserActionProvider

java.lang.Object
it.tidalwave.ui.core.role.spi.DefaultUserActionProvider
All Implemented Interfaces:
UserActionProvider

public class DefaultUserActionProvider extends Object implements UserActionProvider
A default implementation of UserActionProvider which returns no actions.
Since:
2.0-ALPHA-1
Author:
Fabrizio Giudici
Stereotype:
role
  • Constructor Details

    • DefaultUserActionProvider

      public DefaultUserActionProvider()
  • Method Details

    • getActions

      @Nonnull public Collection<? extends UserAction> getActions()
      Returns a collection of UserActions.
      Specified by:
      getActions in interface UserActionProvider
      Returns:
      a collection of actions
    • getDefaultAction

      @Nonnull public UserAction getDefaultAction() throws it.tidalwave.util.NotFoundException
      Returns the default action, if available.
      Specified by:
      getDefaultAction in interface UserActionProvider
      Returns:
      the default action
      Throws:
      it.tidalwave.util.NotFoundException - if there's no default action