com.atlassian.jira.portal.portlets
Class SavedFiltersPortlet

java.lang.Object
  extended bycom.atlassian.jira.portal.PortletImpl
      extended bycom.atlassian.jira.portal.portlets.AbstractRequiresUserPortlet
          extended bycom.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, SearchRequestManager searchRequestManager, SearchProvider searchProvider)
           
 
Method Summary
 long getCountsForFilter(org.ofbiz.core.entity.GenericValue 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, getDescription, getDescriptor, getId, getIssueConstant, getName, getObjectConfiguration, getPermission, getTemplateLocation, getThumbnailfile, hashCode, hasPermission, init
 
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,
                           SearchRequestManager searchRequestManager,
                           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

getCountsForFilter

public long getCountsForFilter(org.ofbiz.core.entity.GenericValue filter)
                        throws org.ofbiz.core.entity.GenericEntityException,
                               SearchException
Throws:
org.ofbiz.core.entity.GenericEntityException
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
Parameters:
portletConfiguration -
Returns:
A HTML fragment


Copyright © 2002-2007 Atlassian. All Rights Reserved.