com.atlassian.jira.web.action.project
Class AddProjectEntity

java.lang.Object
  |
  +--webwork.action.ActionSupport
        |
        +--com.atlassian.jira.action.JiraActionSupport
              |
              +--com.atlassian.jira.web.action.JiraWebActionSupport
                    |
                    +--com.atlassian.jira.web.action.ProjectActionSupport
                          |
                          +--com.atlassian.jira.web.action.project.AbstractProjectAction
                                |
                                +--com.atlassian.jira.web.action.project.ViewProject
                                      |
                                      +--com.atlassian.jira.web.action.project.AddProjectEntity
All Implemented Interfaces:
webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware, java.io.Serializable
Direct Known Subclasses:
AddComponent, AddVersion

public abstract class AddProjectEntity
extends ViewProject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
savedFilters
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
PERMISSION_VIOLATION_RESULT, request
 
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
AddProjectEntity()
           
 
Method Summary
protected  java.lang.String doExecute()
           
protected  void doValidation()
          Confirm that the entity we are about to create: Has a name, Has a case insensitivly unique name.
protected abstract  java.lang.String getAddAction()
           
protected abstract  org.ofbiz.core.entity.GenericValue getExistingEntityByName()
          Return the underlying project entity using getName().
 java.lang.String getName()
           
protected abstract  java.lang.String getNiceName()
          Return the human readable name of this component.
protected abstract  java.util.Collection getProjectEntities()
          Get all project entities for this project.
 void setName(java.lang.String name)
           
 
Methods inherited from class com.atlassian.jira.web.action.project.ViewProject
doDefault, getIssueSecuritySchemes, getPermissionSchemes, getPid, getProject, getProjectCategory, getSchemes, getStringSet, hasAdminPermission, hasProjectAdminPermission, setPid
 
Methods inherited from class com.atlassian.jira.web.action.project.AbstractProjectAction
getDescription, getIssueSecurityScheme, getKey, getLead, getNotificationScheme, getPermissionScheme, getUrl, setDescription, setIssueSecurityScheme, setKey, setLead, setNotificationScheme, setPermissionScheme, setUrl
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getProjectManager, getSavedFilters
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
getCachedGroups, getConstantsManager, getGlobalColumns, getPropertySet, getRedirect, getRemoteUser, getUserPreferences, isHasPermission, isHasPermission
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, getResult, isIndexing
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, addIllegalArgumentException, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getLocale, getText, getTexts, getTexts, 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
 

Constructor Detail

AddProjectEntity

public AddProjectEntity()
Method Detail

getAddAction

protected abstract java.lang.String getAddAction()

getNiceName

protected abstract java.lang.String getNiceName()
Return the human readable name of this component.


getExistingEntityByName

protected abstract org.ofbiz.core.entity.GenericValue getExistingEntityByName()
                                                                       throws java.lang.Exception
Return the underlying project entity using getName().

Returns:
GenericValue Project Entity
Throws:
java.lang.Exception

getProjectEntities

protected abstract java.util.Collection getProjectEntities()
                                                    throws java.lang.Exception
Get all project entities for this project.

Returns:
Collection of GenericValues of the project entities.
Throws:
java.lang.Exception

getName

public java.lang.String getName()
Overrides:
getName in class AbstractProjectAction

setName

public void setName(java.lang.String name)
Overrides:
setName in class AbstractProjectAction

doExecute

protected java.lang.String doExecute()
                              throws java.lang.Exception
Overrides:
doExecute in class ViewProject
java.lang.Exception

doValidation

protected void doValidation()
Confirm that the entity we are about to create:

Overrides:
doValidation in class ViewProject


Copyright © 2002-2003 Atlassian. All Rights Reserved.