Skip to content

Commit

Permalink
EPMRPP-95256 merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
grabsefx committed Sep 17, 2024
1 parent 4454bd6 commit c0a1378
Show file tree
Hide file tree
Showing 7 changed files with 154 additions and 91 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;

/**
* ReportPortal user representation
Expand Down Expand Up @@ -75,6 +71,17 @@ private ReportPortalUser(String username, String password,
this.active = isActive;
}

@Override
public boolean isEnabled() {
return active;
}

@Override
public boolean isAccountNonLocked() {
return active;
}


public static ReportPortalUserBuilder userBuilder() {
return new ReportPortalUserBuilder();
}
Expand All @@ -95,19 +102,6 @@ public static class OrganizationDetails implements Serializable {
private OrganizationRole orgRole;

private Map<String, ProjectDetails> projectDetails;
@Override
public boolean isEnabled() {
return active;
}

@Override
public boolean isAccountNonLocked() {
return active;
}

public Long getUserId() {
return userId;
}

public static OrganizationDetailsBuilder builder() {
return new OrganizationDetailsBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ private ResultFetchers() {
if (!CollectionUtils.isEmpty(rows)) {
ReportPortalUser user = ReportPortalUser.userBuilder()
.withUserName(rows.get(0).get(USERS.LOGIN))
.withActive(records.get(0).get(USERS.ACTIVE))
.withActive(rows.get(0).get(USERS.ACTIVE))
.withPassword(ofNullable(rows.get(0).get(USERS.PASSWORD)).orElse(""))
.withAuthorities(Collections.emptyList())
.withUserId(rows.get(0).get(USERS.ID))
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/com/epam/ta/reportportal/entity/user/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
@Entity
@TypeDef(name = "meta", typeClass = Metadata.class)
@Table(name = "users", schema = "public")
@Getter
@Setter
@NoArgsConstructor
public class User implements Serializable {

private static final long serialVersionUID = 923392981;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions src/main/java/com/epam/ta/reportportal/jooq/tables/JUsers.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c0a1378

Please sign in to comment.