com.atlassian.jira.portal.portlets
Class AbstractVotesAndWatchesPortlet

java.lang.Object
  extended by com.atlassian.jira.portal.PortletImpl
      extended by com.atlassian.jira.portal.portlets.AbstractVotesAndWatchesPortlet
All Implemented Interfaces:
Portlet
Direct Known Subclasses:
MyVotesPortlet, MyWatchesPortlet

public abstract class AbstractVotesAndWatchesPortlet
extends PortletImpl


Field Summary
protected  ConstantsManager constantsManager
           
protected  IssueManager issueManager
           
 
Fields inherited from class com.atlassian.jira.portal.PortletImpl
applicationProperties, authenticationContext, permissionManager
 
Constructor Summary
AbstractVotesAndWatchesPortlet(JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, ConstantsManager constantsManager, ApplicationProperties applicationProperties, IssueManager issueManager)
           
 
Method Summary
abstract  boolean canRemoveAssociation(Issue issue)
           
protected abstract  List getIssues(User remoteUser, PortletConfiguration portletConfiguration)
           
protected abstract  String getLinkToSearch()
           
protected abstract  String getLinkToViewAssociations()
           
protected abstract  String getNoIssuesText()
           
protected abstract  String getRemoveIssueLink()
           
protected abstract  String getRemoveIssueText()
           
protected abstract  String getSearchName()
           
abstract  String getToolTipText(String issueKey, long size)
           
abstract  Long getTotalAssociations(Issue issue)
           
protected  Map getVelocityParams(PortletConfiguration portletConfiguration)
          Allow for the addition of additional Velocity parameters to the context.
 Boolean hasViewPermission(Issue issue)
           
protected  boolean isShowResolved(PortletConfiguration portletConfiguration)
           
protected  boolean isShowTotals(PortletConfiguration portletConfiguration)
           
protected  void removeResolvedIssues(Collection issues)
           
 
Methods inherited from class com.atlassian.jira.portal.PortletImpl
equals, getCornerThumbnail, getCornerThumbnailPath, getDescription, getDescriptor, getId, getIssueConstant, getListFromMultiSelectValue, getName, getObjectConfiguration, getPermission, getTemplateLocation, getThumbnailfile, getThumbnailPath, getViewHtml, hashCode, hasPermission, init, isEditablePortletConfig
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

constantsManager

protected final ConstantsManager constantsManager

issueManager

protected final IssueManager issueManager
Constructor Detail

AbstractVotesAndWatchesPortlet

public AbstractVotesAndWatchesPortlet(JiraAuthenticationContext authenticationContext,
                                      PermissionManager permissionManager,
                                      ConstantsManager constantsManager,
                                      ApplicationProperties applicationProperties,
                                      IssueManager issueManager)
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

isShowTotals

protected boolean isShowTotals(PortletConfiguration portletConfiguration)

isShowResolved

protected boolean isShowResolved(PortletConfiguration portletConfiguration)

hasViewPermission

public Boolean hasViewPermission(Issue issue)

getIssues

protected abstract List getIssues(User remoteUser,
                                  PortletConfiguration portletConfiguration)

removeResolvedIssues

protected void removeResolvedIssues(Collection issues)

canRemoveAssociation

public abstract boolean canRemoveAssociation(Issue issue)

getLinkToViewAssociations

protected abstract String getLinkToViewAssociations()

getTotalAssociations

public abstract Long getTotalAssociations(Issue issue)

getToolTipText

public abstract String getToolTipText(String issueKey,
                                      long size)

getRemoveIssueText

protected abstract String getRemoveIssueText()

getRemoveIssueLink

protected abstract String getRemoveIssueLink()

getNoIssuesText

protected abstract String getNoIssuesText()

getLinkToSearch

protected abstract String getLinkToSearch()

getSearchName

protected abstract String getSearchName()


Copyright © 2002-2009 Atlassian. All Rights Reserved.