001package org.gbif.api.vocabulary;
002
003/**
004 * These are the possible states of an {@link org.gbif.api.model.occurrence.Occurrence} as it moves through the processing and persistence chain. It
005 * is used both in the processing logic as well as the messages that are exchanged as part of that processing.
006 */
007public enum OccurrencePersistenceStatus {
008  /**
009   * This occurrence has never been seen before.
010   */
011  NEW,
012
013  /**
014   * This occurrence previously existed and has now been updated with new information.
015   */
016  UPDATED,
017
018  /**
019   * This occurrence previously existed but there is no new information to propagate. This is typical of a crawl
020   * in which the exact record that was harvested in the previous crawl is seen again.
021   */
022  UNCHANGED,
023
024  /**
025   * This occurrence has been deleted.
026   */
027  DELETED
028}