-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated HDFC creditcard statement reader to support statement with re…
…ward points Added BooleanResult which is error aware,also used it for loading statement feature Minor changes in MailConnection and Categorizer
- Loading branch information
Showing
8 changed files
with
280 additions
and
19 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
module-base/src/main/java/domainapp/modules/base/result/BooleanResult.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,26 @@ | ||
/** | ||
* | ||
*/ | ||
package domainapp.modules.base.result; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* Boolean result which is {@link IErrorAware} | ||
* | ||
* @author jayesh.prajapati | ||
*/ | ||
@Builder | ||
public class BooleanResult implements IErrorAware { | ||
|
||
@Getter | ||
@Setter | ||
private Boolean success; | ||
|
||
@Getter | ||
@Setter | ||
private String error; | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
module-base/src/main/java/domainapp/modules/base/result/ErrorAwareAdapter.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,20 @@ | ||
/** | ||
* | ||
*/ | ||
package domainapp.modules.base.result; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* Adapter implementation of {@link IErrorAware} | ||
* | ||
* @author jayesh.prajapati | ||
*/ | ||
public abstract class ErrorAwareAdapter implements IErrorAware { | ||
|
||
@Getter | ||
@Setter | ||
private String error; | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
module-base/src/main/java/domainapp/modules/base/result/IErrorAware.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,16 @@ | ||
/** | ||
* | ||
*/ | ||
package domainapp.modules.base.result; | ||
|
||
/** | ||
* Specification for beans or POJO that are aware of contained error. | ||
* | ||
* @author jayesh.prajapati | ||
*/ | ||
public interface IErrorAware { | ||
|
||
String getError(); | ||
|
||
void setError(String error); | ||
} |
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
Oops, something went wrong.