-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #434 from open4good/opendata-fix
Opendata Refactor
- Loading branch information
Showing
13 changed files
with
946 additions
and
372 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
7 changes: 6 additions & 1 deletion
7
commons/src/main/java/org/open4goods/commons/model/BarcodeType.java
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,7 +1,12 @@ | ||
package org.open4goods.commons.model; | ||
|
||
public enum BarcodeType { | ||
ISBN_13, GTIN_13, GTIN_8, GTIN_12, GTIN_14, UNKNOWN, | ||
ISBN_13, | ||
GTIN_13, | ||
GTIN_8, | ||
GTIN_12, | ||
GTIN_14, | ||
UNKNOWN, | ||
|
||
|
||
} |
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
12 changes: 12 additions & 0 deletions
12
commons/src/main/java/org/open4goods/model/BarcodeType.java
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,12 @@ | ||
package org.open4goods.model; | ||
|
||
public enum BarcodeType { | ||
ISBN_13, | ||
GTIN_13, | ||
GTIN_8, | ||
GTIN_12, | ||
GTIN_14, | ||
UNKNOWN, | ||
|
||
|
||
} |
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
28 changes: 28 additions & 0 deletions
28
ui/src/main/java/org/open4goods/ui/config/OpenDataConfig.java
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,28 @@ | ||
package org.open4goods.ui.config; | ||
|
||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class OpenDataConfig { | ||
|
||
private int downloadSpeedKb; | ||
private int concurrentDownloads; | ||
|
||
public int getDownloadSpeedKb() { | ||
return downloadSpeedKb; | ||
} | ||
|
||
public void setDownloadSpeedKb(int downloadSpeedKb) { | ||
this.downloadSpeedKb = downloadSpeedKb; | ||
} | ||
|
||
public int getConcurrentDownloads() { | ||
return concurrentDownloads; | ||
} | ||
|
||
public void setConcurrentDownloads(int concurrentDownloads) { | ||
this.concurrentDownloads = concurrentDownloads; | ||
} | ||
|
||
|
||
} |
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
Oops, something went wrong.