Class OpenProjectAdminPage
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.BasePage
-
- org.xwiki.test.ui.po.ViewPage
-
- org.xwiki.administration.test.po.AdministrationSectionPage
-
- com.xwiki.projectmanagement.test.openproject.OpenProjectAdminPage
-
public class OpenProjectAdminPage extends org.xwiki.administration.test.po.AdministrationSectionPageModels the administration page of the Open Project integration.- Since:
- 1.0-rc-4
- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description OpenProjectAdminPage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNewConnection(String name, String clientUrl, String clientID, String clientSecret)Add a new OAuth connection.voiddeleteConnection(int index)Delete a connection identified by its index in the live data.org.xwiki.livedata.test.po.LiveDataElementgetConnectionsLivedata()static OpenProjectAdminPagegotoPage()Go to the Administration page to the Open Project section.org.xwiki.test.ui.po.ViewPagetriggerColorSyncJob()Trigger the color sync job by pressing the "Sync" button.org.xwiki.test.ui.po.ViewPagetriggerStyleSync()Trigger the Open Project style sync.voidupdateConnection(int index, String name, String clientUrl, String clientID, String clientSecret)Update an OAuth connection displayed in the liveData present in the Admin section.-
Methods inherited from class org.xwiki.administration.test.po.AdministrationSectionPage
clickSave, clickSave, getFormContainerElement, getFormContainerElement, getFormContainerElementForClass, getURL, getURL, getURL, gotoPage, gotoSpaceAdministration, hasHeading, hasLink, waitUntilActionButtonIsLoaded
-
Methods inherited from class org.xwiki.test.ui.po.ViewPage
clickBreadcrumbLink, clickWantedLink, clickWantedLink, contentContainsElement, editSection, exists, getBreadcrumb, getBreadcrumbContent, getContent, getPageBackgroundColor, getTitleColor, getTitleFontFamily, getTranslateButton, hasBreadcrumbContent, hasBreadcrumbContent, hasTranslateButton, isInlinePage, openCommentsDocExtraPane, openHistoryDocExtraPane, openInformationDocExtraPane, scrollToTop, useShortcutForDocExtraPane, useShortcutKeyForCommentPane, useShortcutKeyForHistoryPane, useShortcutKeyForInformationPane, waitForDocExtraPaneActive, waitUntilContent
-
Methods inherited from class org.xwiki.test.ui.po.BasePage
canDelete, clickAdminActionsSubMenuEntry, clickEditSubMenuEntry, clickLocale, clickMoreActionsSubMenuEntry, copy, createInlinePage, createPage, delete, deletePage, edit, editClass, editInline, editObjects, editRights, editWiki, editWYSIWYG, getCurrentUser, getDocumentTitle, getEditURL, getErrorContent, getHTMLMetaDataValue, getLocales, getMetaDataValue, getPageTitle, getPageURL, hasLeftPanel, hasLoginLink, hasNotificationsMenu, hasRenderingError, hideDrawer, isAuthenticated, isDrawerVisible, isForbidden, isNewDocument, isNotificationsMenuOpen, login, logout, register, reloadPage, rename, sendKeys, showDrawer, toggleActionMenu, toggleDrawer, toggleNotificationsMenu, useShortcutKeyForClassEditing, useShortcutKeyForEditing, useShortcutKeyForInlineEditing, useShortcutKeyForObjectEditing, useShortcutKeyForPageDeletion, useShortcutKeyForPageRenaming, useShortcutKeyForRightsEditing, useShortcutKeyForSourceViewer, useShortcutKeyForWikiEditing, useShortcutKeyForWysiwygEditing, viewChildren, watchDocument, watchSpace, watchWiki
-
-
-
-
Method Detail
-
gotoPage
public static OpenProjectAdminPage gotoPage()
Go to the Administration page to the Open Project section.- Returns:
- the view model of the admin page.
-
addNewConnection
public void addNewConnection(String name, String clientUrl, String clientID, String clientSecret)
Add a new OAuth connection.- Parameters:
name- the name of the connection - needs to be unique among the other connections.clientUrl- the url where the OAuth provider is located.clientID- the client id provided by the OAuth provider.clientSecret- the client secret provided by tge OAuth provider.
-
updateConnection
public void updateConnection(int index, String name, String clientUrl, String clientID, String clientSecret)Update an OAuth connection displayed in the liveData present in the Admin section.- Parameters:
index- the index of the connection from the livedata. It starts at 1.name- the new name for the selected connection.clientUrl- the new client url for the selected connection.clientID- the new client id for the selected connection.clientSecret- the new client secret for the selected connection.
-
triggerColorSyncJob
public org.xwiki.test.ui.po.ViewPage triggerColorSyncJob()
Trigger the color sync job by pressing the "Sync" button.- Returns:
- the view page of the Job Scheduler.
-
deleteConnection
public void deleteConnection(int index)
Delete a connection identified by its index in the live data.- Parameters:
index- the index of the connection inside the livedata. The indexing starts at 1.
-
getConnectionsLivedata
public org.xwiki.livedata.test.po.LiveDataElement getConnectionsLivedata()
- Returns:
- the livedata inside the Admin page.
-
triggerStyleSync
public org.xwiki.test.ui.po.ViewPage triggerStyleSync()
Trigger the Open Project style sync.- Returns:
- the view page of the Job Scheduler.
-
-