com.ibm.team.fvt.tests.clm.pages.clm
Class ClmAdminProjectAreaPage

java.lang.Object
  extended by com.ibm.team.fvt.tests.web.WebPage
      extended by com.ibm.team.fvt.tests.clm.pages.ClmWebPage
          extended by com.ibm.team.fvt.tests.clm.pages.clm.ClmAdminWebPage
              extended by com.ibm.team.fvt.tests.clm.pages.clm.ClmAdminProjectAreaPage
All Implemented Interfaces:
ClmWebPageConstants
Direct Known Subclasses:
QmNewWebProjectPage, RmWebManageProjectAreaPage

public class ClmAdminProjectAreaPage
extends ClmAdminWebPage

Class to manage any admin project area page.

The page address is: https://server:port/appli/admin.

Following features are available on this page:

Here are some other specific functionalities that this page specializes:


Field Summary
 
Fields inherited from class com.ibm.team.fvt.tests.web.WebPage
NO_DATA
 
Fields inherited from interface com.ibm.team.fvt.tests.clm.pages.ClmWebPageConstants
ADMINISTRATION_HOME_MENU_GROUP, ETL_JOB_DATE_FORMAT, JAZZ_TEAM_SERVER_HOME_MENU_ITEM, LIFECYCLE_PROJECT_ADMIN_MENU_ITEM, LOGIN_PASSWORD_LOCATOR, LOGIN_TAGNAME_LOCATOR, LOGIN_USERID_LOCATOR, USER_NOT_AUTHORIZED_MESSAGE_ID, USER_NOT_AUTHORIZED_MESSAGE_LOCATOR
 
Constructor Summary
ClmAdminProjectAreaPage(java.lang.String url, ClmConfig config, com.ibm.team.fvt.tests.config.User user, java.lang.String... data)
           
 
Method Summary
 void addMember(ClmUser member, java.lang.String role)
          Adds a user with the given role to the current project.
 void createIteration(java.lang.String parentName, java.lang.String identifier, java.lang.String displayName, java.util.Date startDate, java.util.Date endDate, boolean isScheduledRelease)
          Create an iteration with the specified name
 void createTimeline(java.lang.String identifier, java.lang.String name, java.util.Date startDate, java.util.Date endDate, boolean isProjectTimeline)
          Create a timeline with the specified name
 java.lang.String getProjectAreaName()
          Return the project area name.
 java.lang.String getTitle()
           
 ClmAdminActiveProjectAreasPage gotoActiveProjectAreasPage()
          Go to the Active Project Areas page.
 void selectSection(java.lang.String section)
          Select the given section.
 void setAdministrator(ClmUser user)
          Set the given user as administrator of the project area and save.
 void setAdministrator(ClmUser user, boolean save)
          Set the given user as administrator of the project area.
 void setProjectAreaName(java.lang.String name)
          Set the name of the current project area.
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.clm.ClmAdminWebPage
clickReports, gotoProjectAreasPage
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.ClmWebPage
checkRichHover, clickHomeMenuItem, getBannerTitle, getCcmApplication, getConfig, getDmApplication, getJtsApplication, getLpaApplication, getMiniDashboard, getQmApplication, getRmApplication, getUser, gotoCcmProjectPage, gotoCcmProjectPage, gotoDmProjectPage, gotoDmProjectPage, gotoJtsAdminHomePage, gotoLpaAllProjectsPage, gotoQmProjectPage, gotoQmProjectPage, gotoRmProjectPage, gotoRmProjectPage, openAdminUIMenu, openHelpMenu, openHomeMenu, openMenu, openMenu, openToolbarMenu, openUserProfileMenu, save, waitForResourceLinkElement, waitWhileBusy
 
Methods inherited from class com.ibm.team.fvt.tests.web.WebPage
checkHoverTitle, checkRichHover, equals, get, getBrowser, getCurrentPage, getLocation, getPage, getPage, getPageUsingBrowser, goBack, hashCode, login, login, openPage, openPage, openPageUsingBrowser, openPageUsingHoverTitle, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, openPageUsingLink, refresh, richHoverOverLink, searchPageInHistory, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClmAdminProjectAreaPage

public ClmAdminProjectAreaPage(java.lang.String url,
                               ClmConfig config,
                               com.ibm.team.fvt.tests.config.User user,
                               java.lang.String... data)
Method Detail

addMember

public void addMember(ClmUser member,
                      java.lang.String role)
Adds a user with the given role to the current project.

Parameters:
member - The user to be added as a member
role - The member role

createIteration

public void createIteration(java.lang.String parentName,
                            java.lang.String identifier,
                            java.lang.String displayName,
                            java.util.Date startDate,
                            java.util.Date endDate,
                            boolean isScheduledRelease)
Create an iteration with the specified name

Parameters:
parentName - name of time line which the iteration will be created belong to
identifier - identifier of iteration
displayName - Name of iteration
startDate - Start Date of iteration
endDate - End date of iteration
isScheduledRelease - Whether set it as project iteration

createTimeline

public void createTimeline(java.lang.String identifier,
                           java.lang.String name,
                           java.util.Date startDate,
                           java.util.Date endDate,
                           boolean isProjectTimeline)
Create a timeline with the specified name

Parameters:
identifier - identifier of timeline
name - Name of time line
startDate - The Start Date of timeline
endDate - The end date of timeline
isProjectTimeline - Whether set it as project timeline

getProjectAreaName

public java.lang.String getProjectAreaName()
Return the project area name.

Returns:
The name as a String.

getTitle

public java.lang.String getTitle()
Overrides:
getTitle in class ClmWebPage

gotoActiveProjectAreasPage

public ClmAdminActiveProjectAreasPage gotoActiveProjectAreasPage()
Go to the Active Project Areas page.

Returns:
The opened page as a ClmAdminActiveProjectAreasPage.

selectSection

public void selectSection(java.lang.String section)
Select the given section.

Parameters:
section - The section to select

setAdministrator

public void setAdministrator(ClmUser user)
Set the given user as administrator of the project area and save.

Note that the project area admin page is saved at the end of the operation.

Parameters:
user - The user to be set as administrator

setAdministrator

public void setAdministrator(ClmUser user,
                             boolean save)
Set the given user as administrator of the project area.

Parameters:
user - The user to be set as administrator
save - Flag telling whether the page will be saved after having set the administrator or not

setProjectAreaName

public void setProjectAreaName(java.lang.String name)
Set the name of the current project area.

Parameters:
name - The new name