Class BasicStoreServiceImpl

Direct Known Subclasses:
StoreAssociationPropertyServiceImpl, StoreServiceImplExtension

public class BasicStoreServiceImpl extends BasicStoreServiceImplExtension

This class provides methods for store related APIs. All APIs require accessToken to authenticate the request.

Since:
8.0
Version:
8.0
Author:
Infosys Equinox
  • Field Details

  • Constructor Details

  • Method Details

    • validateAssociations

      public void validateAssociations(Store store, Business business)
      Validate the associations.
      Parameters:
      store - Instance of Store.
      business - Instance of Business.
    • findAllByServiceNameAndCollectionId

      public List<BigInteger> findAllByServiceNameAndCollectionId(long collectionId, String serviceName)
      find stores by collection id and service name
      Parameters:
      collectionId - Contains collection id
      serviceName - Contains service name
      Returns:
      Returns list of store ids
    • findAllByServiceNameAndCollectionIdAndStoreIds

      public List<BigInteger> findAllByServiceNameAndCollectionIdAndStoreIds(long collectionId, String serviceName, Set<Long> storeIds)
      find stores by collection id, service name and store ids from a filter
      Parameters:
      collectionId - Contains collection id
      serviceName - Contains service name
      storeIds - Contains list of storeIds
      Returns:
      Returns list of store ids
    • findStoreAssociationsByStoreId

      public List<StoreAssociation> findStoreAssociationsByStoreId(Long storeId)
      Parameters:
      storeId - Contains store id
      Returns:
      A StoreAssociation object.
    • findStoreServicePropertiesByStoreId

      public List<StoreServiceProperty> findStoreServicePropertiesByStoreId(Long storeId)
      Parameters:
      storeId - Contains store id
      Returns:
      Returns list of StoreServiceProperty object
    • createAssociations

      public List<StoreAssociation> createAssociations(List<StoreAssociation> associations, Store storeId, Business business)
      Parameters:
      associations - Instance of StoreAssociation.
      storeId - Contains store id
      business - Instance of StoreAssociation.
      Returns:
      A Business object.
    • deleteAssociationsByStoreId

      public void deleteAssociationsByStoreId(Long storeId)
      Parameters:
      storeId - Contains store id
    • updateAssociations

      public List<StoreAssociation> updateAssociations(List<StoreAssociation> associations, Store storeId, Business business)
      Parameters:
      associations - Instance of StoreAssociation.
      storeId - Contains store id
      business - Instance of StoreAssociation.
      Returns:
      A StoreAssociation object.
    • getBusinessIdByStoreId

      @Cacheable(value="storeBusinessIdCache", key="#storeId", unless="#result == null") public Long getBusinessIdByStoreId(long storeId)
      Parameters:
      storeId - Contains store id
      Returns:
      Returns business id