Class LogRecordContextVariableService

java.lang.Object
org.qubership.atp.ram.services.LogRecordContextVariableService

@Service public class LogRecordContextVariableService extends Object
  • Constructor Details

    • LogRecordContextVariableService

      public LogRecordContextVariableService()
  • Method Details

    • getPagedContextVariables

      public ContextVariablesResponse getPagedContextVariables(List<ContextVariable> allContextVariables, Integer page, Integer size, List<ContextVariablesActiveTab> activeTabs)
      Get context variables of logrecord.
      Parameters:
      allContextVariables - input context variables
      page - number of page for pagination
      size - size of 1 page for pagination
      Returns:
      List of paginated context variables and total caount of context variables.
    • filterAndSplitContextVariables

      public ContextVariablesResponse filterAndSplitContextVariables(List<ContextVariable> contextVariables, List<String> parameters, String beforeValue, String afterValue)
      Find and split context variable parameters into modified and not modified groups.
      Parameters:
      contextVariables - log record context variables
      parameters - parameter names
      beforeValue - before value
      afterValue - after value
      Returns:
      result response
    • filterContextVariables

      public List<ContextVariable> filterContextVariables(List<ContextVariable> contextVariables, List<String> parameters, String beforeValue, String afterValue)
      Filter context variable of logrecord by specified parameters.
      Parameters:
      parameters - list of context variables names to filter by
      beforeValue - beforeValue to filter by using "contains" strategy
      afterValue - afterValue to filter by using "contains" strategy
      Returns:
      list of context variables that have passed all predicates.