com.atlassian.jira.plugin.projectpanel.fragment.impl
Class AbstractUrlFragmentUtil<T>

java.lang.Object
  extended by com.atlassian.jira.plugin.projectpanel.fragment.impl.AbstractUrlFragmentUtil<T>
Direct Known Subclasses:
StatusSummaryFragment.StatusUrlUtil, UnresolvedIssuesByAssigneeFragment.AssigneeUrlUtil, UnresolvedIssuesByComponentFragment.ComponentUrlUtil, UnresolvedIssuesByFixVersionFragment.FixVersionUrlUtil, UnresolvedIssuesByPriorityFragment.PriorityUrlUtil

public abstract class AbstractUrlFragmentUtil<T>
extends java.lang.Object

A utility class for building the urls required by the fragments

Since:
v4.0

Constructor Summary
AbstractUrlFragmentUtil(SearchRequest searchRequest, com.opensymphony.user.User user, ApplicationProperties applicationProperties)
           
 
Method Summary
 java.lang.String getAllUrl()
           
protected abstract  Clause getDomainClause(T domain)
          Create the clause to search for a specific domain object
protected abstract  OrderBy getOrderBy()
           
 java.lang.String getUrl(T domain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUrlFragmentUtil

public AbstractUrlFragmentUtil(SearchRequest searchRequest,
                               com.opensymphony.user.User user,
                               ApplicationProperties applicationProperties)
Method Detail

getDomainClause

protected abstract Clause getDomainClause(T domain)
Create the clause to search for a specific domain object

Parameters:
domain - the domain object that needs to be searched for e.g. Version. Can be Null.
Returns:
the clause that searchs for issues with the field equal to the domain objects value, or if the domain object is Null, is empty. Never Null.

getOrderBy

protected abstract OrderBy getOrderBy()
Returns:
the order by clause that sorts by the field

getUrl

public java.lang.String getUrl(T domain)

getAllUrl

public java.lang.String getAllUrl()


Copyright © 2002-2010 Atlassian. All Rights Reserved.