Class TenantAspect

java.lang.Object
com.totvs.tjf.messaging.core.security.TenantAspect

@Configuration public class TenantAspect extends Object
Default aspect for tenant settings during messaging communication.
Author:
Roger.Steuernagel
See Also:
  • Aspect
  • Constructor Summary

    Constructors
    Constructor
    Description
    TenantAspect(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 Type
    Method
    Description
    void
    totvsMessage(org.aspectj.lang.ProceedingJoinPoint joinPoint)
    Aspect used in stream listeners that receive a TOTVSMessage.
    void
    totvsMessageConsumer(org.aspectj.lang.ProceedingJoinPoint joinPoint)
    Aspect used in function ConsumerWithTenant, ConsumerWithoutTenant and ConsumerIgnoreTenant that receive a TOTVSMessage.
    void
    totvsMessageFunction(org.aspectj.lang.ProceedingJoinPoint joinPoint)
    Aspect used in function FunctionWithTenant, FunctionWithoutTenant and FunctionIgnoreTenant that receive a TOTVSMessage.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void totvsMessageConsumer(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Aspect used in function ConsumerWithTenant, ConsumerWithoutTenant and ConsumerIgnoreTenant that receive a TOTVSMessage. Defines some important information, such as TransactionContext, tenant and locale information. Check and notify EventListenerSupport. Validate Json schema.
      Throws:
      Throwable
      See Also:
      • JoinPoint
      • TOTVSMessage
      • JsonSchemaValidationService
    • totvsMessageFunction

      public void totvsMessageFunction(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Aspect used in function FunctionWithTenant, FunctionWithoutTenant and FunctionIgnoreTenant that receive a TOTVSMessage. Defines some important information, such as TransactionContext, tenant and locale information. Check and notify EventListenerSupport. Validate Json schema.
      Throws:
      Throwable
      See Also:
      • JoinPoint
      • TOTVSMessage
      • JsonSchemaValidationService
    • totvsMessage

      public void totvsMessage(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Aspect used in stream listeners that receive a TOTVSMessage. Defines some important information, such as TransactionContext, tenant and locale information. Check and notify EventListenerSupport. Validate Json schema.
      Throws:
      Throwable
      See Also:
      • JoinPoint
      • TOTVSMessage
      • JsonSchemaValidationService