Class VitamCollectionHelper


  • public class VitamCollectionHelper
    extends java.lang.Object
    Vitam Collection Helper
    • 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 class
      static boolean isLogbookCollection​(java.lang.String collectionName)
      check if the collection is a logbook one
      static boolean isMetadataCollection​(java.lang.String collectionName)
      check if the collection is a metadata one
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VitamCollectionHelper

        public VitamCollectionHelper()
    • 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 type
        multitenant -
        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