Merge branch 'dmp-refactoring' of https://code-repo.d4science.org/MaDgiK-CITE/argos into dmp-refactoring

This commit is contained in:
Sofia Papacharalampous 2024-05-20 15:04:04 +03:00
commit 1b47a9d6ec
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import java.util.Map;
public enum DmpUserRole implements DatabaseEnum<Short> { public enum DmpUserRole implements DatabaseEnum<Short> {
Owner((short) 0), Owner((short) 0),
Viewer((short) 1), User((short) 1),
DescriptionContributor((short) 2), DescriptionContributor((short) 2),
Reviewer((short) 3); Reviewer((short) 3);

View File

@ -59,7 +59,7 @@ public class DmpUserCommonModelBuilder extends BaseCommonModelBuilder<DmpUserMod
for (DmpUserEntity d : data) { for (DmpUserEntity d : data) {
DmpUserModel m = new DmpUserModel(); DmpUserModel m = new DmpUserModel();
switch (d.getRole()){ switch (d.getRole()){
case Viewer -> m.setRole(DmpUserRole.User); case User -> m.setRole(DmpUserRole.User);
case Owner -> m.setRole(DmpUserRole.Owner); case Owner -> m.setRole(DmpUserRole.Owner);
case DescriptionContributor -> m.setRole(DmpUserRole.DescriptionContributor); case DescriptionContributor -> m.setRole(DmpUserRole.DescriptionContributor);
case Reviewer -> m.setRole(DmpUserRole.Reviewer); case Reviewer -> m.setRole(DmpUserRole.Reviewer);