Class CollectionProcessBase

java.lang.Object
com.skava.promotion.process.CollectionProcessBase
Direct Known Subclasses:
CollectionProcess

@Component public class CollectionProcessBase extends Object
This class contains the functionality to perform operations on collection
Since:
8.0
Version:
8.0
Author:
Infosys Equinox
  • Field Details

  • Constructor Details

    • CollectionProcessBase

      public CollectionProcessBase()
  • Method Details

    • create

      public CollectionDO create(CollectionDO collectionDO)
      Creates the Collection based on the instance of CollectionDO instance.
      Response would consist of the collection id along with the data came from the request
      Parameters:
      collectionDO - Contains the attributes required for the creation of Collection.
      Returns:
      An instance of CollectionDO.
    • collectionNameExists

      public boolean collectionNameExists(long businessId, String name)
      Checks for the given name already exists in a collection for given business.
      Parameters:
      businessId - Holds the businessId
      name - Holds the name
      Returns:
      true if the name already exists otherwise false.
    • setConfigObj

      protected static CollectionPropertiesDO setConfigObj(CollectionDO collectionDO)
      Sets the config object to fetch the collection properties under the specified collection Id in CollectionDO instance.
      Parameters:
      collectionDO - An instance of CollectionDO
      Returns:
      An instance of CollectionPropertiesDO
    • dateTimeInLong

      public long dateTimeInLong(LocalDateTime localDateTime)
    • longInDate

      public LocalDateTime longInDate(long time)