com.atlassian.jira.plugin.report
Class AbstractIssueBeanHelper

java.lang.Object
  extended by com.atlassian.jira.web.util.IssueTableBean
      extended by com.atlassian.jira.plugin.report.AbstractIssueBeanHelper
Direct Known Subclasses:
DefaultIssueBeanHelper

public abstract class AbstractIssueBeanHelper
extends com.atlassian.jira.web.util.IssueTableBean

Author : � Kaamelot - 2006 Projet : jira-plugin-kaamelot-reporter Fichier : IssueBeanHelper.java Description :


Field Summary
protected static com.atlassian.jira.config.properties.ApplicationProperties applicationProperties
           
protected static com.atlassian.jira.issue.CustomFieldManager customFieldManager
           
protected static int daysPerWeek
           
protected static int HOUR
           
protected static int hoursPerDay
           
protected static com.atlassian.jira.issue.IssueManager issueManager
           
protected static java.lang.String JiraUrlBase
           
protected static int MINUTE
           
protected static com.atlassian.jira.project.ProjectManager projectManager
           
protected static int SECOND
           
protected static int secondsInDay
           
protected static com.opensymphony.user.UserManager userManager
           
protected static WorklogHelper worklogHelper
           
 
Constructor Summary
protected AbstractIssueBeanHelper()
          Default Constructor
 
Method Summary
 com.opensymphony.user.User getAssignee(com.atlassian.jira.issue.Issue _issue)
           
 com.opensymphony.user.User getCFUserPicker(com.atlassian.jira.issue.Issue _issue, java.lang.String _customFieldName)
           
 java.sql.Timestamp getCreationDate(com.atlassian.jira.issue.Issue _issue)
           
static com.atlassian.jira.issue.fields.CustomField getCustomField(java.lang.String _customFieldName)
           
 java.sql.Timestamp getCustomFieldDateTimeValue(com.atlassian.jira.issue.Issue _issue, java.lang.String _customFieldName)
           
 java.sql.Timestamp getCustomFieldDateValue(com.atlassian.jira.issue.Issue _issue, java.lang.String _customFieldName)
           
 java.lang.Object getCustomFieldDefaultValue(com.atlassian.jira.issue.Issue _issue, java.lang.String _customFieldName)
          Permet de r�cup�rer la valeur par d�faut d'un customfield bien que la demande ne soit pas encore cr�er, c'est � dire que le genericValue de l'objet Issue n'est pas encore renseign�.
 java.lang.String getCustomFieldStringDefaultValue(com.atlassian.jira.issue.Issue _issue, java.lang.String _customFieldName)
           
 java.lang.String getCustomFieldStringValue(com.atlassian.jira.issue.Issue _issue, java.lang.String _customFieldName)
           
 java.lang.Object getCustomFieldValue(com.atlassian.jira.issue.Issue _issue, java.lang.String _customFieldName)
           
 java.sql.Timestamp getDueDate(com.atlassian.jira.issue.Issue _issue)
           
 java.lang.String getHtmlURLtoEditWorkLog(com.atlassian.jira.issue.Issue _issue)
           
 java.lang.String getHtmlURLtoIssue(com.atlassian.jira.issue.Issue _issue)
           
 java.lang.String getHtmlURLtoIssue(java.lang.String _issueKey)
           
 java.lang.String getHtmlURLtoIssue(java.lang.String _issueKey, java.lang.String _issueLabel)
           
 java.lang.String getHtmlURLtoIssueOnKey(com.atlassian.jira.issue.Issue _issue)
           
 java.lang.String getHtmlURLtoIssueOnSummary(com.atlassian.jira.issue.Issue _issue)
           
 java.lang.String getHtmlURLtoProject(java.lang.Long _projectId)
           
 java.lang.String getHtmlURLtoProject(java.lang.String _projectId, java.lang.String _projectName)
           
 java.lang.String getImgSrctoConstantIcon(com.atlassian.jira.issue.IssueConstant _issueConstant)
           
 java.lang.String getImgSrctoIssueTypeIcon(com.atlassian.jira.issue.Issue _issue)
           
 java.lang.String getImgSrctoStatusIcon(com.atlassian.jira.issue.Issue _issue)
           
 java.lang.String getIssueKey(com.atlassian.jira.issue.Issue _issue)
           
 java.lang.String getJIRAUrlBase()
           
 double getOriginalEstimateDayFraction(com.atlassian.jira.issue.Issue _issue)
           
 double getRemainingDayFraction(com.atlassian.jira.issue.Issue _issue)
           
 com.opensymphony.user.User getReporter(org.ofbiz.core.entity.GenericValue _issue)
           
 long getSecondsInDay()
           
 double getSpentDayFraction(com.atlassian.jira.issue.Issue _issue, java.util.Date _untilTs)
           
 double getSpentHourFraction(com.atlassian.jira.issue.Issue _issue, java.util.Date _untilTs)
           
 java.lang.String getSummary(com.atlassian.jira.issue.Issue _issue)
           
 java.lang.String getUserFullName(com.opensymphony.user.User _user)
           
 
Methods inherited from class com.atlassian.jira.web.util.IssueTableBean
getComponents, getFixVersions, getPaddedWorkRatio, getParentIssueKey, getParentIssueKey, getParentIssueSummary, getParentIssueSummary, getSecurityLevel, getSubTasks, getVersions, getWorkRatio, isWorkEstimateExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

projectManager

protected static com.atlassian.jira.project.ProjectManager projectManager

userManager

protected static com.opensymphony.user.UserManager userManager

issueManager

protected static com.atlassian.jira.issue.IssueManager issueManager

worklogHelper

protected static WorklogHelper worklogHelper

customFieldManager

protected static com.atlassian.jira.issue.CustomFieldManager customFieldManager

applicationProperties

protected static final com.atlassian.jira.config.properties.ApplicationProperties applicationProperties

JiraUrlBase

protected static java.lang.String JiraUrlBase

SECOND

protected static final int SECOND
See Also:
Constant Field Values

MINUTE

protected static final int MINUTE
See Also:
Constant Field Values

HOUR

protected static final int HOUR
See Also:
Constant Field Values

hoursPerDay

protected static int hoursPerDay

daysPerWeek

protected static int daysPerWeek

secondsInDay

protected static int secondsInDay
Constructor Detail

AbstractIssueBeanHelper

protected AbstractIssueBeanHelper()
Default Constructor

Method Detail

getSummary

public java.lang.String getSummary(com.atlassian.jira.issue.Issue _issue)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getIssueKey

public java.lang.String getIssueKey(com.atlassian.jira.issue.Issue _issue)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getJIRAUrlBase

public java.lang.String getJIRAUrlBase()

getHtmlURLtoIssue

public java.lang.String getHtmlURLtoIssue(java.lang.String _issueKey)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getHtmlURLtoIssue

public java.lang.String getHtmlURLtoIssue(java.lang.String _issueKey,
                                          java.lang.String _issueLabel)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getHtmlURLtoIssueOnSummary

public java.lang.String getHtmlURLtoIssueOnSummary(com.atlassian.jira.issue.Issue _issue)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

getHtmlURLtoIssueOnKey

public java.lang.String getHtmlURLtoIssueOnKey(com.atlassian.jira.issue.Issue _issue)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

getHtmlURLtoProject

public java.lang.String getHtmlURLtoProject(java.lang.Long _projectId)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getHtmlURLtoProject

public java.lang.String getHtmlURLtoProject(java.lang.String _projectId,
                                            java.lang.String _projectName)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getHtmlURLtoEditWorkLog

public java.lang.String getHtmlURLtoEditWorkLog(com.atlassian.jira.issue.Issue _issue)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

getImgSrctoConstantIcon

public java.lang.String getImgSrctoConstantIcon(com.atlassian.jira.issue.IssueConstant _issueConstant)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

getImgSrctoIssueTypeIcon

public java.lang.String getImgSrctoIssueTypeIcon(com.atlassian.jira.issue.Issue _issue)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

getImgSrctoStatusIcon

