com.atlassian.jira.issue.search
Class CurrentSearchLinkFactory

java.lang.Object
  extended by com.atlassian.jira.issue.search.CurrentSearchLinkFactory
All Implemented Interfaces:
SimpleLinkFactory

public class CurrentSearchLinkFactory
extends Object
implements SimpleLinkFactory

Link factory for creating a link to the current search. If we ever do search history, we can use this to provide links

Since:
v4.0

Constructor Summary
CurrentSearchLinkFactory(VelocityRequestContextFactory velocityRequestContextFactory, I18nHelper.BeanFactory i18nFactory, SearchProvider searchProvider)
           
 
Method Summary
 List<SimpleLink> getLinks(User user)
          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

CurrentSearchLinkFactory

public CurrentSearchLinkFactory(VelocityRequestContextFactory velocityRequestContextFactory,
                                I18nHelper.BeanFactory i18nFactory,
                                SearchProvider searchProvider)
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 List<SimpleLink> getLinks(User user)
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-2009 Atlassian. All Rights Reserved.