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
Metadata Collection
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends MetadataDocument<?>>
getClasz()
<T extends org.bson.Document>
com.mongodb.client.MongoCollection<T>static MetadataCollections
getFromValue
(String collection) get collection from value.getName()
<T extends MetadataDocument<T>>
VitamCollection<T>void
boolean
useScore()
static MetadataCollections
Returns the enum constant of this class with the specified name.static MetadataCollections[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNIT
vitamCollection Unit Collection -
OBJECTGROUP
ObjectGroup Collection
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getClasses
-
getName
- Returns:
- the name of the collection
-
getPrefix
-
setPrefix
-
getCollection
public <T extends org.bson.Document> com.mongodb.client.MongoCollection<T> getCollection()- Returns:
- the associated MongoCollection
-
getVitamCollection
- Returns:
- the associated VitamCollection
-
getClasz
- Returns:
- the associated class
-
getEsClient
- Returns:
- the associated ES Client
-
useScore
public boolean useScore()- Returns:
- True if score is to be used
-
getFromValue
get collection from value.- Parameters:
collection
-- Returns:
- the corresponding MetadataCollections
-
getVitamDescriptionResolver
-
getElasticsearchCollection
-