withUserOwner method

ProjectBuilder withUserOwner(
  1. User user
)

Creates a project with a user as owner and admin role. Calling this method resets the roles in the builder.

Implementation

ProjectBuilder withUserOwner(final User user) {
  _owner = OwnerBuilder().withUser(user).build();
  _roles = [
    RoleBuilder.admin().withUser(user).build(),
  ];
  return this;
}