|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.selenium.client.Dialog com.atlassian.confluence.selenium.client.PagePermissionsEditor
public class PagePermissionsEditor
Field Summary | |
---|---|
static java.lang.String |
PERMISSIONS_DIALOG_ID
|
Fields inherited from class com.atlassian.confluence.selenium.client.Dialog |
---|
client, id |
Method Summary | |
---|---|
void |
addContentPermission(ContentPermission contentPermission)
|
void |
addEntitiesViaInputField(java.lang.String entitiesStr)
|
void |
assertHasInheritedPermission(ContentPermission contentPermission,
Page ancestor)
|
void |
assertHasNoInheritedPermission(ContentPermission contentPermission,
Page ancestor)
|
void |
assertHasNoPermission(ContentPermission contentPermission)
|
void |
assertHasPermission(ContentPermission contentPermission)
|
void |
cancel()
Clicks the Permissions dialog's "Cancel" button, to close the dialog without saving changes. |
GroupPickerPopup |
chooseGroup()
|
UserPickerPopup |
chooseUser()
Clicks the "Remove" row link to delete all permissions for an Entity |
void |
clickChooseMe()
|
QuickNavBox |
getAutocomplete()
|
ContentPermissionType |
getCurrentPermissionType()
|
java.lang.String |
getDuplicateUserFlaggedJS(ContentPermission contentPermission)
Returns true if the specified user is flagged as duplicated in the permissions table. |
java.lang.String |
getInheritedPermissionRowSelectorJS(ContentPermission contentPermission,
Page ancestor)
|
java.lang.String |
getPermissionRowSelectorJS(ContentPermission contentPermission)
|
java.util.List<java.lang.String> |
getPermissions(ContentPermissionType permissionType,
ContentPermissionEntityType entityType)
Returns a list of the user names currently in the direct permission table with the given permission and entity type. |
java.lang.String |
getRemovePermissionRowLinkId(ContentPermission contentPermission)
|
int |
getScrollPositionOfElement(java.lang.String selector)
Returns the scrollTop of the element for the passed selector. |
boolean |
isPermissionInViewport(ContentPermission contentPermission)
Returns true if the row for the passed permission is viewable in the scrollable tables div. |
void |
removePermission(ContentPermission contentPermission)
Removed the permission for the given user or group with the supplied permission type. |
void |
setCurrentPermissionType(ContentPermissionType currentPermissionType)
Sets the current ContentPermissionType choice in the PagePermissionsEditor
by clicking the appropriate radio button. |
void |
typeUserName(java.lang.String name)
Types text in the username "smart field", launching the field's dropdown if enough text is entered. |
void |
update()
Clicks the Permissions dialog's "Update" button, which may either save the edited Permissions to the Page editor form (for Edit mode) or save the edited Permissions with AJAX (for View mode). |
void |
waitForUserNameDropDown()
Waits until a 'smart field' drop down visible for the user name field |
void |
waitForUserNameDropDownToClose()
Waits until a 'smart field' drop down is not visible for the user name field |
Methods inherited from class com.atlassian.confluence.selenium.client.Dialog |
---|
clickButton, clickPageMenu, getId, getTitle, hasButton, isButtonDisabled, isVisible, pressEscape, waitUntilHidden, waitUntilVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PERMISSIONS_DIALOG_ID
Method Detail |
---|
public void setCurrentPermissionType(ContentPermissionType currentPermissionType)
ContentPermissionType
choice in the PagePermissionsEditor
by clicking the appropriate radio button. This method will not fail if the
restrictionTypeToAdd is already selected.
public ContentPermissionType getCurrentPermissionType()
public void clickChooseMe()
public void addContentPermission(ContentPermission contentPermission)
public void addEntitiesViaInputField(java.lang.String entitiesStr)
public void typeUserName(java.lang.String name)
public void waitForUserNameDropDown()
public void waitForUserNameDropDownToClose()
public void update()
public void cancel()
public void removePermission(ContentPermission contentPermission)
contentPermission
- public UserPickerPopup chooseUser()
public GroupPickerPopup chooseGroup()
public java.util.List<java.lang.String> getPermissions(ContentPermissionType permissionType, ContentPermissionEntityType entityType)
permissionType
- type of permission to retrieve, either "view" or "edit"entityType
- type of entity to retrieve, either "Users" or "Group" (note case)public void assertHasPermission(ContentPermission contentPermission)
public void assertHasInheritedPermission(ContentPermission contentPermission, Page ancestor)
public void assertHasNoPermission(ContentPermission contentPermission)
public void assertHasNoInheritedPermission(ContentPermission contentPermission, Page ancestor)
public QuickNavBox getAutocomplete()
public java.lang.String getDuplicateUserFlaggedJS(ContentPermission contentPermission)
contentPermission
- public java.lang.String getPermissionRowSelectorJS(ContentPermission contentPermission)
public java.lang.String getInheritedPermissionRowSelectorJS(ContentPermission contentPermission, Page ancestor)
public java.lang.String getRemovePermissionRowLinkId(ContentPermission contentPermission)
public boolean isPermissionInViewport(ContentPermission contentPermission)
public int getScrollPositionOfElement(java.lang.String selector)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |