change reviewer to run DmpUserCommonModelBuilder
This commit is contained in:
parent
ea88efd125
commit
86304d76cb
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue