forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 1
UFAL/Separate CLARIN license payload from sections.license #1319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1bd231c
fix(submission): separate CLARIN license payload from sections.license
milanmajchrak 1f9d3b6
fix(clarin-license): rename step path to /select, rename DataClarinLi…
milanmajchrak a45ce82
fix(clarin-license): align DTO name with Rest suffix convention
milanmajchrak 932b1af
fix(submission): align CLARIN section DTO naming and apply Copilot re…
milanmajchrak 480bac0
Align CLARIN license patch semantics and tighten section path handling
milanmajchrak 66e8796
Fix checkstyle issue
milanmajchrak 30e707b
Stabilize unknown CLARIN license metadata assertion
milanmajchrak 1382ae3
Added doc and checked null value
milanmajchrak e7216a8
Harden CLARIN license patch handling and logging
milanmajchrak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
dspace-server-webapp/src/main/java/org/dspace/app/rest/model/step/ClarinDataLicense.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| /** | ||
| * The contents of this file are subject to the license and copyright | ||
| * detailed in the LICENSE and NOTICE files at the root of the source | ||
| * tree and available online at | ||
| * | ||
| * http://www.dspace.org/license/ | ||
| */ | ||
| package org.dspace.app.rest.model.step; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import com.fasterxml.jackson.annotation.JsonProperty.Access; | ||
|
|
||
| /** | ||
| * Java Bean to expose the CLARIN license section during in progress submission. | ||
| * | ||
| * @author Milan Majchrak (milan.majchrak at dataquest.sk) | ||
| */ | ||
| public class ClarinDataLicense implements SectionData { | ||
|
|
||
| private String name; | ||
|
|
||
| @JsonProperty(access = Access.READ_ONLY) | ||
| private String definition; | ||
|
|
||
| @JsonProperty(access = Access.READ_ONLY) | ||
| private String label; | ||
|
|
||
| private boolean granted = false; | ||
|
|
||
| public String getName() { | ||
| return name; | ||
| } | ||
|
|
||
| public void setName(String name) { | ||
| this.name = name; | ||
| } | ||
|
|
||
| public String getDefinition() { | ||
| return definition; | ||
| } | ||
|
|
||
| public void setDefinition(String definition) { | ||
| this.definition = definition; | ||
| } | ||
|
|
||
| public String getLabel() { | ||
| return label; | ||
| } | ||
|
|
||
| public void setLabel(String label) { | ||
| this.label = label; | ||
| } | ||
|
|
||
| public boolean isGranted() { | ||
| return granted; | ||
| } | ||
|
|
||
| public void setGranted(boolean granted) { | ||
| this.granted = granted; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.