com.atlassian.jira.action.project
Class AbstractProjectEntityEdit

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.action.JiraNonWebActionSupport
              extended by com.atlassian.jira.action.project.AbstractProjectEntityEdit
All Implemented Interfaces:
SafeAction, I18nHelper, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
ComponentEdit

public class AbstractProjectEntityEdit
extends JiraNonWebActionSupport

This class is a common class for the editing of project entities. The classes used to edit individual entities (components, versions etc) should extend this class

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
AbstractProjectEntityEdit()
           
 
Method Summary
protected  String doExecute()
          Sets the name of the entity to the new name
protected  void doValidation()
          Carries out validation that the name must exist and a project be selected.
 String getDescription()
           
 org.ofbiz.core.entity.GenericValue getEntity()
           
 String getName()
           
 org.ofbiz.core.entity.GenericValue getProject()
           
 void setDescription(String description)
           
 void setEntity(org.ofbiz.core.entity.GenericValue entity)
           
 void setName(String name)
           
 void setProject(org.ofbiz.core.entity.GenericValue project)
           
 
Methods inherited from class com.atlassian.jira.action.JiraNonWebActionSupport
doDefault, execute, getLoggedInUser, isDispatchEvent, setDispatchEvent, setRemoteUser
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, getActionName, getApplicationProperties, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, getCommandName, 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
getCommandName, setCommand
 

Constructor Detail

AbstractProjectEntityEdit

public AbstractProjectEntityEdit()
Method Detail

doValidation

protected void doValidation()
Carries out validation that the name must exist and a project be selected. if not then an ErrorMessage will be added to the webwork action

Overrides:
doValidation in class webwork.action.ActionSupport

doExecute

protected String doExecute()
                    throws Exception
Sets the name of the entity to the new name

Overrides:
doExecute in class webwork.action.ActionSupport
Returns:
String to indicate success of action
Throws:
Exception

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getProject

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

setProject

public void setProject(org.ofbiz.core.entity.GenericValue project)

getEntity

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

setEntity

public void setEntity(org.ofbiz.core.entity.GenericValue entity)


Copyright © 2002-2012 Atlassian. All Rights Reserved.