Enum FunctionalAdminCollections
- java.lang.Object
-
- java.lang.Enum<FunctionalAdminCollections>
-
- fr.gouv.vitam.functional.administration.common.server.FunctionalAdminCollections
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FunctionalAdminCollections>
public enum FunctionalAdminCollections extends java.lang.Enum<FunctionalAdminCollections>
All collections in functional admin module
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS_CONTRACT
Access contract collectionACCESSION_REGISTER_DETAIL
Accession Register detail CollectionACCESSION_REGISTER_SUMMARY
Accession Register summary CollectionACCESSION_REGISTER_SYMBOLIC
Accession Register Symbolic CollectionAGENCIES
Agency collectionARCHIVE_UNIT_PROFILE
Archive Unit Profile collectionCONTEXT
Context collectionFORMATS
Formats CollectionGRIFFIN
INGEST_CONTRACT
Ingest contract collectionMANAGEMENT_CONTRACT
Management contract collectionONTOLOGY
Ontology collectionPRESERVATION_SCENARIO
PROFILE
Profile collectionRULES
Rules CollectionSECURITY_PROFILE
Security profile collectionVITAM_SEQUENCE
VITAM SEQUENCE collection
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.Class<?>>
getClasses()
protected java.lang.Class<? extends VitamDocument<?>>
getClasz()
<T extends org.bson.Document>
com.mongodb.client.MongoCollection<T>getCollection()
long
getCount()
ElasticsearchCollections
getElasticsearchCollection()
ElasticsearchAccessFunctionalAdmin
getEsClient()
get ElasticSearch Clientstatic FunctionalAdminCollections
getFromValue(java.lang.String collection)
get collection from value.java.lang.String
getName()
VarNameAdapter
getVarNameAdapater()
<T extends VitamDocument<?>>
VitamCollection<T>getVitamCollection()
VitamDescriptionResolver
getVitamDescriptionResolver()
protected void
initialize(com.mongodb.client.MongoDatabase db, boolean recreate)
Initialize the collectionprotected void
initialize(ElasticsearchAccessFunctionalAdmin esClient)
Initialize the collectionboolean
isMultitenant()
boolean
isUsingScore()
static FunctionalAdminCollections
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FunctionalAdminCollections[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORMATS
public static final FunctionalAdminCollections FORMATS
Formats Collection
-
RULES
public static final FunctionalAdminCollections RULES
Rules Collection
-
ACCESSION_REGISTER_SUMMARY
public static final FunctionalAdminCollections ACCESSION_REGISTER_SUMMARY
Accession Register summary Collection
-
ACCESSION_REGISTER_DETAIL
public static final FunctionalAdminCollections ACCESSION_REGISTER_DETAIL
Accession Register detail Collection
-
ACCESSION_REGISTER_SYMBOLIC
public static final FunctionalAdminCollections ACCESSION_REGISTER_SYMBOLIC
Accession Register Symbolic Collection
-
INGEST_CONTRACT
public static final FunctionalAdminCollections INGEST_CONTRACT
Ingest contract collection
-
ACCESS_CONTRACT
public static final FunctionalAdminCollections ACCESS_CONTRACT
Access contract collection
-
MANAGEMENT_CONTRACT
public static final FunctionalAdminCollections MANAGEMENT_CONTRACT
Management contract collection
-
VITAM_SEQUENCE
public static final FunctionalAdminCollections VITAM_SEQUENCE
VITAM SEQUENCE collection
-
PROFILE
public static final FunctionalAdminCollections PROFILE
Profile collection
-
ARCHIVE_UNIT_PROFILE
public static final FunctionalAdminCollections ARCHIVE_UNIT_PROFILE
Archive Unit Profile collection
-
AGENCIES
public static final FunctionalAdminCollections AGENCIES
Agency collection
-
CONTEXT
public static final FunctionalAdminCollections CONTEXT
Context collection
-
SECURITY_PROFILE
public static final FunctionalAdminCollections SECURITY_PROFILE
Security profile collection
-
GRIFFIN
public static final FunctionalAdminCollections GRIFFIN
-
PRESERVATION_SCENARIO
public static final FunctionalAdminCollections PRESERVATION_SCENARIO
-
ONTOLOGY
public static final FunctionalAdminCollections ONTOLOGY
Ontology collection
-
-
Method Detail
-
values
public static FunctionalAdminCollections[] 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 (FunctionalAdminCollections c : FunctionalAdminCollections.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FunctionalAdminCollections 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
-
getClasses
public static java.util.List<java.lang.Class<?>> getClasses()
-
isMultitenant
public boolean isMultitenant()
- Returns:
- True if this collection is multitenant
-
isUsingScore
public boolean isUsingScore()
- Returns:
- the usingScore
-
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(ElasticsearchAccessFunctionalAdmin esClient)
Initialize the collection- Parameters:
esClient
-
-
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
-
getVitamCollection
public <T extends VitamDocument<?>> VitamCollection<T> getVitamCollection()
- Returns:
- the associated VitamCollection
-
getClasz
protected java.lang.Class<? extends VitamDocument<?>> getClasz()
- Returns:
- the associated class
-
getCount
public long getCount()
- Returns:
- the count of associated MongoCollection
-
getVarNameAdapater
public VarNameAdapter getVarNameAdapater()
- Returns:
- the associated VarNameAdapter
-
getEsClient
public ElasticsearchAccessFunctionalAdmin getEsClient()
get ElasticSearch Client- Returns:
- client Es
-
getFromValue
public static FunctionalAdminCollections getFromValue(java.lang.String collection)
get collection from value.- Parameters:
collection
-- Returns:
- the corresponding FunctionalAdminCollections
-
getVitamDescriptionResolver
public VitamDescriptionResolver getVitamDescriptionResolver()
-
getElasticsearchCollection
public ElasticsearchCollections getElasticsearchCollection()
-
-