Package it.tidalwave.role.ui.spi
Class DefaultUserActionProvider
- java.lang.Object
-
- it.tidalwave.role.ui.spi.DefaultUserActionProvider
-
- All Implemented Interfaces:
UserActionProvider
public class DefaultUserActionProvider extends java.lang.Object implements UserActionProvider
A default implementation ofUserActionProvider
which returns no actions.- Author:
- Fabrizio Giudici
- Stereotype:
- role
-
-
Field Summary
-
Fields inherited from interface it.tidalwave.role.ui.UserActionProvider
_UserActionProvider_
-
-
Constructor Summary
Constructors Constructor Description DefaultUserActionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<? extends UserAction>
getActions()
Returns a collection ofUserAction
s.UserAction
getDefaultAction()
Returns the default action, if available.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.tidalwave.role.ui.UserActionProvider
getOptionalDefaultAction
-
-
-
-
Method Detail
-
getActions
@Nonnull public java.util.Collection<? extends UserAction> getActions()
Returns a collection ofUserAction
s.- Specified by:
getActions
in interfaceUserActionProvider
- Returns:
- a collection of actions
-
getDefaultAction
@Nonnull public UserAction getDefaultAction() throws NotFoundException
Returns the default action, if available.- Specified by:
getDefaultAction
in interfaceUserActionProvider
- Returns:
- the default action
- Throws:
NotFoundException
- if there's no default action
-
-