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  java.util.List getIssues(com.opensymphony.user.User remoteUser, PortletConfiguration portletConfiguration)
           
protected abstract  java.lang.String getLinkToSearch()
           
protected abstract  java.lang.String getLinkToViewAssociations()
           
protected abstract  java.lang.String getNoIssuesText()
           
protected abstract  java.lang.String getRemoveIssueLink()
           
protected abstract  java.lang.String getRemoveIssueText()
           
protected abstract  java.lang.String getSearchName()
           
abstract  java.lang.String getToolTipText(java.lang.String issueKey, long size)
           
abstract  java.lang.Long getTotalAssociations(Issue issue)
           
protected  java.util.Map getVelocityParams(PortletConfiguration portletConfiguration)
          Allow for the addition of additional Velocity parameters to the context.
 java.lang.Boolean hasViewPermission(Issue issue)
           
protected  boolean isShowResolved(PortletConfiguration portletConfiguration)
           
protected  boolean isShowTotals(PortletConfiguration portletConfiguration)
           
protected  void removeResolvedIssues(java.util.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 java.util.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 java.lang.Boolean hasViewPermission(Issue issue)

getIssues

protected abstract java.util.List getIssues(com.opensymphony.user.User remoteUser,
                                            PortletConfiguration portletConfiguration)

removeResolvedIssues

protected void removeResolvedIssues(java.util.Collection issues)

canRemoveAssociation

public abstract boolean canRemoveAssociation(Issue issue)

getLinkToViewAssociations

protected abstract java.lang.String getLinkToViewAssociations()

getTotalAssociations

public abstract java.lang.Long getTotalAssociations(Issue issue)

getToolTipText

public abstract java.lang.String getToolTipText(java.lang.String issueKey,
                                                long size)

getRemoveIssueText

protected abstract java.lang.String getRemoveIssueText()

getRemoveIssueLink

protected abstract java.lang.String getRemoveIssueLink()

getNoIssuesText

protected abstract java.lang.String getNoIssuesText()

getLinkToSearch

protected abstract java.lang.String getLinkToSearch()

getSearchName

protected abstract java.lang.String getSearchName()


Copyright © 2002-2010 Atlassian. All Rights Reserved.