com.atlassian.jira.jelly.tag.issue
Class AbstractCreateIssue

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.apache.commons.jelly.DynaTagSupport
          extended by org.apache.commons.jelly.DynaBeanTagSupport
              extended by com.atlassian.jira.jelly.JiraDynaBeanTagSupport
                  extended by com.atlassian.jira.jelly.ActionTagSupport
                      extended by com.atlassian.jira.jelly.tag.UserAwareActionTagSupport
                          extended by com.atlassian.jira.jelly.tag.ProjectAwareActionTagSupport
                              extended by com.atlassian.jira.jelly.tag.issue.AbstractCreateIssue
All Implemented Interfaces:
IssueContextAccessor, ProjectAware, ProjectContextAccessor, CustomFieldValuesAwareTag, UserAware, org.apache.commons.jelly.DynaTag, org.apache.commons.jelly.Tag
Direct Known Subclasses:
CreateIssue, CreateIssue

public abstract class AbstractCreateIssue
extends ProjectAwareActionTagSupport
implements ProjectContextAccessor, IssueContextAccessor, CustomFieldValuesAwareTag


Field Summary
protected static java.lang.String KEY_COMPONENTS
           
protected static java.lang.String KEY_DESCRIPTION
           
protected static java.lang.String KEY_DUPLICATE_SUMMARY
           
protected static java.lang.String KEY_ENVIRONMENT
           
protected static java.lang.String KEY_FIX_VERSIONS
           
protected static java.lang.String KEY_ISSUE_ASSIGNEE
           
protected static java.lang.String KEY_ISSUE_ASSIGNEE_VAR
           
protected static java.lang.String KEY_ISSUE_CREATED_DATE
           
protected static java.lang.String KEY_ISSUE_ID
           
protected static java.lang.String KEY_ISSUE_ID_VAR
           
protected static java.lang.String KEY_ISSUE_KEY_VAR
           
protected static java.lang.String KEY_ISSUE_REPORTER
           
protected static java.lang.String KEY_ISSUE_SECURITY
           
protected static java.lang.String KEY_ISSUE_TYPE
           
protected static java.lang.String KEY_ISSUE_UPDATED_DATE
           
protected static java.lang.String KEY_PRIORITY
           
protected static java.lang.String KEY_PROJECT_ID
           
protected static java.lang.String KEY_SUMMARY
           
protected static java.lang.String KEY_VERSIONS
           
 
Fields inherited from class com.atlassian.jira.jelly.ActionTagSupport
FAILURE, ignoreErrors, SUCCESS
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
AbstractCreateIssue(VersionManager versionManager)
           
 
Method Summary
 void addCustomFieldValue(CustomField customField, java.lang.String customFieldValue, java.lang.String key)
           
protected  void endTagExecution(org.apache.commons.jelly.XMLOutput output)
           
 org.ofbiz.core.entity.GenericValue getIssueScheme()
           
 java.lang.Long getIssueSchemeId()
           
 java.util.Map getIssueTypes()
           
protected  java.lang.Long getPreviousIssueSchemeLevelId()
           
protected  java.lang.String getPreviousUsername()
           
 java.util.Map getPriorities()
           
 java.lang.String[] getRequiredContextVariablesAfter()
           
 java.lang.String[] getRequiredProperties()
           
 boolean hasIssueScheme()
           
protected  boolean isDuplicateIssue(org.apache.commons.jelly.XMLOutput output)
           
 void loadPreviousIssue()
           
 void loadPreviousProject()
           
protected  void postTagExecution(org.apache.commons.jelly.XMLOutput output)
           
protected  void preContextValidation()
           
protected  void prePropertyValidation(org.apache.commons.jelly.XMLOutput output)
           
protected  boolean propertyValidation(org.apache.commons.jelly.XMLOutput output)
           
 void setIssue(org.ofbiz.core.entity.GenericValue issue)
           
 void setIssue(java.lang.Long issueId)
           
 void setIssue(java.lang.String issueKey)
           
protected  void setPreviousIssueSchemeLevelId(java.lang.Long previousIssueSchemeLevelId)
           
 void setProject(org.ofbiz.core.entity.GenericValue project)
           
 void setProject(java.lang.Long projectId)
           
 void setProject(java.lang.String projectKey)
           
 
Methods inherited from class com.atlassian.jira.jelly.tag.ProjectAwareActionTagSupport
getProject, getProjectId, getRequiredContextVariables, hasProject
 
Methods inherited from class com.atlassian.jira.jelly.tag.UserAwareActionTagSupport
getUser, getUsername
 
Methods inherited from class com.atlassian.jira.jelly.ActionTagSupport
arrayToString, beforeSetAttributes, contextContainsAfter, contextContainsBefore, contextValidation, copyRedirectUrlParametersToTag, doTag, getActionName, getProperty, getRequest, getResponse, getTagName, getTagName, getWebWorkAdaptor, isBackendAction, isExecuteWebworkOnClose, mapContainsAll, mapProperty, mapProperty, postTagValidation, propertiesContains, propertyContains, reportRequired, reportRequiredContextVariablesAfter, reportRequiredContextVariablesBefore, reportRequiredProperties, setActionName, setBackendAction, setExecuteWebworkOnClose, setProperty, setProperty, toString
 
Methods inherited from class com.atlassian.jira.jelly.JiraDynaBeanTagSupport
getProperties
 
Methods inherited from class org.apache.commons.jelly.DynaBeanTagSupport
getAttributeType, getDynaBean, setAttribute, setContext, setDynaBean
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.jelly.ProjectAware
getContext
 
Methods inherited from interface org.apache.commons.jelly.Tag
getBody, getContext, getParent, invokeBody, setBody, setParent
 

Field Detail

KEY_ISSUE_ID

protected static final java.lang.String KEY_ISSUE_ID
See Also:
Constant Field Values

KEY_PROJECT_ID

protected static final java.lang.String KEY_PROJECT_ID
See Also:
Constant Field Values

KEY_ISSUE_ASSIGNEE

protected static final java.lang.String KEY_ISSUE_ASSIGNEE
See Also:
Constant Field Values

KEY_ISSUE_CREATED_DATE

protected static final java.lang.String KEY_ISSUE_CREATED_DATE
See Also:
Constant Field Values

KEY_ISSUE_UPDATED_DATE

protected static final java.lang.String KEY_ISSUE_UPDATED_DATE
See Also:
Constant Field Values

KEY_ISSUE_TYPE

protected static final java.lang.String KEY_ISSUE_TYPE
See Also:
Constant Field Values

KEY_PRIORITY

protected static final java.lang.String KEY_PRIORITY
See Also:
Constant Field Values

KEY_ISSUE_REPORTER

protected static final java.lang.String KEY_ISSUE_REPORTER
See Also:
Constant Field Values

KEY_SUMMARY

protected static final java.lang.String KEY_SUMMARY
See Also:
Constant Field Values

KEY_DESCRIPTION

protected static final java.lang.String KEY_DESCRIPTION
See Also:
Constant Field Values

KEY_ENVIRONMENT

protected static final java.lang.String KEY_ENVIRONMENT
See Also:
Constant Field Values

KEY_COMPONENTS

protected static final java.lang.String KEY_COMPONENTS
See Also:
Constant Field Values

KEY_VERSIONS

protected static final java.lang.String KEY_VERSIONS
See Also:
Constant Field Values

KEY_FIX_VERSIONS

protected static final java.lang.String KEY_FIX_VERSIONS
See Also:
Constant Field Values

KEY_ISSUE_SECURITY

protected static final java.lang.String KEY_ISSUE_SECURITY
See Also:
Constant Field Values

KEY_DUPLICATE_SUMMARY

protected static final java.lang.String KEY_DUPLICATE_SUMMARY
See Also:
Constant Field Values

KEY_ISSUE_ID_VAR

protected static final java.lang.String KEY_ISSUE_ID_VAR
See Also:
Constant Field Values

KEY_ISSUE_KEY_VAR

protected static final java.lang.String KEY_ISSUE_KEY_VAR
See Also:
Constant Field Values

KEY_ISSUE_ASSIGNEE_VAR

protected static final java.lang.String KEY_ISSUE_ASSIGNEE_VAR
See Also:
Constant Field Values
Constructor Detail

AbstractCreateIssue

public AbstractCreateIssue(VersionManager versionManager)
Method Detail

preContextValidation

protected void preContextValidation()
Overrides:
preContextValidation in class ActionTagSupport

isDuplicateIssue

protected boolean isDuplicateIssue(org.apache.commons.jelly.XMLOutput output)
                            throws org.ofbiz.core.entity.GenericEntityException,
                                   org.xml.sax.SAXException
Throws:
org.ofbiz.core.entity.GenericEntityException
org.xml.sax.SAXException

hasIssueScheme

public boolean hasIssueScheme()

getIssueSchemeId

public java.lang.Long getIssueSchemeId()

getIssueScheme

public org.ofbiz.core.entity.GenericValue getIssueScheme()

getPreviousUsername

protected java.lang.String getPreviousUsername()

getPreviousIssueSchemeLevelId

protected java.lang.Long getPreviousIssueSchemeLevelId()

setPreviousIssueSchemeLevelId

protected void setPreviousIssueSchemeLevelId(java.lang.Long previousIssueSchemeLevelId)

setProject

public void setProject(java.lang.Long projectId)
Specified by:
setProject in interface ProjectContextAccessor

setProject

public void setProject(java.lang.String projectKey)
Specified by:
setProject in interface ProjectContextAccessor

setProject

public void setProject(org.ofbiz.core.entity.GenericValue project)
Specified by:
setProject in interface ProjectContextAccessor

loadPreviousProject

public void loadPreviousProject()
Specified by:
loadPreviousProject in interface ProjectContextAccessor

setIssue

public void setIssue(java.lang.Long issueId)
Specified by:
setIssue in interface IssueContextAccessor

setIssue

public void setIssue(java.lang.String issueKey)
Specified by:
setIssue in interface IssueContextAccessor

setIssue

public void setIssue(org.ofbiz.core.entity.GenericValue issue)
Specified by:
setIssue in interface IssueContextAccessor

loadPreviousIssue

public void loadPreviousIssue()
Specified by:
loadPreviousIssue in interface IssueContextAccessor

prePropertyValidation

protected void prePropertyValidation(org.apache.commons.jelly.XMLOutput output)
                              throws org.apache.commons.jelly.JellyTagException
Overrides:
prePropertyValidation in class ActionTagSupport
Throws:
org.apache.commons.jelly.JellyTagException

getIssueTypes

public java.util.Map getIssueTypes()

getPriorities

public java.util.Map getPriorities()

propertyValidation

protected boolean propertyValidation(org.apache.commons.jelly.XMLOutput output)
                              throws org.apache.commons.jelly.JellyTagException
Overrides:
propertyValidation in class ActionTagSupport
Throws:
org.apache.commons.jelly.JellyTagException

postTagExecution

protected void postTagExecution(org.apache.commons.jelly.XMLOutput output)
                         throws org.apache.commons.jelly.JellyTagException
Overrides:
postTagExecution in class ActionTagSupport
Throws:
org.apache.commons.jelly.JellyTagException

endTagExecution

protected void endTagExecution(org.apache.commons.jelly.XMLOutput output)
Overrides:
endTagExecution in class ActionTagSupport

getRequiredProperties

public java.lang.String[] getRequiredProperties()
Specified by:
getRequiredProperties in class ActionTagSupport

getRequiredContextVariablesAfter

public java.lang.String[] getRequiredContextVariablesAfter()
Specified by:
getRequiredContextVariablesAfter in class ActionTagSupport

addCustomFieldValue

public void addCustomFieldValue(CustomField customField,
                                java.lang.String customFieldValue,
                                java.lang.String key)
Specified by:
addCustomFieldValue in interface CustomFieldValuesAwareTag


Copyright © 2002-2010 Atlassian. All Rights Reserved.