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