Merge branch 'dmp-refactoring' of https://code-repo.d4science.org/MaDgiK-CITE/argos into dmp-refactoring
This commit is contained in:
commit
1b47a9d6ec
|
@ -8,7 +8,7 @@ import java.util.Map;
|
|||
public enum DmpUserRole implements DatabaseEnum<Short> {
|
||||
|
||||
Owner((short) 0),
|
||||
Viewer((short) 1),
|
||||
User((short) 1),
|
||||
DescriptionContributor((short) 2),
|
||||
Reviewer((short) 3);
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ public class DmpUserCommonModelBuilder extends BaseCommonModelBuilder<DmpUserMod
|
|||
for (DmpUserEntity d : data) {
|
||||
DmpUserModel m = new DmpUserModel();
|
||||
switch (d.getRole()){
|
||||
case Viewer -> m.setRole(DmpUserRole.User);
|
||||
case User -> m.setRole(DmpUserRole.User);
|
||||
case Owner -> m.setRole(DmpUserRole.Owner);
|
||||
case DescriptionContributor -> m.setRole(DmpUserRole.DescriptionContributor);
|
||||
case Reviewer -> m.setRole(DmpUserRole.Reviewer);
|
||||
|
|
Loading…
Reference in New Issue