Apply formatting
This commit is contained in:
@@ -76,9 +76,12 @@ public class ContactsPage {
|
||||
}
|
||||
|
||||
public DeleteContactLink andHasContact(final String name, final String email) {
|
||||
return this.contacts.stream().filter(byEmail(email).and(byName(name)))
|
||||
.map((e) -> e.findElement(By.cssSelector("td:nth-child(4) > a"))).findFirst()
|
||||
.map((e) -> new DeleteContactLink(this.webDriver, e)).get();
|
||||
return this.contacts.stream()
|
||||
.filter(byEmail(email).and(byName(name)))
|
||||
.map((e) -> e.findElement(By.cssSelector("td:nth-child(4) > a")))
|
||||
.findFirst()
|
||||
.map((e) -> new DeleteContactLink(this.webDriver, e))
|
||||
.get();
|
||||
}
|
||||
|
||||
public ContactsPage andContactHasBeenRemoved(final String name, final String email) {
|
||||
|
||||
@@ -229,7 +229,7 @@ public class DataSourcePopulator implements InitializingBean {
|
||||
|
||||
private void changeOwner(int contactNumber, String newOwnerUsername) {
|
||||
AclImpl acl = (AclImpl) this.mutableAclService
|
||||
.readAclById(new ObjectIdentityImpl(Contact.class, (long) contactNumber));
|
||||
.readAclById(new ObjectIdentityImpl(Contact.class, (long) contactNumber));
|
||||
acl.setOwner(new PrincipalSid(newOwnerUsername));
|
||||
updateAclInTransaction(acl);
|
||||
}
|
||||
@@ -240,7 +240,7 @@ public class DataSourcePopulator implements InitializingBean {
|
||||
|
||||
private void grantPermissions(int contactNumber, String recipientUsername, Permission permission) {
|
||||
AclImpl acl = (AclImpl) this.mutableAclService
|
||||
.readAclById(new ObjectIdentityImpl(Contact.class, (long) contactNumber));
|
||||
.readAclById(new ObjectIdentityImpl(Contact.class, (long) contactNumber));
|
||||
acl.insertAce(acl.getEntries().size(), permission, new PrincipalSid(recipientUsername), true);
|
||||
updateAclInTransaction(acl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user