Package fr.gouv.vitam.common.database.collections

# Class VitamCollectionHelper

java.lang.Object
fr.gouv.vitam.common.database.collections.VitamCollectionHelper

public class VitamCollectionHelper extends Object
Vitam Collection Helper

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VitamCollectionHelper()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static <T> VitamCollection<T>`
  `getCollection(Class<T> clasz, boolean multitenant, boolean usingScore, String prefix, VitamDescriptionResolver vitamDescriptionResolver)`
  getCollection with collection class
  `static boolean`
  `isLogbookCollection(String collectionName)`
  check if the collection is a logbook one
  `static boolean`
  `isMetadataCollection(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 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 type
      `multitenant` -
      `usingScore` -
    Returns:
      VitamCollection

  - ### isMetadataCollection

    public static boolean isMetadataCollection(String collectionName)
    check if the collection is a metadata one
    Parameters:
      `collectionName` -
    Returns:
      true if yes

  - ### isLogbookCollection

    public static boolean isLogbookCollection(String collectionName)
    check if the collection is a logbook one
    Parameters:
      `collectionName` -
    Returns:
      true if yes