Class SearchUtility

java.lang.Object
com.skava.shipping.util.SearchUtility

public final class SearchUtility extends Object
This is a Utility class used for filter and sort functionality.
Since:
8.0
Author:
Infosys Equinox
  • Field Details

  • Method Details

    • isValidPageAndSize

      public static boolean isValidPageAndSize(int page, int size)
      Checks whether the page and size are valid
      Parameters:
      page - Requested page no from the request
      size - Size of the page
      Returns:
      it returns boolean true/false
    • isValidId

      public static boolean isValidId(long id)
      Converts given values to appropriate ordinal values
      Parameters:
      id - identifier of the collection to be validated
      Returns:
      returns the boolean value
    • validateCollectionName

      public static String validateCollectionName(CollectionDataRequest collectionDataRequest)
      Checks the collection name whether its non-empty and valid
      Parameters:
      collectionDataRequest - name of the collection to be validated
      Returns:
      returns the error code for validation.
    • validateCollectionDescription

      public static String validateCollectionDescription(CollectionDataRequest collectionDataRequest)
      Checks the collection name whether its non-empty and valid
      Parameters:
      collectionDataRequest - description of the collection to be validated
      Returns:
      returns the error code for validation.
    • validateLocale

      public static void validateLocale(String locale)
      SkuId Validation
      Parameters:
      locale - It contains locale of the item.