Class TenantAspect
java.lang.Object
com.totvs.tjf.messaging.core.security.TenantAspect
Default aspect for tenant settings during messaging communication.
- Author:
- Roger.Steuernagel
- See Also:
-
Aspect
-
Constructor Summary
ConstructorsConstructorDescriptionTenantAspect(TransactionContext transactionContext, com.totvs.tjf.core.json.JsonSchemaValidationService jsonSchemaValidationService, com.fasterxml.jackson.databind.ObjectMapper mapper, com.totvs.tjf.migration.context.FlywayMigrationProperties flywayMigrationProperties, com.totvs.tjf.migration.context.SchemaService schemaService, com.totvs.tjf.tenant.context.schema.SchemaUtils schemaUtils, MessagingProperties messagingProperties, IgnoreMessageComponent ignoreComponent) -
Method Summary
Modifier and TypeMethodDescriptionvoidtotvsMessage(org.aspectj.lang.ProceedingJoinPoint joinPoint) Aspect used in stream listeners that receive aTOTVSMessage.voidtotvsMessageConsumer(org.aspectj.lang.ProceedingJoinPoint joinPoint) Aspect used in functionConsumerWithTenant,ConsumerWithoutTenantandConsumerIgnoreTenantthat receive aTOTVSMessage.voidtotvsMessageFunction(org.aspectj.lang.ProceedingJoinPoint joinPoint) Aspect used in functionFunctionWithTenant,FunctionWithoutTenantandFunctionIgnoreTenantthat receive aTOTVSMessage.
-
Constructor Details
-
TenantAspect
public TenantAspect(TransactionContext transactionContext, com.totvs.tjf.core.json.JsonSchemaValidationService jsonSchemaValidationService, com.fasterxml.jackson.databind.ObjectMapper mapper, @Nullable com.totvs.tjf.migration.context.FlywayMigrationProperties flywayMigrationProperties, @Nullable com.totvs.tjf.migration.context.SchemaService schemaService, @Nullable com.totvs.tjf.tenant.context.schema.SchemaUtils schemaUtils, MessagingProperties messagingProperties, IgnoreMessageComponent ignoreComponent)
-
-
Method Details
-
totvsMessageConsumer
Aspect used in functionConsumerWithTenant,ConsumerWithoutTenantandConsumerIgnoreTenantthat receive aTOTVSMessage. Defines some important information, such asTransactionContext, tenant and locale information. Check and notifyEventListenerSupport. Validate Json schema.- Throws:
Throwable- See Also:
-
JoinPointTOTVSMessageJsonSchemaValidationService
-
totvsMessageFunction
Aspect used in functionFunctionWithTenant,FunctionWithoutTenantandFunctionIgnoreTenantthat receive aTOTVSMessage. Defines some important information, such asTransactionContext, tenant and locale information. Check and notifyEventListenerSupport. Validate Json schema.- Throws:
Throwable- See Also:
-
JoinPointTOTVSMessageJsonSchemaValidationService
-
totvsMessage
Aspect used in stream listeners that receive aTOTVSMessage. Defines some important information, such asTransactionContext, tenant and locale information. Check and notifyEventListenerSupport. Validate Json schema.- Throws:
Throwable- See Also:
-
JoinPointTOTVSMessageJsonSchemaValidationService
-