|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.studio.haup.pageobjects.AbstractHaupPage
com.atlassian.studio.haup.pageobjects.ApplicationAccessPage
public class ApplicationAccessPage
Represents the Application Access page, which you can find in the Administration menu of Jira / Jira Studio.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.studio.haup.pageobjects.AbstractHaupPage |
|---|
driver, finder, footer, pageBinder, title |
| Constructor Summary | |
|---|---|
ApplicationAccessPage()
|
|
| Method Summary | |
|---|---|
boolean |
allCheckboxesForAppDisabled(SupportedApplication application)
|
boolean |
allCheckboxesForAppEnabled(SupportedApplication application)
|
ApplicationAccessPage |
applyChanges()
Applies changes to application accesses. |
ApplicationAccessPage |
cancelChanges()
Cancels changes to application accesses. |
List<SupportedApplication> |
getApplicationsWithAllUsersGranted()
Returns the applications that all the users on the page have access to. |
int |
getCurrentPageNumber()
Returns the current page number. |
List<String> |
getFailedUsers(SupportedApplication application,
AccessAction action)
Returns the list of failed users of the application and operation. |
Set<SupportedApplication> |
getGrantedApplications(String username)
Returns the set of granted applications. |
int |
getNumberOfSuccessfulUsers(SupportedApplication application,
AccessAction action)
Returns the number of successful users of the application and operation. |
protected String |
getPageTitle()
Returns the title of the page. |
RemainingAccessSection |
getRemainingAccessSection()
Returns the remaining access section on the page. |
SupportedApplication |
getSearchApplication()
Returns the name of the application to restrict the search on. |
String |
getSearchText()
Returns the value of the search text. |
String |
getTableMessage()
|
String |
getUrl()
|
Set<String> |
getUsernames()
Returns all the usernames on the page. |
List<Integer> |
getVisiblePagination()
Returns all the visible page numbers in sorted order. |
ApplicationAccessPage |
goToPageNumber(int pageNumber)
Navigates to the specified page number of the results. |
ApplicationAccessPage |
grantAccess(String username,
Set<SupportedApplication> applications)
Grants the user access to the specified applications. |
ApplicationAccessPage |
grantAccess(String username,
SupportedApplication application)
Grants the user access to the application. |
ApplicationAccessPage |
grantAll(SupportedApplication application)
Grants all users shown on the page to have access to the specified application. |
boolean |
hasErrors()
Returns true if errors are displayed in the page |
boolean |
isApplicationSearchOption(SupportedApplication application)
|
boolean |
isGranted(String username,
SupportedApplication application)
Returns true if the user has been granted access to the specified application. |
ApplicationAccessPage |
revokeAccess(String username,
Set<SupportedApplication> applications)
Revokes the user's access to the specified applications. |
ApplicationAccessPage |
revokeAccess(String username,
SupportedApplication application)
Revokes the user's access to the application. |
RevokeAccessWarningMessageDialog |
revokeAccessExpectingWarningMessage(String username,
SupportedApplication application)
Revokes the user's access to the application, and expects a warning message dialog pops up. |
ApplicationAccessPage |
revokeAll(SupportedApplication application)
Revoke all users shown on the page to have access to the specified application. |
RevokeAccessWarningMessageDialog |
revokeAllExpectingWarningMessage(SupportedApplication application)
Revoke all users shown on the page to have access to the specified application, and expect a warning message dialog pops up. |
ApplicationAccessPage |
searchUsers(String searchText)
Performs the search for users with no restriction on application access. |
ApplicationAccessPage |
searchUsersWithApplicationAccess(String searchText,
SupportedApplication application)
Performs the search for users with access to the specified application. |
ApplicationAccessPage |
setAccess(String username,
Set<SupportedApplication> applications)
Sets the applications that the user will have access to. |
| Methods inherited from class com.atlassian.studio.haup.pageobjects.AbstractHaupPage |
|---|
getMessages, getMessages, getMessages, waitForPageLoad |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationAccessPage()
| Method Detail |
|---|
public String getUrl()
protected String getPageTitle()
AbstractHaupPage
getPageTitle in class AbstractHaupPagepublic boolean hasErrors()
public String getSearchText()
public SupportedApplication getSearchApplication()
IllegalStateException - if the application name could not be converted to a SupportedApplicationpublic boolean isApplicationSearchOption(SupportedApplication application)
public ApplicationAccessPage searchUsersWithApplicationAccess(String searchText,
SupportedApplication application)
searchUsers(String).
searchText - search textapplication - application to restrict search to. Must be a valid name from SupportedApplication#name().
public ApplicationAccessPage searchUsers(String searchText)
searchText - search text
public Set<String> getUsernames()
public List<Integer> getVisiblePagination()
public int getCurrentPageNumber()
public ApplicationAccessPage goToPageNumber(int pageNumber)
pageNumber - page number to navigate to
public ApplicationAccessPage grantAll(SupportedApplication application)
applyChanges() is called.
It proceeds by ticking the master checkbox.
application - application to grant to all users on the page
public ApplicationAccessPage revokeAll(SupportedApplication application)
throws IllegalStateException
applyChanges() is called.
It proceeds by unticking the master checkbox.
The master must be ticked before the call
application - application to grant to all users on the page
IllegalStateException - if the master checkbox isn't tickedpublic RevokeAccessWarningMessageDialog revokeAllExpectingWarningMessage(SupportedApplication application)
applyChanges() is called.
It proceeds by unticking the master checkbox.
The master must be ticked before the call
application - application to grant to all users on the page
IllegalStateException - if the master checkbox isn't ticked
public ApplicationAccessPage grantAccess(String username,
SupportedApplication application)
applyChanges() is called.
username - name of user to grant access to applicationsapplication - application to grant the user access to
public ApplicationAccessPage grantAccess(String username,
Set<SupportedApplication> applications)
applyChanges() is called.
username - name of user to grant access to applicationsapplications - applications to grant the user access to
public ApplicationAccessPage revokeAccess(String username,
Set<SupportedApplication> applications)
applyChanges() is called.
username - name of user to grant access to applicationsapplications - applications to revoke the user's access from
public ApplicationAccessPage revokeAccess(String username,
SupportedApplication application)
applyChanges() is called.
username - name of user to grant access to applicationsapplication - application to revoke the user's access from
public RevokeAccessWarningMessageDialog revokeAccessExpectingWarningMessage(String username,
SupportedApplication application)
applyChanges() is called.
username - name of user to grant access to applicationsapplication - application to revoke the user's access from
public ApplicationAccessPage setAccess(String username,
Set<SupportedApplication> applications)
applyChanges() is called.
username - name of user to grant access to applicationsapplications - absolute list of applications that the user will have access to
public ApplicationAccessPage applyChanges()
public ApplicationAccessPage cancelChanges()
public boolean isGranted(String username,
SupportedApplication application)
username - name of the userapplication - application
IllegalArgumentException - if the user could not be foundpublic Set<SupportedApplication> getGrantedApplications(String username)
username - username to check access for
public boolean allCheckboxesForAppEnabled(SupportedApplication application)
public boolean allCheckboxesForAppDisabled(SupportedApplication application)
public RemainingAccessSection getRemainingAccessSection()
public String getTableMessage()
public List<SupportedApplication> getApplicationsWithAllUsersGranted()
public List<String> getFailedUsers(SupportedApplication application,
AccessAction action)
application - application to return failed users foraction - action that was performed
public int getNumberOfSuccessfulUsers(SupportedApplication application,
AccessAction action)
application - applicationaction - action that was performed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||