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

java.lang.Object
  extended byActionSupport
      extended bycom.atlassian.jira.action.JiraActionSupport
          extended bycom.atlassian.jira.web.action.JiraWebActionSupport
              extended bycom.atlassian.jira.web.action.ProjectActionSupport
                  extended bycom.atlassian.jira.web.action.project.AbstractProjectAction
                      extended bycom.atlassian.jira.web.action.project.ViewProject
                          extended bycom.atlassian.jira.web.action.project.AddProjectEntity
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
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, permissionManager, request
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
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  java.util.Map getBackendVariablesMap()
           
protected abstract  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, getFieldLayoutSchemes, getIssueSecuritySchemes, getPermissionSchemes, getPid, getProject, getProjectCategory, getProjectEmail, getRepositories, getSchemes, getStringSet, hasAdminPermission, hasProjectAdminPermission, isEnterprise, isHasDefaultSMTPMailServer, isVersionArchived, setPid
 
Methods inherited from class com.atlassian.jira.web.action.project.AbstractProjectAction
getAssigneeType, getAssigneeTypes, getDescription, getIssueSecurityScheme, getKey, getLead, getNotificationScheme, getPermissionScheme, getPrettyAssigneeType, getUrl, setAssigneeType, setDescription, setIssueSecurityScheme, setKey, setLead, setNotificationScheme, setPermissionScheme, setUrl
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSavedFilters
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDefaultAssignee, getField, getLocale, getOutlookDate, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getText, getText, getText, getText, getUserFullName, getUserPreferences, isDefaultAssignee, isDefaultAssignee, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, processDefaultAssignee, processDefaultAssignee
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, getLocaleUtils, getResult, isIndexing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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
Throws:
java.lang.Exception

getBackendVariablesMap

protected java.util.Map getBackendVariablesMap()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

doValidation

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

Overrides:
doValidation in class ViewProject