-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MODAUD-174] - Consume piece change events and implement endpoints (#155
) * [MODAUD-174] - Consume piece change events and implement endpoints * [MODAUD-174] - Fixed unit tests * [MODAUD-174] - Fixed Code smell * [MODAUD-174] - Fixed Code smell * [MODAUD-174] - Fixed Unit tests * [MODAUD-174] - Minor improvements * [MODAUD-174] - Implements kafka handler and creating table * [MODAUD-174] - Increased code coverage * [MODAUD-174] - Increased code coverage * [MODAUD-174] - Minor improvements * [MODAUD-174] - Minor improvements * [MODAUD-174] - Minor improvements * [MODAUD-174] - Minor improvements * [MODAUD-174] - Minor improvements * [MODAUD-174] - Minor improvements * [MODAUD-174] - Implemented uniq-status api * [MODAUD-174] - Implemented status change history feature and cleaned code * [MODAUD-174] - Implemented status change history feature and cleaned code * [MODAUD-174] - Implemented status change history feature and cleaned code * [MODAUD-174] - draft changes * [MODAUD-174] - Fixed error * [MODAUD-174] - minor improvements * [MODAUD-174] - minor improvements * [MODAUD-174] - minor improvements * [MODAUD-174] - minor improvements * [MODAUD-174] - minor improvements * [MODAUD-174] - Fixed unit tests * [MODAUD-174] - Fixed unit tests * [MODAUD-174] - Fixed unit tests * [MODAUD-174] - Fixed unit tests * [MODAUD-174] - draft changes * [MODAUD-174] - Fixed unit tests * [MODAUD-174] - Minor improvements * [MODAUD-174] - Minor improvements * [MODAUD-174] - Minor improvements * [MODAUD-174] - Improved code by changing field injection to constructor injection and changed method name * [MODAUD-174] - Fixed unit tests * [MODAUD-174] - Fixed unit tests * [MODAUD-174] - Fixed sql query * [MODAUD-174] - Extracted duplicate methods * [MODAUD-174] - Added java docs * [MODAUD-174] - Improved java integration test * [MODAUD-174] - Extracted handleFauilures and optimized codebase * [MODAUD-174] - Fixed sql query * [MODAUD-174] - Fixed sql query * [MODAUD-174] - Minor improvement * [MODAUD-174] - Improved AuditDataAcquisitionImpl * [MODAUD-174] - Improved AuditDataAcquisitionImpl and changed debug to error level in catch block * [MODAUD-174] - Fixed ZoneOffset * [MODAUD-174] - Improved log.error message * [MODAUD-174] - Minor improvements
- Loading branch information
Showing
37 changed files
with
1,269 additions
and
336 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 |
---|---|---|
|
@@ -18,3 +18,4 @@ nbproject/ | |
.settings/ | ||
.classpath | ||
/bin/ | ||
/src/main/resources/postgres-conf.json |
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
46 changes: 46 additions & 0 deletions
46
mod-audit-server/src/main/java/org/folio/dao/acquisition/PieceEventsDao.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,46 @@ | ||
package org.folio.dao.acquisition; | ||
|
||
import io.vertx.core.Future; | ||
import io.vertx.sqlclient.Row; | ||
import io.vertx.sqlclient.RowSet; | ||
import org.folio.rest.jaxrs.model.PieceAuditEvent; | ||
import org.folio.rest.jaxrs.model.PieceAuditEventCollection; | ||
|
||
public interface PieceEventsDao { | ||
|
||
/** | ||
* Saves pieceAuditEvent entity to DB | ||
* | ||
* @param pieceAuditEvent pieceAuditEvent entity to save | ||
* @param tenantId tenant id | ||
* @return future with created row | ||
*/ | ||
Future<RowSet<Row>> save(PieceAuditEvent pieceAuditEvent, String tenantId); | ||
|
||
/** | ||
* Searches for piece audit events by id | ||
* | ||
* @param pieceId piece id | ||
* @param sortBy sort by | ||
* @param sortOrder sort order | ||
* @param limit limit | ||
* @param offset offset | ||
* @param tenantId tenant id | ||
* @return future with PieceAuditEventCollection | ||
*/ | ||
Future<PieceAuditEventCollection> getAuditEventsByPieceId(String pieceId, String sortBy, String sortOrder, | ||
int limit, int offset, String tenantId); | ||
|
||
/** | ||
* Searches for piece audit events with status changes by piece id | ||
* @param pieceId piece id | ||
* @param sortBy sort by | ||
* @param sortOrder sort order | ||
* @param limit limit | ||
* @param offset offset | ||
* @param tenantId tenant id | ||
* @return future with PieceAuditEventCollection | ||
*/ | ||
Future<PieceAuditEventCollection> getAuditEventsWithStatusChangesByPieceId(String pieceId, String sortBy, String sortOrder, | ||
int limit, int offset, String tenantId); | ||
} |
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.