public java.lang.String getImgSrctoStatusIcon(com.atlassian.jira.issue.Issue _issue)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getHtmlURLtoIssue

public java.lang.String getHtmlURLtoIssue(com.atlassian.jira.issue.Issue _issue)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getReporter

public com.opensymphony.user.User getReporter(org.ofbiz.core.entity.GenericValue _issue)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getAssignee

public com.opensymphony.user.User getAssignee(com.atlassian.jira.issue.Issue _issue)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getUserFullName

public java.lang.String getUserFullName(com.opensymphony.user.User _user)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getDueDate

public java.sql.Timestamp getDueDate(com.atlassian.jira.issue.Issue _issue)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getCreationDate

public java.sql.Timestamp getCreationDate(com.atlassian.jira.issue.Issue _issue)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getOriginalEstimateDayFraction

public double getOriginalEstimateDayFraction(com.atlassian.jira.issue.Issue _issue)

getRemainingDayFraction

public double getRemainingDayFraction(com.atlassian.jira.issue.Issue _issue)

getSpentDayFraction

public double getSpentDayFraction(com.atlassian.jira.issue.Issue _issue,
                                  java.util.Date _untilTs)

getSpentHourFraction

public double getSpentHourFraction(com.atlassian.jira.issue.Issue _issue,
                                   java.util.Date _untilTs)

getSecondsInDay

public long getSecondsInDay()

getCustomField

public static com.atlassian.jira.issue.fields.CustomField getCustomField(java.lang.String _customFieldName)
                                                                  throws java.lang.Exception
Throws:
java.lang.Exception

getCustomFieldValue

public java.lang.Object getCustomFieldValue(com.atlassian.jira.issue.Issue _issue,
                                            java.lang.String _customFieldName)
                                     throws java.lang.Exception
Parameters:
_issue - Jira Issue to access
_customFieldName - Customfield Name Searched
Returns:
Customfield Value
Throws:
java.lang.Exception - n/a

getCustomFieldDefaultValue

public java.lang.Object getCustomFieldDefaultValue(com.atlassian.jira.issue.Issue _issue,
                                                   java.lang.String _customFieldName)
                                            throws java.lang.Exception
Permet de r�cup�rer la valeur par d�faut d'un customfield bien que la demande ne soit pas encore cr�er, c'est � dire que le genericValue de l'objet Issue n'est pas encore renseign�.

Parameters:
_issue -
_customFieldName -
Returns:
Throws:
java.lang.Exception

getCustomFieldStringValue

public java.lang.String getCustomFieldStringValue(com.atlassian.jira.issue.Issue _issue,
                                                  java.lang.String _customFieldName)
                                           throws java.lang.Exception
Parameters:
_issue - Jira Issue to access
_customFieldName - Customfield Name Searched
Returns:
Customfield String Value
Throws:
java.lang.Exception - n/a

getCustomFieldStringDefaultValue

public java.lang.String getCustomFieldStringDefaultValue(com.atlassian.jira.issue.Issue _issue,
                                                         java.lang.String _customFieldName)
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

getCustomFieldDateValue

public java.sql.Timestamp getCustomFieldDateValue(com.atlassian.jira.issue.Issue _issue,
                                                  java.lang.String _customFieldName)
                                           throws java.lang.Exception
Parameters:
_issue - Jira Issue to access
_customFieldName - Customfield Name Searched
Returns:
Customfield Date Value as Date
Throws:
java.lang.Exception - n/a

getCustomFieldDateTimeValue

public java.sql.Timestamp getCustomFieldDateTimeValue(com.atlassian.jira.issue.Issue _issue,
                                                      java.lang.String _customFieldName)
                                               throws java.lang.Exception
Parameters:
_issue - Jira Issue to access
_customFieldName - Customfield Name Searched
Returns:
Customfield Date Value as Date
Throws:
java.lang.Exception - n/a

getCFUserPicker

public com.opensymphony.user.User getCFUserPicker(com.atlassian.jira.issue.Issue _issue,
                                                  java.lang.String _customFieldName)
                                           throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2007-2008 Kaamelot Plugins. All Rights Reserved.