🚧 Quarkus update 3.34.5
This commit is contained in:
parent
4920fbd974
commit
f54e768fb1
@ -4,6 +4,8 @@ import de.tavolio.realm.RealmScoped;
|
||||
import de.tavolio.realm.assignment.AssignmentEntity;
|
||||
import de.tavolio.realm.code.CodeEntity;
|
||||
import de.tavolio.realm.RealmEntity;
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import jakarta.persistence.*;
|
||||
|
||||
import java.util.List;
|
||||
@ -11,7 +13,7 @@ import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Table(name = "user_regular")
|
||||
public class UserEntity implements RealmScoped
|
||||
public class UserEntity extends PanacheEntityBase implements RealmScoped
|
||||
{
|
||||
@Id
|
||||
private String id;
|
||||
|
||||
@ -16,11 +16,6 @@ public class UserRepo implements PanacheRepositoryBase<UserEntity, String>
|
||||
return find("realm = :realm AND email = :email", Parameters.with("realm", realm).and("email", email)).firstResultOptional();
|
||||
}
|
||||
|
||||
public List<UserEntity> findByIds(List<String> ids)
|
||||
{
|
||||
return list("id IN :ids", Parameters.with("ids", ids));
|
||||
}
|
||||
|
||||
public List<UserEntity> findByRealm(RealmEntity realm)
|
||||
{
|
||||
return list("realm = :realm", Parameters.with("realm", realm));
|
||||
|
||||
@ -7,6 +7,8 @@ import de.tavolio.realm.user.dto.UserCreation;
|
||||
import de.tavolio.realm.RealmEntity;
|
||||
import de.tavolio.realm.RealmRepo;
|
||||
import io.quarkus.elytron.security.common.BcryptUtil;
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntity;
|
||||
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
|
||||
import io.quarkus.security.UnauthorizedException;
|
||||
import jakarta.enterprise.context.ApplicationScoped;
|
||||
import jakarta.inject.Inject;
|
||||
@ -21,18 +23,12 @@ import java.util.Map;
|
||||
@ApplicationScoped
|
||||
public class UserService
|
||||
{
|
||||
@Inject
|
||||
Logger LOG;
|
||||
|
||||
@Inject
|
||||
UserRepo userRepo;
|
||||
|
||||
@Inject
|
||||
UserMapper userMapper;
|
||||
|
||||
@Inject
|
||||
AuthenticationService authenticationService;
|
||||
|
||||
@Inject
|
||||
RealmRepo realmRepo;
|
||||
|
||||
@ -72,7 +68,8 @@ public class UserService
|
||||
public Map<String, User> findByIds(List<String> ids)
|
||||
{
|
||||
Map<String, User> accounts = new HashMap<>();
|
||||
for (UserEntity userEntity : userRepo.findByIds(ids))
|
||||
List<UserEntity> users = userRepo.findByIds(ids);
|
||||
for (UserEntity userEntity : users)
|
||||
{
|
||||
accounts.put(userEntity.getId(), userMapper.map(userEntity));
|
||||
}
|
||||
|
||||
@ -27,7 +27,7 @@ quarkus.flyway.migrate-at-start=true
|
||||
|
||||
quarkus.http.auth.basic=false
|
||||
|
||||
%dev.io.verifoo.http.origin=http://localhost:8089
|
||||
%dev,test.io.verifoo.http.origin=http://localhost:8089
|
||||
|
||||
%dev.io.verifoo.bootstrap.config.location=/home/andreas/Documents/dev/iam-backend/src/main/resources/bootstrap.yaml
|
||||
%dev.io.verifoo.superuser.username=admin
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user