use of org.apache.atlas.model.notification.HookNotification.EntityDeleteRequestV2 in project atlas by apache.
the class DropTable method getNotificationMessages.
@Override
public List<HookNotification> getNotificationMessages() {
List<HookNotification> ret = null;
List<AtlasObjectId> entities = context.isMetastoreHook() ? getHiveMetastoreEntities() : getHiveEntities();
if (CollectionUtils.isNotEmpty(entities)) {
ret = new ArrayList<>(entities.size());
for (AtlasObjectId entity : entities) {
ret.add(new EntityDeleteRequestV2(getUserName(), Collections.singletonList(entity)));
}
}
return ret;
}
Aggregations