-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/feature/validateLandsatImage' in…
…to feature/pagination
- Loading branch information
Showing
8 changed files
with
181 additions
and
13 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
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
31 changes: 31 additions & 0 deletions
31
src/main/java/saps/catalog/core/retry/catalog/GetLandsatImages.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,31 @@ | ||
package saps.catalog.core.retry.catalog; | ||
|
||
import java.util.List; | ||
import java.util.Date; | ||
import saps.catalog.core.Catalog; | ||
import saps.common.core.model.SapsLandsatImage; | ||
import org.apache.log4j.Logger; | ||
|
||
public class GetLandsatImages implements CatalogRetry<List<SapsLandsatImage>> { | ||
|
||
private static final Logger LOGGER = Logger.getLogger(GetLandsatImages.class); | ||
|
||
private Catalog imageStore; | ||
private String region; | ||
private Date date; | ||
private String landsat; | ||
|
||
public GetLandsatImages(Catalog imageStore, String region, Date date, String landsat) { | ||
this.imageStore = imageStore; | ||
this.region = region; | ||
this.date = date; | ||
this.landsat = landsat; | ||
} | ||
|
||
@Override | ||
public List<SapsLandsatImage> run() { | ||
List<SapsLandsatImage> X = imageStore.getLandsatImages(region, date, landsat); | ||
LOGGER.info(X); | ||
return imageStore.getLandsatImages(region, date, landsat); | ||
} | ||
} |