Enum MetadataCollections
- java.lang.Object
-
- java.lang.Enum<MetadataCollections>
-
- fr.gouv.vitam.metadata.core.database.collections.MetadataCollections
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MetadataCollections>
public enum MetadataCollections extends java.lang.Enum<MetadataCollections>
Metadata Collection
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OBJECTGROUPObjectGroup CollectionUNITvitamCollection Unit Collection
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidafterTest(java.lang.Integer... tenants)static voidafterTest(java.util.Collection<MetadataCollections> metadataCollections, java.lang.Integer... tenants)static voidafterTestClass(boolean deleteEsIndex, java.lang.Integer... tenants)static voidafterTestClass(java.util.Collection<MetadataCollections> metadataCollections, boolean deleteEsIndex, java.lang.Integer... tenants)static voidbeforeTestClass(com.mongodb.client.MongoDatabase db, java.lang.String prefix, ElasticsearchAccessMetadata esClient, java.lang.Integer... tenants)static voidbeforeTestClass(com.mongodb.client.MongoDatabase db, java.lang.String prefix, ElasticsearchAccessMetadata esClient, java.util.Collection<MetadataCollections> metadataCollections, java.lang.Integer... tenants)static java.util.List<java.lang.Class<?>>getClasses()java.lang.Class<?>getClasz()com.mongodb.client.MongoCollectiongetCollection()ElasticsearchAccessMetadatagetEsClient()static MetadataCollectionsgetFromValue(java.lang.String collection)get collection from value.java.lang.StringgetName()VitamCollectiongetVitamCollection()VitamDescriptionResolvergetVitamDescriptionResolver()protected voidinitialize(com.mongodb.client.MongoDatabase db, boolean recreate)Initialize the collectionprotected voidinitialize(ElasticsearchAccessMetadata esClient)Initialize the collectionbooleanuseScore()static MetadataCollectionsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MetadataCollections[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNIT
public static final MetadataCollections UNIT
vitamCollection Unit Collection
-
OBJECTGROUP
public static final MetadataCollections OBJECTGROUP
ObjectGroup Collection
-
-
Method Detail
-
values
public static MetadataCollections[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MetadataCollections c : MetadataCollections.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetadataCollections valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
beforeTestClass
public static void beforeTestClass(com.mongodb.client.MongoDatabase db, java.lang.String prefix, ElasticsearchAccessMetadata esClient, java.lang.Integer... tenants)
-
beforeTestClass
public static void beforeTestClass(com.mongodb.client.MongoDatabase db, java.lang.String prefix, ElasticsearchAccessMetadata esClient, java.util.Collection<MetadataCollections> metadataCollections, java.lang.Integer... tenants)
-
afterTestClass
public static void afterTestClass(boolean deleteEsIndex, java.lang.Integer... tenants)
-
afterTestClass
public static void afterTestClass(java.util.Collection<MetadataCollections> metadataCollections, boolean deleteEsIndex, java.lang.Integer... tenants)
-
afterTest
public static void afterTest(java.lang.Integer... tenants)
-
afterTest
public static void afterTest(java.util.Collection<MetadataCollections> metadataCollections, java.lang.Integer... tenants)
-
getClasses
public static java.util.List<java.lang.Class<?>> getClasses()
-
initialize
protected void initialize(com.mongodb.client.MongoDatabase db, boolean recreate)Initialize the collection- Parameters:
db- database typerecreate- true is as recreate type
-
initialize
protected void initialize(ElasticsearchAccessMetadata esClient)
Initialize the collection- Parameters:
esClient- ElasticsearchAccessMetadata
-
getName
public java.lang.String getName()
- Returns:
- the name of the collection
-
getCollection
public com.mongodb.client.MongoCollection getCollection()
- Returns:
- the associated MongoCollection
-
getClasz
public java.lang.Class<?> getClasz()
- Returns:
- the associated class
-
getVitamCollection
public VitamCollection getVitamCollection()
-
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(java.lang.String collection)
get collection from value.- Parameters:
collection-- Returns:
- the corresponding MetadataCollections
-
getVitamDescriptionResolver
public VitamDescriptionResolver getVitamDescriptionResolver()
-
-