com.atlassian.jira.portal
Class FavouriteDashboardLinkFactory

java.lang.Object
  extended by com.atlassian.jira.portal.FavouriteDashboardLinkFactory
All Implemented Interfaces:
SimpleLinkFactory

public class FavouriteDashboardLinkFactory
extends java.lang.Object
implements SimpleLinkFactory

A SimpleLinkFactory that generates a list of SimpleLinks that point to the Favourite Filters of a user.

Since:
v4.0

Constructor Summary
FavouriteDashboardLinkFactory(PortalPageService portalPageService, VelocityRequestContextFactory velocityRequestContextFactory, I18nHelper.BeanFactory i18nFactory)
           
 
Method Summary
 java.util.List<SimpleLink> getLinks(com.opensymphony.user.User user, java.util.Map<java.lang.String,java.lang.Object> params)
          Generates a list of SimpleLink objects.
 void init(SimpleLinkFactoryModuleDescriptor descriptor)
          Initialization method for the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FavouriteDashboardLinkFactory

public FavouriteDashboardLinkFactory(PortalPageService portalPageService,
                                     VelocityRequestContextFactory velocityRequestContextFactory,
                                     I18nHelper.BeanFactory i18nFactory)
Method Detail

init

public void init(SimpleLinkFactoryModuleDescriptor descriptor)
Description copied from interface: SimpleLinkFactory
Initialization method for the factory. Used to retreive information off the module descriptor

Specified by:
init in interface SimpleLinkFactory
Parameters:
descriptor - The descriptor responsible for defining this factory.

getLinks

public java.util.List<SimpleLink> getLinks(com.opensymphony.user.User user,
                                           java.util.Map<java.lang.String,java.lang.Object> params)
Description copied from interface: SimpleLinkFactory
Generates a list of SimpleLink objects.

Specified by:
getLinks in interface SimpleLinkFactory
Parameters:
user - The user this list is being generated for.
Returns:
a list of SimpleLink objects tailored for the user.


Copyright © 2002-2010 Atlassian. All Rights Reserved.