*
* @param hyperlink denotes on which type of actions to filter
*/
private final List getTableActions(boolean hyperlink)
{
final Set actions = new LinkedHashSet();
final String name = StringUtils.trimToNull(getName());
if (name != null && isTable())
{
final JSFView view = (JSFView)this.getView();
final Collection allUseCases = getModel().getAllUseCases();
for (final Iterator useCaseIterator = allUseCases.iterator(); useCaseIterator.hasNext();)
{
final UseCaseFacade useCase = (UseCaseFacade)useCaseIterator.next();
if (useCase instanceof JSFUseCase)
{
final FrontEndActivityGraph graph = ((JSFUseCase)useCase).getActivityGraph();
if (graph != null)
{
final Collection transitions = graph.getTransitions();
for (final Iterator transitionIterator = transitions.iterator(); transitionIterator.hasNext();)
{
final TransitionFacade transition = (TransitionFacade)transitionIterator.next();
if (transition.getSource().equals(view) && transition instanceof JSFAction)
{
final JSFAction action = (JSFAction)transition;
if (action.isTableLink() && name.equals(action.getTableLinkName()))
{
if (hyperlink == action.isHyperlink())
{
actions.add(action);
}
}
}
}
}