Package com.skava.accounts.util
Class CollectionValidatorUtil
java.lang.Object
com.skava.accounts.util.CollectionValidatorUtil
- All Implemented Interfaces:
Serializable
The utility class CollectionValidatorUtil consists of helper and validator methods for collection entity.
- Author:
- Infosys Equinox
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static void
validateDescription
(CollectionRequestInternal request, org.springframework.context.MessageSource messageSource) validateDescription - to check if the description exceeds a particular length.
-
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 typeCollectionRequestInternal
messageSource
- the objectMessageSource
-
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 typeCollectionsRepository
collection
- the object of typeCollections
messageSource
- the objectMessageSource
locale
- the locale
-