Class VitamCollectionHelper
java.lang.Object
fr.gouv.vitam.common.database.collections.VitamCollectionHelper
Vitam Collection Helper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> VitamCollection<T>
getCollection
(Class<T> clasz, boolean multitenant, boolean usingScore, String prefix, VitamDescriptionResolver vitamDescriptionResolver) getCollection with collection classstatic boolean
isLogbookCollection
(String collectionName) check if the collection is a logbook onestatic boolean
isMetadataCollection
(String collectionName) check if the collection is a metadata one
-
Constructor Details
-
VitamCollectionHelper
public VitamCollectionHelper()
-
-
Method Details
-
getCollection
public static <T> VitamCollection<T> getCollection(Class<T> clasz, boolean multitenant, boolean usingScore, String prefix, VitamDescriptionResolver vitamDescriptionResolver) getCollection with collection class- Parameters:
clasz
- a class of a unknown typemultitenant
-usingScore
-- Returns:
- VitamCollection
-
isMetadataCollection
check if the collection is a metadata one- Parameters:
collectionName
-- Returns:
- true if yes
-
isLogbookCollection
check if the collection is a logbook one- Parameters:
collectionName
-- Returns:
- true if yes
-