Package com.atlan.samples.events
Class VerificationEnforcer
- java.lang.Object
-
- com.atlan.samples.events.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.
-
-
Constructor Summary
Constructors Constructor Description VerificationEnforcer()
-
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()
-
-
-
Method Detail
-
getInstance
public static VerificationEnforcer getInstance()
-
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 interfacecom.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 interfacecom.atlan.events.AtlanEventHandler
- Throws:
com.atlan.exception.AtlanException
-
-