Enum Class MetadataCollections

java.lang.Object
java.lang.Enum<MetadataCollections>
fr.gouv.vitam.metadata.core.database.collections.MetadataCollections
All Implemented Interfaces:
Serializable, Comparable<MetadataCollections>, Constable

public enum MetadataCollections extends Enum<MetadataCollections>
Metadata Collection
  • Enum Constant Details

  • Method Details

    • values

      public static MetadataCollections[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MetadataCollections valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getClasses

      public static List<Class<?>> getClasses()
    • getName

      public String getName()
      Returns:
      the name of the collection
    • getPrefix

      public String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)
    • getCollection

      public <T extends org.bson.Document> com.mongodb.client.MongoCollection<T> getCollection()
      Returns:
      the associated MongoCollection
    • getVitamCollection

      public <T extends MetadataDocument<T>> VitamCollection<T> getVitamCollection()
      Returns:
      the associated VitamCollection
    • getClasz

      public Class<? extends MetadataDocument<?>> getClasz()
      Returns:
      the associated class
    • getEsClient

      public ElasticsearchAccessMetadata getEsClient()
      Returns:
      the associated ES Client
    • useScore

      public boolean useScore()
      Returns:
      True if score is to be used
    • getFromValue

      public static MetadataCollections getFromValue(String collection)
      get collection from value.
      Parameters:
      collection -
      Returns:
      the corresponding MetadataCollections
    • getVitamDescriptionResolver

      public VitamDescriptionResolver getVitamDescriptionResolver()
    • getElasticsearchCollection

      public ElasticsearchCollections getElasticsearchCollection()