Interface UserActionProvider

All Known Implementing Classes:
DefaultUserActionProvider

public interface UserActionProvider
A role that provides UserActions.
Author:
Fabrizio Giudici
Stereotype:
role
  • Field Details

  • Method Details

    • getActions

      @Nonnull Collection<? extends UserAction> getActions()
      Returns a collection of UserActions.
      Returns:
      a collection of actions
    • getDefaultAction

      @Nonnull @Deprecated UserAction getDefaultAction() throws NotFoundException
      Returns the default action, if available.
      Returns:
      the default action
      Throws:
      NotFoundException - if there's no default action
    • getOptionalDefaultAction

      @Nonnull default Optional<UserAction> getOptionalDefaultAction()
      Returns the default action, if available.
      Returns:
      the default action
      Since:
      3.1-ALPHA-2
    • of

      @Nonnull static UserActionProvider of(@Nonnull UserAction... actions)
      Factory method which creates an instance out of an array of UserActions. The first one is considered the default action.
      Parameters:
      actions - the actions
      Returns:
      the UserActionProvider
      Since:
      3.1-ALPHA-2