Class VerificationEnforcer

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

    public class VerificationEnforcer
    extends java.lang.Object
    implements com.atlan.events.AtlanEventHandler
    An example to automatically revert any asset that is marked VERIFIED if it does not at least have: a description, at least one owner, and lineage.
    • 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 VerificationEnforcer getInstance()  
      • 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

        hasChanges, saveChanges, validatePrerequisites
    • Constructor Detail

      • VerificationEnforcer

        public VerificationEnforcer()
    • Method Detail

      • 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