This repository has been archived by the owner on Oct 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes according to review, including issue #47, as well as a fix fo…
…r the bug described in issue #53
- Loading branch information
phil
committed
Dec 16, 2014
1 parent
b3360be
commit f28caaf
Showing
14 changed files
with
228 additions
and
117 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,19 +1,20 @@ | ||
# Compilation output | ||
/target | ||
/build | ||
|
||
# Not sharing keys | ||
config | ||
|
||
# Vagrant files | ||
/.vagrant | ||
|
||
# IDE files | ||
/.idea | ||
/*.iml | ||
/.metadata | ||
/.project | ||
/nb-configuration.xml | ||
.classpath | ||
.settings/ | ||
!/config/ | ||
# Compilation output | ||
/target | ||
/build | ||
|
||
# Not sharing keys | ||
config | ||
|
||
# Vagrant files | ||
/.vagrant | ||
|
||
# IDE files | ||
/.idea | ||
/*.iml | ||
/.metadata | ||
/.project | ||
/nb-configuration.xml | ||
.classpath | ||
.settings/ | ||
!/config/ | ||
/nbactions.xml |
This file contains 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 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 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 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 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 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 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,21 @@ | ||
package de.ddb.pdc.storage; | ||
|
||
import de.ddb.pdc.core.PDCResult; | ||
|
||
/** | ||
* Helper class for storage-related conversions. | ||
*/ | ||
public class StorageUtils { | ||
|
||
public static StoredPDCResult toStoredPDCResult(PDCResult pdcResult) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
phil-fuber
Contributor
|
||
return new StoredPDCResult( | ||
pdcResult.getItemId(), | ||
pdcResult.getItemCategory(), | ||
pdcResult.getInstitution(), | ||
pdcResult.isPublicDomain(), | ||
pdcResult.getTrace(), | ||
pdcResult.getCreatedDate() | ||
); | ||
} | ||
|
||
} |
Oops, something went wrong.
1 comment
on commit f28caaf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still need more tests for the PDCController to cover everything but i ran some checks manually and it was fine.
Instead of adding one of those utility classes, it would be nicer to add a
StoredPDCResult(PDCResult)
constructor or - if this is isn't possible - a static method inStoredPDCResult
such asStoredPDCResult.fromPDCResult(PDCResult)
.