FINERACT-1926: External owner accounting
This commit is contained in:
committed by
Arnold Gálovics
parent
437b8e9cae
commit
582f36ad34
@@ -24,13 +24,13 @@ include::{rootdir}/fineract-provider/src/main/java/org/apache/fineract/useradmin
|
||||
.Create a CommandWrapper object that represents this create user command and JSON request body. Pass off responsiblity for processing to PortfolioCommandSourceWritePlatformService.logCommandSource
|
||||
[source,java]
|
||||
----
|
||||
include::{rootdir}/fineract-provider/src/main/java/org/apache/fineract/commands/service/PortfolioCommandSourceWritePlatformServiceImpl.java[lines=69..129]
|
||||
include::{rootdir}/fineract-core/src/main/java/org/apache/fineract/commands/service/PortfolioCommandSourceWritePlatformServiceImpl.java[lines=69..129]
|
||||
----
|
||||
|
||||
.Check user has permission for this action. if ok, a) parse the json request body, b) create a JsonCommand object to wrap the command details, c) use CommandProcessingService to handle command
|
||||
[source,java]
|
||||
----
|
||||
include::{rootdir}/fineract-provider/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java[lines=84..150]
|
||||
include::{rootdir}/fineract-core/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java[lines=84..150]
|
||||
----
|
||||
|
||||
NOTE: if a RollbackTransactionAsCommandIsNotApprovedByCheckerException occurs at this point. The original transaction will of been aborted and we only log an entry for the command in the audit table setting its status as 'Pending'.
|
||||
|
||||
@@ -343,7 +343,7 @@ The interface looks the following:
|
||||
.`BusinessEvent.java`
|
||||
[source,java]
|
||||
----
|
||||
include::{rootdir}/fineract-provider/src/main/java/org/apache/fineract/infrastructure/event/business/domain/BusinessEvent.java[lines=21..]
|
||||
include::{rootdir}/fineract-core/src/main/java/org/apache/fineract/infrastructure/event/business/domain/BusinessEvent.java[lines=21..]
|
||||
----
|
||||
|
||||
Quite simple. The `get` method should return the data you want to pass within the event instance. The `getType` method returns the name of the business event that's gonna be saved as the `type` into the database.
|
||||
@@ -358,7 +358,7 @@ The serializer has a special interface, `BusinessEventSerializer`.
|
||||
.`BusinessEventSerializer.java`
|
||||
[source,java]
|
||||
----
|
||||
include::{rootdir}/fineract-provider/src/main/java/org/apache/fineract/infrastructure/event/external/service/serialization/serializer/BusinessEventSerializer.java[lines=25..]
|
||||
include::{rootdir}/fineract-core/src/main/java/org/apache/fineract/infrastructure/event/external/service/serialization/serializer/BusinessEventSerializer.java[lines=25..]
|
||||
----
|
||||
|
||||
An implementation of this interface shall be registered as a Spring bean, and it'll be picked up automatically by the framework.
|
||||
@@ -439,4 +439,4 @@ NOTE: All the default serializers are having `Ordered.LOWEST_PRECEDENCE`.
|
||||
|`false`
|
||||
|Whether the external event sending is enabled or disabled.
|
||||
|
||||
|===
|
||||
|===
|
||||
|
||||
@@ -7,13 +7,13 @@ TBD
|
||||
.Retry-able service function `executeCommand`
|
||||
[source,java]
|
||||
----
|
||||
include::{rootdir}/fineract-provider/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java[lines=73..151]
|
||||
include::{rootdir}/fineract-core/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java[lines=73..151]
|
||||
----
|
||||
|
||||
.Fallback function `fallbackExecuteCommand`
|
||||
[source,java]
|
||||
----
|
||||
include::{rootdir}/fineract-provider/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java[lines=166..174]
|
||||
include::{rootdir}/fineract-core/src/main/java/org/apache/fineract/commands/service/SynchronousCommandProcessingService.java[lines=166..174]
|
||||
----
|
||||
|
||||
.Retry configuration for `executeCommand`
|
||||
|
||||
@@ -80,5 +80,5 @@ For better code quality and readability we introduced https://resilience4j.readm
|
||||
.Annotation based retry
|
||||
[source,java]
|
||||
----
|
||||
include::{rootdir}/fineract-provider/src/main/java/org/apache/fineract/commands/service/PortfolioCommandSourceWritePlatformServiceImpl.java[lines=49..76]
|
||||
include::{rootdir}/fineract-core/src/main/java/org/apache/fineract/commands/service/PortfolioCommandSourceWritePlatformServiceImpl.java[lines=49..76]
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user