public enum MetadataCollections extends Enum<MetadataCollections>
Enum Constant and Description |
---|
OBJECTGROUP
ObjectGroup Collection
|
UNIT
vitamCollection
Unit Collection
|
Modifier and Type | Method and Description |
---|---|
static void |
afterTest(Collection<MetadataCollections> metadataCollections,
Integer... tenants) |
static void |
afterTest(Integer... tenants) |
static void |
afterTestClass(boolean deleteEsIndex,
Integer... tenants) |
static void |
afterTestClass(Collection<MetadataCollections> metadataCollections,
boolean deleteEsIndex,
Integer... tenants) |
static void |
beforeTestClass(com.mongodb.client.MongoDatabase db,
String prefix,
ElasticsearchAccessMetadata esClient,
Collection<MetadataCollections> metadataCollections,
Integer... tenants) |
static void |
beforeTestClass(com.mongodb.client.MongoDatabase db,
String prefix,
ElasticsearchAccessMetadata esClient,
Integer... tenants) |
static List<Class<?>> |
getClasses() |
Class<?> |
getClasz() |
com.mongodb.client.MongoCollection |
getCollection() |
ElasticsearchAccessMetadata |
getEsClient() |
static MetadataCollections |
getFromValue(String collection)
get collection from value.
|
String |
getName() |
VitamCollection |
getVitamCollection() |
VitamDescriptionResolver |
getVitamDescriptionResolver() |
protected void |
initialize(ElasticsearchAccessMetadata esClient)
Initialize the collection
|
protected void |
initialize(com.mongodb.client.MongoDatabase db,
boolean recreate)
Initialize the collection
|
boolean |
useScore() |
static MetadataCollections |
valueOf(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.
|
public static final MetadataCollections UNIT
public static final MetadataCollections OBJECTGROUP
public static MetadataCollections[] values()
for (MetadataCollections c : MetadataCollections.values()) System.out.println(c);
public static MetadataCollections valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static void beforeTestClass(com.mongodb.client.MongoDatabase db, String prefix, ElasticsearchAccessMetadata esClient, Integer... tenants)
public static void beforeTestClass(com.mongodb.client.MongoDatabase db, String prefix, ElasticsearchAccessMetadata esClient, Collection<MetadataCollections> metadataCollections, Integer... tenants)
public static void afterTestClass(boolean deleteEsIndex, Integer... tenants)
public static void afterTestClass(Collection<MetadataCollections> metadataCollections, boolean deleteEsIndex, Integer... tenants)
public static void afterTest(Integer... tenants)
public static void afterTest(Collection<MetadataCollections> metadataCollections, Integer... tenants)
protected void initialize(com.mongodb.client.MongoDatabase db, boolean recreate)
db
- database typerecreate
- true is as recreate typeprotected void initialize(ElasticsearchAccessMetadata esClient)
esClient
- ElasticsearchAccessMetadatapublic String getName()
public com.mongodb.client.MongoCollection getCollection()
public Class<?> getClasz()
public VitamCollection getVitamCollection()
public ElasticsearchAccessMetadata getEsClient()
public boolean useScore()
public static MetadataCollections getFromValue(String collection)
collection
- public VitamDescriptionResolver getVitamDescriptionResolver()
Copyright © 2019 Vitam. All rights reserved.