generated from Graqr/Java-Template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/0.0.7' of github.com:Graqr/Threshr into release…
…/0.0.7
- Loading branch information
Showing
106 changed files
with
804 additions
and
297 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
File renamed without changes
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
40 changes: 40 additions & 0 deletions
40
src/main/java/com/graqr/threshr/model/queryparam/Page.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,40 @@ | ||
package com.graqr.threshr.model.queryparam; | ||
|
||
import com.graqr.threshr.ThreshrException; | ||
import lombok.Getter; | ||
|
||
/** | ||
* Query parameter in redsky api. Specifies from where an api call is made in the browser. | ||
*/ | ||
@Getter | ||
public class Page { | ||
private String page; | ||
|
||
/** | ||
* Sets string value as "/c/" + provided value. | ||
* | ||
* @param page Query parameter in redsky api to specify from where an api call is made in the browser | ||
* @throws ThreshrException if string contains anything other than letters or is empty | ||
*/ | ||
public Page(String page) throws ThreshrException { | ||
setPage(page); | ||
} | ||
|
||
/** | ||
* Sets string value as "/c/" + provided value. | ||
* | ||
* @param page Query parameter in redsky api to specify from where an api call is made in the browser | ||
* @throws ThreshrException if string contains anything other than letters or is empty | ||
*/ | ||
public void setPage(String page) throws ThreshrException { | ||
String tempPage = page.trim().toLowerCase(); | ||
if (tempPage.startsWith("/c/")) { | ||
tempPage = tempPage.substring(3); | ||
} | ||
if (tempPage.matches(".+([^(a-z|\\-)]).+") || tempPage.isEmpty()) { | ||
throw new ThreshrException(String.format( | ||
"Expected only letters for the page value, but received \"%s\".", tempPage)); | ||
} | ||
this.page = "/c/" + tempPage; | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
.../threshr/model/redsky/products/AddOn.java → ...r/threshr/model/redsky/product/AddOn.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
2 changes: 1 addition & 1 deletion
2
...threshr/model/redsky/products/Author.java → .../threshr/model/redsky/product/Author.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
2 changes: 1 addition & 1 deletion
2
...reshr/model/redsky/products/Category.java → ...hreshr/model/redsky/product/Category.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
2 changes: 1 addition & 1 deletion
2
...shr/model/redsky/products/Compliance.java → ...eshr/model/redsky/product/Compliance.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
2 changes: 1 addition & 1 deletion
2
...r/model/redsky/products/ContentLabel.java → ...hr/model/redsky/product/ContentLabel.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
2 changes: 1 addition & 1 deletion
2
...shr/model/redsky/products/Disclaimer.java → ...eshr/model/redsky/product/Disclaimer.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
2 changes: 1 addition & 1 deletion
2
...r/model/redsky/products/Distribution.java → ...hr/model/redsky/product/Distribution.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
2 changes: 1 addition & 1 deletion
2
...del/redsky/products/EligibilityRules.java → ...odel/redsky/product/EligibilityRules.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
2 changes: 1 addition & 1 deletion
2
...shr/model/redsky/products/Enrichment.java → ...eshr/model/redsky/product/Enrichment.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
2 changes: 1 addition & 1 deletion
2
...y/products/EnvironmentalSegmentation.java → ...ky/product/EnvironmentalSegmentation.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
2 changes: 1 addition & 1 deletion
2
.../threshr/model/redsky/products/Facet.java → ...r/threshr/model/redsky/product/Facet.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
2 changes: 1 addition & 1 deletion
2
...eshr/model/redsky/products/FindsPost.java → ...reshr/model/redsky/product/FindsPost.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
2 changes: 1 addition & 1 deletion
2
...shr/model/redsky/products/FindsStory.java → ...eshr/model/redsky/product/FindsStory.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
2 changes: 1 addition & 1 deletion
2
...hr/model/redsky/products/Fulfillment.java → ...shr/model/redsky/product/Fulfillment.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
2 changes: 1 addition & 1 deletion
2
...hreshr/model/redsky/products/Grocery.java → ...threshr/model/redsky/product/Grocery.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
2 changes: 1 addition & 1 deletion
2
...reshr/model/redsky/products/Handling.java → ...hreshr/model/redsky/product/Handling.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
2 changes: 1 addition & 1 deletion
2
...r/threshr/model/redsky/products/Hold.java → ...qr/threshr/model/redsky/product/Hold.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
2 changes: 1 addition & 1 deletion
2
.../threshr/model/redsky/products/Image.java → ...r/threshr/model/redsky/product/Image.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
2 changes: 1 addition & 1 deletion
2
...threshr/model/redsky/products/Images.java → .../threshr/model/redsky/product/Images.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
2 changes: 1 addition & 1 deletion
2
...hr/model/redsky/products/InStoreOnly.java → ...shr/model/redsky/product/InStoreOnly.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
2 changes: 1 addition & 1 deletion
2
...InventoryNotificationToGuestExcluded.java → ...InventoryNotificationToGuestExcluded.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
2 changes: 1 addition & 1 deletion
2
...r/threshr/model/redsky/products/Item.java → ...qr/threshr/model/redsky/product/Item.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
2 changes: 1 addition & 1 deletion
2
...reshr/model/redsky/products/ItemType.java → ...hreshr/model/redsky/product/ItemType.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
Oops, something went wrong.