Skip to content

Commit

Permalink
[DURACOM-291] Expose section scope attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
atarix83 committed Oct 21, 2024
1 parent 7a6785b commit 4107f93
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.sql.SQLException;

import org.apache.logging.log4j.Logger;
import org.dspace.app.rest.model.ScopeEnum;
import org.dspace.app.rest.model.SubmissionSectionRest;
import org.dspace.app.rest.model.SubmissionVisibilityRest;
import org.dspace.app.rest.model.VisibilityEnum;
Expand Down Expand Up @@ -41,6 +42,7 @@ public SubmissionSectionRest convert(SubmissionStepConfig step, Projection proje
sp.setHeader(step.getHeading());
sp.setSectionType(step.getType());
sp.setId(step.getId());
sp.setScope(ScopeEnum.fromString(step.getScope()));
sp.setVisibility(new SubmissionVisibilityRest(VisibilityEnum.fromString(step.getVisibility()),
VisibilityEnum.fromString(step.getVisibilityOutside())));
return sp;
Expand Down

0 comments on commit 4107f93

Please sign in to comment.