com.atlassian.jira.portal.portlets
Class SavedFiltersPortlet

java.lang.Object
  extended by com.atlassian.jira.portal.PortletImpl
      extended by com.atlassian.jira.portal.portlets.AbstractRequiresUserPortlet
          extended by com.atlassian.jira.portal.portlets.SavedFiltersPortlet
All Implemented Interfaces:
LazyLoadingPortlet, Portlet

public class SavedFiltersPortlet
extends AbstractRequiresUserPortlet
implements LazyLoadingPortlet


Field Summary
 
Fields inherited from class com.atlassian.jira.portal.PortletImpl
applicationProperties, authenticationContext, permissionManager
 
Constructor Summary
SavedFiltersPortlet(JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, ApplicationProperties applicationProperties, SearchRequestService searchRequestService, SearchProvider searchProvider)
           
 
Method Summary
 long getCountsForFilter(SearchRequest filter)
           
 String getLoadingHtml(PortletConfiguration portletConfiguration)
          This method should return temporary HTML
 String getStaticHtml(PortletConfiguration portletConfiguration)
          All JavaScript should be returned by this method.
protected  Map getVelocityParams(PortletConfiguration portletConfiguration)
          Allow for the addition of additional Velocity parameters to the context.
 
Methods inherited from class com.atlassian.jira.portal.portlets.AbstractRequiresUserPortlet
getViewHtml
 
Methods inherited from class com.atlassian.jira.portal.PortletImpl
equals, getCornerThumbnail, getCornerThumbnailPath, getDescription, getDescriptor, getId, getIssueConstant, getListFromMultiSelectValue, getName, getObjectConfiguration, getPermission, getTemplateLocation, getThumbnailfile, getThumbnailPath, hashCode, hasPermission, init, isEditablePortletConfig
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.portal.Portlet
getCornerThumbnail, getDescription, getDescriptor, getId, getName, getObjectConfiguration, getPermission, getTemplateLocation, getThumbnailfile, getViewHtml, hasPermission, init
 

Constructor Detail

SavedFiltersPortlet

public SavedFiltersPortlet(JiraAuthenticationContext authenticationContext,
                           PermissionManager permissionManager,
                           ApplicationProperties applicationProperties,
                           SearchRequestService searchRequestService,
                           SearchProvider searchProvider)
Method Detail

getVelocityParams

protected Map getVelocityParams(PortletConfiguration portletConfiguration)
Description copied from class: PortletImpl
Allow for the addition of additional Velocity parameters to the context. Sub-classes may wish to override this to add their own object to the velocity context

Overrides:
getVelocityParams in class PortletImpl
Parameters:
portletConfiguration - portlet configuration
Returns:
map of velocity parameters, never null

getCountsForFilter

public long getCountsForFilter(SearchRequest filter)
                        throws SearchException
Throws:
SearchException

getLoadingHtml

public String getLoadingHtml(PortletConfiguration portletConfiguration)
Description copied from interface: LazyLoadingPortlet
This method should return temporary HTML

Specified by:
getLoadingHtml in interface LazyLoadingPortlet
Parameters:
portletConfiguration - The portlet configuration for the current request
Returns:
A HTML fragment

getStaticHtml

public String getStaticHtml(PortletConfiguration portletConfiguration)
Description copied from interface: LazyLoadingPortlet
All JavaScript should be returned by this method. If the JavaScript is not returned by this method it may not bound in the when you try and invoke it from your portlet. This method should return any HTML that will not be swapped out because of lazy loading. The resultant HTML returned by this method will be displayed regardless of whether lazy loading is active or not. The static HTML will placed in front of the Loading HTML.

Specified by:
getStaticHtml in interface LazyLoadingPortlet
Returns:
A HTML fragment


Copyright © 2002-2009 Atlassian. All Rights Reserved.