Package it.tidalwave.role.ui
Interface UserActionProvider
- All Known Implementing Classes:
DefaultUserActionProvider
public interface UserActionProvider
A role that provides
UserActions.- Author:
- Fabrizio Giudici
- Stereotype:
- role
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends UserAction> Returns a collection ofUserActions.Deprecated.default Optional<UserAction> Returns the default action, if available.static UserActionProviderof(UserAction... actions) Factory method which creates an instance out of an array ofUserActions.
-
Field Details
-
_UserActionProvider_
-
-
Method Details
-
getActions
Returns a collection ofUserActions.- Returns:
- a collection of actions
-
getDefaultAction
Deprecated.Returns the default action, if available.- Returns:
- the default action
- Throws:
NotFoundException- if there's no default action
-
getOptionalDefaultAction
Returns the default action, if available.- Returns:
- the default action
- Since:
- 3.1-ALPHA-2
-
of
Factory method which creates an instance out of an array ofUserActions. The first one is considered the default action.- Parameters:
actions- the actions- Returns:
- the
UserActionProvider - Since:
- 3.1-ALPHA-2
-
getOptionalDefaultAction()