Package it.tidalwave.role.ui
Interface UserActionProvider
-
- All Known Implementing Classes:
DefaultUserActionProvider
public interface UserActionProvider
A role that providesUserAction
s.- Author:
- Fabrizio Giudici
- Stereotype:
- role
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<UserActionProvider>
_UserActionProvider_
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description java.util.Collection<? extends UserAction>
getActions()
Returns a collection ofUserAction
s.UserAction
getDefaultAction()
Deprecated.default java.util.Optional<UserAction>
getOptionalDefaultAction()
Returns the default action, if available.static UserActionProvider
of(UserAction... actions)
Factory method which creates an instance out of an array ofUserAction
s.
-
-
-
Field Detail
-
_UserActionProvider_
static final java.lang.Class<UserActionProvider> _UserActionProvider_
-
-
Method Detail
-
getActions
@Nonnull java.util.Collection<? extends UserAction> getActions()
Returns a collection ofUserAction
s.- Returns:
- a collection of actions
-
getDefaultAction
@Nonnull @Deprecated UserAction getDefaultAction() throws NotFoundException
Deprecated.Returns the default action, if available.- Returns:
- the default action
- Throws:
NotFoundException
- if there's no default action
-
getOptionalDefaultAction
@Nonnull default java.util.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 ofUserAction
s. The first one is considered the default action.- Parameters:
actions
- the actions- Returns:
- the
UserActionProvider
- Since:
- 3.1-ALPHA-2
-
-