@Component public class ManagePermissions extends FormPage
renderableParent, webDriver| Constructor and Description |
|---|
ManagePermissions() |
| Modifier and Type | Method and Description |
|---|---|
ConfirmationPrompt |
clickOnInheritPermissionButton()
click on inerit permissions button
|
AuthoritySelectDialog |
clickOnSelectUsersAndGroups()
click on add user and groups button
|
void |
deleteAuthority(String username)
Delete the permissions for specific user assuming that the user was created by
org.alfresco.test.BaseTest#createUser(String, String) and so has a first name and last name set to the
username. |
void |
deleteAuthority(String firstName,
String lastName)
Deletes the given authority from the list of users and groups.
|
List<String> |
getInheritRoles()
get users and groups
|
List<String> |
getLocalRoles()
get users and groups
|
String |
getPermission(String username,
String firstName,
String lastName)
Get the permissions set for the given user name.
|
boolean |
isAddUserGroupEnabled()
check is add user/group button is enabled
|
boolean |
isInheritPermissionsEnabled()
check is inheritpermissions button is enabled
|
boolean |
isManagePermissionsTitleVisible()
check is Manage Permissions title is displayed
|
void |
setPermissions(String username,
String firstName,
String lastName,
String permissionName)
set the permissions for specific user
|
clickOnCancel, clickOnOK, clickOnOkCancel, clickOnSave, getPageURL, rendergetSharePageNavigation, openclosePage, getCurrentUrl, getLastRenderedPage, getPageTitle, refreshAndReRenderCurrentPage, refreshCurrentPageas, getAllFields, getLastRendered, renderChildrenpublic ConfirmationPrompt clickOnInheritPermissionButton()
public AuthoritySelectDialog clickOnSelectUsersAndGroups()
public boolean isManagePermissionsTitleVisible()
public boolean isInheritPermissionsEnabled()
public boolean isAddUserGroupEnabled()
public List<String> getInheritRoles()
public void deleteAuthority(String username)
org.alfresco.test.BaseTest#createUser(String, String) and so has a first name and last name set to the
username.username - The username.public void deleteAuthority(String firstName, String lastName)
firstName - The first name of the user.lastName - The last name of the user.public String getPermission(String username, String firstName, String lastName)
username - The user's unique username.firstName - the users first namelastName - the users last namenull if no permission was found.public void setPermissions(String username, String firstName, String lastName, String permissionName)
username - The user's unique username.firstName - the users first namelastName - the users last namepermissionName - The permission to give the user.Copyright © 2005–2016 Alfresco Software. All rights reserved.