com.atlassian.jira.action.action
Class ActionCreate

java.lang.Object
  extended bywebwork.action.ActionSupport
      extended bycom.atlassian.jira.action.JiraActionSupport
          extended bycom.atlassian.jira.action.JiraNonWebActionSupport
              extended bycom.atlassian.jira.action.issue.AbstractIssueAction
                  extended bycom.atlassian.jira.action.issue.AbstractIssueUpdateAction
                      extended bycom.atlassian.jira.action.action.ActionCreate
All Implemented Interfaces:
webwork.action.Action, webwork.action.CommandDriven, I18nHelper, webwork.action.IllegalArgumentAware, Serializable
Direct Known Subclasses:
WorklogCreate

public class ActionCreate
extends AbstractIssueUpdateAction

See Also:
Serialized Form

Field Summary
(package private)  org.ofbiz.core.entity.GenericValue action
           
(package private)  Long actionNum
           
(package private)  String body
           
(package private)  String level
           
(package private)  Timestamp timestamp
           
 
Fields inherited from class com.atlassian.jira.action.issue.AbstractIssueUpdateAction
textAnalyzer
 
Fields inherited from class com.atlassian.jira.action.JiraNonWebActionSupport
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface com.atlassian.jira.util.I18nHelper
DEFAULT_RESOURCE_BUNDLE
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ActionCreate(IssueUpdater issueUpdater, TextAnalyzer textAnalyzer, PermissionManager permissionManager, CacheManager cacheManager)
           
 
Method Summary
protected  void createAction(String type, Long eventTypeId, boolean updateIssue)
          Create an action, and optionally update the issue.
 String doComment()
          Adds a comment to the current issue.
 org.ofbiz.core.entity.GenericValue getAction()
           
 Long getActionNum()
           
 String getBody()
           
 String getLevel()
           
 Timestamp getTimestamp()
           
 void setActionNum(Long actionNum)
           
 void setBody(String body)
           
 void setLevel(String level)
           
 void setTimestamp(Timestamp timestamp)
           
 
Methods inherited from class com.atlassian.jira.action.issue.AbstractIssueUpdateAction
doUpdate, doUpdate, doUpdate, doUpdate, doUpdateWithChangelog, getOriginalIssue, setIssue
 
Methods inherited from class com.atlassian.jira.action.issue.AbstractIssueAction
doValidation, getIssue
 
Methods inherited from class com.atlassian.jira.action.JiraNonWebActionSupport
doDefault, execute, getRemoteUser, isDispatchEvent, setDispatchEvent, setRemoteUser
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doExecute, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Field Detail

action

org.ofbiz.core.entity.GenericValue action

body

String body

level

String level

actionNum

Long actionNum

timestamp

Timestamp timestamp
Constructor Detail

ActionCreate

public ActionCreate(IssueUpdater issueUpdater,
                    TextAnalyzer textAnalyzer,
                    PermissionManager permissionManager,
                    CacheManager cacheManager)
Method Detail

doComment

public String doComment()
                 throws Exception
Adds a comment to the current issue. This function is called from several places.

Returns:
Action.SUCCESS or Action.ERROR.
Throws:
Exception

createAction

protected void createAction(String type,
                            Long eventTypeId,
                            boolean updateIssue)
                     throws Exception
Create an action, and optionally update the issue.

Throws:
Exception

getAction

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

getBody

public String getBody()

setBody

public void setBody(String body)

getLevel

public String getLevel()

setLevel

public void setLevel(String level)

getActionNum

public Long getActionNum()

setActionNum

public void setActionNum(Long actionNum)

getTimestamp

public Timestamp getTimestamp()

setTimestamp

public void setTimestamp(Timestamp timestamp)


Copyright © 2002-2006 Atlassian. All Rights Reserved.