com.atlassian.jira.pageobjects.project.summary
Class EditProjectDialog

java.lang.Object
  extended by com.atlassian.jira.pageobjects.dialogs.JiraDialog
      extended by com.atlassian.jira.pageobjects.dialogs.FormDialog
          extended by com.atlassian.jira.pageobjects.project.summary.EditProjectDialog

public class EditProjectDialog
extends FormDialog

Edit project dialog as launched from the project configuration summary page

Since:
v4.4

Field Summary
 
Fields inherited from class com.atlassian.jira.pageobjects.dialogs.FormDialog
form, FORM_SUBMITTING_CLASS, header, loading, messages
 
Fields inherited from class com.atlassian.jira.pageobjects.dialogs.JiraDialog
binder, CONTENT_AREA_CLASS, CONTENT_READY_CLASS, DIALOG_CLASS, DIALOG_OPEN_CLASS, driver, extendedFinder, HEADING_AREA_CLASS, id, locator, queryFactory
 
Constructor Summary
EditProjectDialog()
           
 
Method Summary
 EditProjectDialog chooseAvatarOption(int number)
          Select an avatar from the avatar picker, based on its position in the list of available avatars.
 String getErrorMessage()
           
 Map<String,String> getFormErrors()
          Return a mapping of the errors currently on the form.
 com.atlassian.pageobjects.elements.query.TimedQuery<String> getProjectDescription()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<String> getProjectKey()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<String> getProjectName()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<String> getUrl()
           
 void initialize()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isProjectKeyDisabled()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isProjectKeyVisible()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isWarningDisplayed()
           
 EditProjectDialog setAvatar(String id)
          Select an avatar from the avatar picker, based on its database ID.
 EditProjectDialog setDescription(String description)
           
 EditProjectDialog setProjectKey(String newProjectKey)
           
 EditProjectDialog setProjectName(String newProjectName)
           
 EditProjectDialog setUrl(String url)
           
 boolean submit()
           
 EditProjectDialog toggleKeyEdit()
           
 
Methods inherited from class com.atlassian.jira.pageobjects.dialogs.FormDialog
assertDialogClosed, assertDialogOpen, close, escape, getAuiMessage, getDialogElement, getFormErrorElements, getFormErrorList, getTimedTitle, getTitle, hasFormErrors, initAbstractDialog, messages, ready, setElement, submit, submit, submit, waitForFormErrors, waitUntilClosed, waitUntilHidden, waitWhileSubmitting
 
Methods inherited from class com.atlassian.jira.pageobjects.dialogs.JiraDialog
find, find, findAll, findAll, isClosed, isInDOM, isOpen, waitUntilFinishedLoading
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditProjectDialog

public EditProjectDialog()
Method Detail

initialize

public void initialize()

setProjectName

public EditProjectDialog setProjectName(String newProjectName)

isProjectKeyVisible

public com.atlassian.pageobjects.elements.query.TimedCondition isProjectKeyVisible()

setProjectKey

public EditProjectDialog setProjectKey(String newProjectKey)

getProjectKey

public com.atlassian.pageobjects.elements.query.TimedQuery<String> getProjectKey()

getProjectName

public com.atlassian.pageobjects.elements.query.TimedQuery<String> getProjectName()

getProjectDescription

public com.atlassian.pageobjects.elements.query.TimedQuery<String> getProjectDescription()

setUrl

public EditProjectDialog setUrl(String url)

getUrl

public com.atlassian.pageobjects.elements.query.TimedQuery<String> getUrl()

setAvatar

public EditProjectDialog setAvatar(String id)
Select an avatar from the avatar picker, based on its database ID.

Parameters:
id -
Returns:
the edit project dialog

chooseAvatarOption

public EditProjectDialog chooseAvatarOption(int number)
Select an avatar from the avatar picker, based on its position in the list of available avatars.

Parameters:
number - from 1 to N, where N is the (expected?) number of options. There are ~16 system avatars.
Returns:
the edit project dialog

setDescription

public EditProjectDialog setDescription(String description)

submit

public boolean submit()

getErrorMessage

public String getErrorMessage()

getFormErrors

public Map<String,String> getFormErrors()
Description copied from class: FormDialog
Return a mapping of the errors currently on the form. The mapping if from parameterName -> error.

Overrides:
getFormErrors in class FormDialog
Returns:
a mapping from parameterName -> error of all the errors currently on the form.

isProjectKeyDisabled

public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isProjectKeyDisabled()

toggleKeyEdit

public EditProjectDialog toggleKeyEdit()

isWarningDisplayed

public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isWarningDisplayed()


Copyright © 2002-2014 Atlassian. All Rights Reserved.