Class DaapScoreCalculator

  • All Implemented Interfaces:
    com.atlan.events.AtlanEventHandler

    public class DaapScoreCalculator
    extends java.lang.Object
    implements com.atlan.events.AtlanEventHandler
    An example to calculate a Data as a Product (DaaP) completeness score based on the level of enrichment of an asset.
    • Field Summary

      • Fields inherited from interface com.atlan.events.AtlanEventHandler

        WEBHOOK_VALIDATION_REQUEST
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<com.atlan.model.assets.Asset> calculateChanges​(com.atlan.model.assets.Asset asset, org.slf4j.Logger log)
      com.atlan.model.assets.Asset getCurrentState​(com.atlan.AtlanClient client, com.atlan.model.assets.Asset fromEvent, org.slf4j.Logger log)
      static DaapScoreCalculator getInstance()  
      boolean hasChanges​(com.atlan.model.assets.Asset original, com.atlan.model.assets.Asset modified, org.slf4j.Logger log)
      boolean validatePrerequisites​(com.atlan.model.events.AtlanEvent event, org.slf4j.Logger log)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.atlan.events.AtlanEventHandler

        saveChanges
    • Constructor Detail

      • DaapScoreCalculator

        public DaapScoreCalculator()
    • Method Detail

      • validatePrerequisites

        public boolean validatePrerequisites​(com.atlan.model.events.AtlanEvent event,
                                             org.slf4j.Logger log)
        Specified by:
        validatePrerequisites in interface com.atlan.events.AtlanEventHandler
      • getCurrentState

        public com.atlan.model.assets.Asset getCurrentState​(com.atlan.AtlanClient client,
                                                            com.atlan.model.assets.Asset fromEvent,
                                                            org.slf4j.Logger log)
                                                     throws com.atlan.exception.AtlanException
        Specified by:
        getCurrentState in interface com.atlan.events.AtlanEventHandler
        Throws:
        com.atlan.exception.AtlanException
      • calculateChanges

        public java.util.Collection<com.atlan.model.assets.Asset> calculateChanges​(com.atlan.model.assets.Asset asset,
                                                                                   org.slf4j.Logger log)
                                                                            throws com.atlan.exception.AtlanException
        Specified by:
        calculateChanges in interface com.atlan.events.AtlanEventHandler
        Throws:
        com.atlan.exception.AtlanException
      • hasChanges

        public boolean hasChanges​(com.atlan.model.assets.Asset original,
                                  com.atlan.model.assets.Asset modified,
                                  org.slf4j.Logger log)
        Specified by:
        hasChanges in interface com.atlan.events.AtlanEventHandler