com.atlassian.jira.portal.portlets
Class MyVotesPortlet

java.lang.Object
  extended bycom.atlassian.jira.portal.PortletImpl
      extended bycom.atlassian.jira.portal.portlets.AbstractVotesAndWatchesPortlet
          extended bycom.atlassian.jira.portal.portlets.MyVotesPortlet
All Implemented Interfaces:
Portlet

public class MyVotesPortlet
extends AbstractVotesAndWatchesPortlet


Field Summary
protected  VoteManager voteManager
           
 
Fields inherited from class com.atlassian.jira.portal.portlets.AbstractVotesAndWatchesPortlet
constantsManager, issueManager, sortOrder, sortOrder2
 
Fields inherited from class com.atlassian.jira.portal.PortletImpl
applicationProperties, authenticationContext, permissionManager
 
Constructor Summary
MyVotesPortlet(JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, ConstantsManager constantsManager, ApplicationProperties applicationProperties, IssueManager issueManager, VoteManager voteManager)
           
 
Method Summary
 boolean canRemoveAssociation(Issue issue)
           
 List getIssues(User remoteUser, PortletConfiguration portletConfiguration)
           
 String getLinkToSearch()
           
protected  String getLinkToViewAssociations()
           
 String getNoIssuesText()
           
 String getRemoveIssueLink()
           
 String getRemoveIssueText()
           
protected  String getSearchName()
           
 String getToolTipText(String issueKey, long size)
           
 Long getTotalAssociations(Issue issue)
           
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.AbstractVotesAndWatchesPortlet
hasViewPermission, isShowResolved, isShowTotals, removeResolvedIssues
 
Methods inherited from class com.atlassian.jira.portal.PortletImpl
equals, getCornerThumbnail, getDescription, getDescriptor, getId, getIssueConstant, getName, getObjectConfiguration, getPermission, getTemplateLocation, getThumbnailfile, getViewHtml, hashCode, hasPermission, init
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

voteManager

protected final VoteManager voteManager
Constructor Detail

MyVotesPortlet

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

getIssues

public List getIssues(User remoteUser,
                      PortletConfiguration portletConfiguration)
Specified by:
getIssues in class AbstractVotesAndWatchesPortlet

canRemoveAssociation

public boolean canRemoveAssociation(Issue issue)
Specified by:
canRemoveAssociation in class AbstractVotesAndWatchesPortlet

getLinkToViewAssociations

protected String getLinkToViewAssociations()
Specified by:
getLinkToViewAssociations in class AbstractVotesAndWatchesPortlet

getTotalAssociations

public Long getTotalAssociations(Issue issue)
Specified by:
getTotalAssociations in class AbstractVotesAndWatchesPortlet

getToolTipText

public String getToolTipText(String issueKey,
                             long size)
Specified by:
getToolTipText in class AbstractVotesAndWatchesPortlet

getRemoveIssueText

public String getRemoveIssueText()
Specified by:
getRemoveIssueText in class AbstractVotesAndWatchesPortlet

getRemoveIssueLink

public String getRemoveIssueLink()
Specified by:
getRemoveIssueLink in class AbstractVotesAndWatchesPortlet

getNoIssuesText

public String getNoIssuesText()
Specified by:
getNoIssuesText in class AbstractVotesAndWatchesPortlet

getLinkToSearch

public String getLinkToSearch()
Specified by:
getLinkToSearch in class AbstractVotesAndWatchesPortlet

getSearchName

protected String getSearchName()
Specified by:
getSearchName in class AbstractVotesAndWatchesPortlet


Copyright © 2002-2006 Atlassian. All Rights Reserved.