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