@Component public class SecurityClearancePage extends ConsolePage
renderableParent, webDriver| Constructor and Description |
|---|
SecurityClearancePage() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyEmptyFilterAfterNoData()
Clears filter and waits for no data message to disappear in order to be sure that the empty filter has been applied
Can be used after the "No matching users were found.
|
SecurityClearancePage |
clearNameFilter()
Clears the name filter
|
void |
clickOnUser(String userName)
Click on the User
|
List<String> |
getClearanceOptions(String userName)
Get the list of clearance options for the given user
|
String |
getFixedClearance(String userName)
Get administrators security clearances
|
String |
getNameFilter()
Get the text from the name filter box.
|
List<String> |
getNames()
Get all the names (first name, space, last name) displayed on the page.
|
int |
getNumberOfPages()
Get the available pages.
|
String |
getPageURL(String... context)
Page URL
|
List<String> |
getResultsPerPageOptions()
Get the available results per page options.
|
String |
getSelectedItemsPerPageValue()
Get the selected items per page value
|
Map<String,String> |
getUserClearances()
Get all user clearances displayed on the page.
|
List<String> |
getUserNames()
Get all the user names displayed on the page.
|
org.openqa.selenium.WebElement |
getUserRow(String userName) |
String |
getUserSecurityClearance(String userName)
Get the specified user's Security Clearance as a String
|
boolean |
isBackButtonEnabled()
Checks if the Back button is enabled
|
boolean |
isEmpty()
Indicates whether the result list is empty or not
|
boolean |
isErrorLoadingDataDisplayed()
Checks if the "There was an error loading the data" error is displayed
Waits for the loading message to disappear to make sure that the error page would have time to be displayed
|
boolean |
isNextButtonEnabled()
Checks if the Next button is enabled
|
boolean |
isUsersClearanceModifiable(String userName)
Check if a user's clearance can be modified.
|
boolean |
isUserShown(String userName)
Indicates whether the given user is shown in the current page of results
|
void |
selectResultsPerPageOption(String optionLabel)
Select results per page option
|
ConfirmationPrompt |
setClearance(String userName,
String clearance)
Set a users security clearance
|
SecurityClearancePage |
setNameFilter(String filter)
Sets text in the name filter input.
|
getSharePageNavigation, open, renderclosePage, getCurrentUrl, getLastRenderedPage, getPageTitle, refreshAndReRenderCurrentPage, refreshCurrentPageas, getAllFields, getLastRendered, renderChildrenpublic String getPageURL(String... context)
getPageURL in class ConsolePageorg.alfresco.po.common.Page#getPageURL(java.lang.String[])public SecurityClearancePage clearNameFilter()
public SecurityClearancePage setNameFilter(String filter)
public String getNameFilter()
public int getNumberOfPages()
public List<String> getResultsPerPageOptions()
public boolean isEmpty()
public boolean isErrorLoadingDataDisplayed()
public boolean isBackButtonEnabled()
public boolean isNextButtonEnabled()
public void applyEmptyFilterAfterNoData()
public boolean isUserShown(String userName)
public String getUserSecurityClearance(String userName)
public List<String> getNames()
public Map<String,String> getUserClearances()
public ConfirmationPrompt setClearance(String userName, String clearance)
public List<String> getClearanceOptions(String userName)
public org.openqa.selenium.WebElement getUserRow(String userName)
public void clickOnUser(String userName)
public void selectResultsPerPageOption(String optionLabel)
optionLabel - is the numeric value of option displayed, to avoid language dependency, so to select "50 per page" the parameter would be "50"public String getSelectedItemsPerPageValue()
public boolean isUsersClearanceModifiable(String userName)
userName - The user's username.Copyright © 2005–2016 Alfresco Software. All rights reserved.