Enum LogbookCollections

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LogbookCollections>

    public enum LogbookCollections
    extends java.lang.Enum<LogbookCollections>
    All collections
    • Enum Constant Detail

      • 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
    • Field Detail

      • MULTI_TENANT_EV_TYPES

        public static final java.lang.String[] MULTI_TENANT_EV_TYPES
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • 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 database
        recreate - 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 <T extends org.bson.Document> com.mongodb.client.MongoCollection<T> getCollection()
        Returns:
        the associated MongoCollection
      • getClasz

        protected java.lang.Class<? extends VitamDocument<?>> getClasz()
        Returns:
        the associated class