Class ConfigChanges

java.lang.Object
com.tccc.kos.commons.core.service.config.ConfigChanges

public class ConfigChanges extends Object
When beans are configured, the changes to the beans are recorded in this object.
Since:
1.0
Version:
2022-09-01
  • Method Details

    • getTracker

      public String getTracker()
      Return the associated tracking token provided by the client.
      Returns:
      the change tracking token
    • isEmpty

      public boolean isEmpty()
      Return true if there are no recorded changes.
      Returns:
      true if no changes
    • containsPath

      public boolean containsPath(String path)
      Return true if the bean with the specified handle path has changes.
      Parameters:
      path - the handle path to check
      Returns:
      true if the bean was changed
    • getPaths

      public Collection<String> getPaths()
      Return the collection of changed handle paths.
      Returns:
      the changed handle paths
    • getBeanChanges

      public Map<String,BeanChanges> getBeanChanges()
      Return the map of all bean changes.
      Returns:
      the changes
    • getBeanChanges

      public BeanChanges getBeanChanges(String path)
      Return the changes for the specified handle path.
      Parameters:
      path - the handle path to query
      Returns:
      the changes or null
    • getChanges

      public ValPair getChanges(String path, String name)
      Return the change data for the specified handle path / name if there is any.
      Parameters:
      path - the handle path of the bean
      name - the bean attribute name
      Returns:
      the associated changes or null