Class CollectionValidatorUtil

java.lang.Object
com.skava.accounts.util.CollectionValidatorUtil
All Implemented Interfaces:
Serializable

public class CollectionValidatorUtil extends Object implements Serializable
The utility class CollectionValidatorUtil consists of helper and validator methods for collection entity.
Author:
Infosys Equinox
See Also:
  • Constructor Details

    • CollectionValidatorUtil

      public CollectionValidatorUtil()
  • Method Details

    • validateDescription

      public static void validateDescription(CollectionRequestInternal request, org.springframework.context.MessageSource messageSource)
      validateDescription - to check if the description exceeds a particular length.
      Parameters:
      request - request object of type CollectionRequestInternal
      messageSource - the object MessageSource
    • checkCollectionNameExists

      public static void checkCollectionNameExists(CollectionsRepository collectionRepository, Collections collection, org.springframework.context.MessageSource messageSource, String locale)
      checkCollectionNameExists - Used to check if a collection already exists for the given name.
      Parameters:
      collectionRepository - the object of type CollectionsRepository
      collection - the object of type Collections
      messageSource - the object MessageSource
      locale - the locale