Class CollectionUtil


public class CollectionUtil extends CollectionHelperServices
The class checks for the collection attribute validations
Since:
04-Oct-2018
Author:
Infosys Equinox
  • Constructor Details

    • CollectionUtil

      public CollectionUtil()
  • Method Details

    • checkCollectionProperties

      public static CollectionProperties[] checkCollectionProperties(CollectionProperties[] collectionProperties, CollectionAttributeRepository collectionAttributeRepository)
      This method will check the collection properties length and the attribute nullable check
      Parameters:
      collectionProperties - - properties to be checked
      collectionAttributeRepository - - contains the collection attribute repository for mongo operations
      Returns:
      the collection properties Debug logger has been added to this method.
    • checkCollectionProperty

      public static CollectionProperties[] checkCollectionProperty(CollectionProperties[] collectionProperties, List<CollectionAttribute> collectionAttributes)
      The method checks for all the collection properties while creating the collection
      Parameters:
      collectionProperties - - properties to be checked
      collectionAttributes - - contains the collection attribute repository for mongo operations
      Returns:
      the collection properties Debug logger has been added to this method.
    • checkPatchCollectionProperty

      public static void checkPatchCollectionProperty(CollectionProperties[] collectionProperties, List<CollectionAttribute> collectionAttributes)
      This method check the collection properties one by one
      Parameters:
      collectionProperties - contains the properties in collection
      collectionAttributes - contains the attributes defined
    • checkPatchCollectionPropertyByPropertyName

      public static void checkPatchCollectionPropertyByPropertyName(CollectionProperties property, List<CollectionAttribute> collectionAttributes)
      This method checks for the request of the updation of collection property
      Parameters:
      property - contains the property to be checked
      collectionAttributes - contains the defoned attributes
    • getOrderMetricflag

      public boolean getOrderMetricflag(Collection collection)
      Parameters:
      collection -
      Returns:
      boolean