Compare commits

..

No commits in common. "e4c4c1811d423d6f79545f5910838f21195fdfef" and "334e8e182e049e1456c284713dafa0da42af2fb1" have entirely different histories.

4 changed files with 12 additions and 8 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.Viewer); 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);

View File

@ -2032,7 +2032,7 @@ public class DmpServiceImpl implements DmpService {
switch (model.getRole()){ switch (model.getRole()){
case Owner -> persist.setRole(DmpUserRole.Owner); case Owner -> persist.setRole(DmpUserRole.Owner);
case Viewer -> persist.setRole(DmpUserRole.Viewer); case User -> persist.setRole(DmpUserRole.User);
case DescriptionContributor -> persist.setRole(DmpUserRole.DescriptionContributor); case DescriptionContributor -> persist.setRole(DmpUserRole.DescriptionContributor);
case Reviewer -> persist.setRole(DmpUserRole.Reviewer); case Reviewer -> persist.setRole(DmpUserRole.Reviewer);
default -> throw new MyApplicationException("Unrecognized Type " + model.getRole().getValue()); default -> throw new MyApplicationException("Unrecognized Type " + model.getRole().getValue());

View File

@ -173,7 +173,7 @@ permissions:
dmp: dmp:
roles: roles:
- Owner - Owner
- Viewer - User
- DescriptionContributor - DescriptionContributor
- Reviewer - Reviewer
clients: [ ] clients: [ ]
@ -185,6 +185,7 @@ permissions:
dmp: dmp:
roles: roles:
- Owner - Owner
- User
- DescriptionContributor - DescriptionContributor
- Reviewer - Reviewer
clients: [ ] clients: [ ]
@ -291,7 +292,7 @@ permissions:
dmp: dmp:
roles: roles:
- Owner - Owner
- Viewer - User
- DescriptionContributor - DescriptionContributor
- Reviewer - Reviewer
claims: [ ] claims: [ ]
@ -407,7 +408,7 @@ permissions:
dmp: dmp:
roles: roles:
- Owner - Owner
- Viewer - User
- DescriptionContributor - DescriptionContributor
- Reviewer - Reviewer
clients: [ ] clients: [ ]
@ -419,6 +420,9 @@ permissions:
dmp: dmp:
roles: roles:
- Owner - Owner
- User
- DescriptionContributor
- Reviewer
clients: [ ] clients: [ ]
allowAnonymous: false allowAnonymous: false
allowAuthenticated: false allowAuthenticated: false
@ -836,7 +840,7 @@ permissions:
dmp: dmp:
roles: roles:
- Owner - Owner
- Viewer - User
- DescriptionContributor - DescriptionContributor
- Reviewer - Reviewer
clients: [ ] clients: [ ]
@ -848,7 +852,7 @@ permissions:
dmp: dmp:
roles: roles:
- Owner - Owner
- Viewer - User
- DescriptionContributor - DescriptionContributor
- Reviewer - Reviewer
claims: [ ] claims: [ ]