Enum LogbookCollections
- java.lang.Object
-
- java.lang.Enum<LogbookCollections>
-
- fr.gouv.vitam.logbook.common.server.database.collections.LogbookCollections
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<LogbookCollections>
public enum LogbookCollections extends java.lang.Enum<LogbookCollections>
All collections
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LIFECYCLE_OBJECTGROUPLifeCycle object group CollectionLIFECYCLE_OBJECTGROUP_IN_PROCESSLifeCycle object group in processLIFECYCLE_UNITLifeCycle unit CollectionLIFECYCLE_UNIT_IN_PROCESSLifeCycle unit in processOPERATIONOperation 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<LogbookCollections> logbookCollections, java.lang.Integer... tenants)static voidafterTestClass(boolean deleteEsIndex, java.lang.Integer... tenants)static voidafterTestClass(java.util.Collection<LogbookCollections> logbookCollections, boolean deleteEsIndex, java.lang.Integer... tenants)static voidbeforeTestClass(com.mongodb.client.MongoDatabase db, java.lang.String prefix, LogbookElasticsearchAccess esClient, java.lang.Integer... tenants)static voidbeforeTestClass(com.mongodb.client.MongoDatabase db, java.lang.String prefix, LogbookElasticsearchAccess esClient, java.util.Collection<LogbookCollections> logbookCollections, java.lang.Integer... tenants)static java.util.List<java.lang.Class<?>>getClasses()java.lang.Class<?>getClasz()com.mongodb.client.MongoCollectiongetCollection()LogbookElasticsearchAccessgetEsClient()java.lang.StringgetName()VitamCollectiongetVitamCollection()VitamDescriptionResolvergetVitamDescriptionResolver()protected voidinitialize(com.mongodb.client.MongoDatabase db, boolean recreate)Initialize the collectionprotected voidinitialize(LogbookElasticsearchAccess esClient)Initialize the collectionstatic LogbookCollectionsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LogbookCollections[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPERATION
public static final LogbookCollections OPERATION
Operation Collection
-
LIFECYCLE_UNIT
public static final LogbookCollections LIFECYCLE_UNIT
LifeCycle unit Collection
-
LIFECYCLE_OBJECTGROUP
public static final LogbookCollections LIFECYCLE_OBJECTGROUP
LifeCycle object group Collection
-
LIFECYCLE_UNIT_IN_PROCESS
public static final LogbookCollections LIFECYCLE_UNIT_IN_PROCESS
LifeCycle unit in process
-
LIFECYCLE_OBJECTGROUP_IN_PROCESS
public static final LogbookCollections LIFECYCLE_OBJECTGROUP_IN_PROCESS
LifeCycle object group in process
-
-
Method Detail
-
values
public static LogbookCollections[] 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 (LogbookCollections c : LogbookCollections.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LogbookCollections 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, LogbookElasticsearchAccess esClient, java.lang.Integer... tenants)
-
beforeTestClass
public static void beforeTestClass(com.mongodb.client.MongoDatabase db, java.lang.String prefix, LogbookElasticsearchAccess esClient, java.util.Collection<LogbookCollections> logbookCollections, java.lang.Integer... tenants)
-
afterTestClass
public static void afterTestClass(boolean deleteEsIndex, java.lang.Integer... tenants)
-
afterTestClass
public static void afterTestClass(java.util.Collection<LogbookCollections> logbookCollections, boolean deleteEsIndex, java.lang.Integer... tenants)
-
afterTest
public static void afterTest(java.lang.Integer... tenants)
-
afterTest
public static void afterTest(java.util.Collection<LogbookCollections> logbookCollections, 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- the mongo databaserecreate- if needs to be recreated
-
initialize
protected void initialize(LogbookElasticsearchAccess esClient)
Initialize the collection- Parameters:
esClient- the ElasticsearchAccess
-
getName
public java.lang.String getName()
- Returns:
- the name of the collection
-
getCollection
public com.mongodb.client.MongoCollection getCollection()
- Returns:
- the associated MongoCollection
-
getVitamCollection
public VitamCollection getVitamCollection()
- Returns:
- the associated VitamCollection
-
getClasz
public java.lang.Class<?> getClasz()
- Returns:
- the associated class
-
getEsClient
public LogbookElasticsearchAccess getEsClient()
- Returns:
- the associated ES Client
-
getVitamDescriptionResolver
public VitamDescriptionResolver getVitamDescriptionResolver()
-
-