Class CollectionPropertyProcess
java.lang.Object
com.skava.ratingandreviews.collection.process.CollectionPropertyProcess
Class CollectionPropertyProcess
This class contains the functionality to perform CRUD operations of Collection Properties
- Since:
- 8.0
- Version:
- 8.0
- Author:
- Infosys Equinox
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionPropertyProcess
(CollectionFactory collectionFactory, CollectionPropertyFactory collectionPropertyFactory, CollectionRepository collectionRepository, CacheImpl cacheImpl) -
Method Summary
Modifier and TypeMethodDescriptionfindByName
(CollectionPropertyDomain collectionPropertiesDO) FindByNameupdateCollectionProperties
(long collectionId, long businessId, Map<String, CollectionPropertyDomain> collectionPropertiesDomainMap) method update
-
Constructor Details
-
CollectionPropertyProcess
@Autowired public CollectionPropertyProcess(CollectionFactory collectionFactory, CollectionPropertyFactory collectionPropertyFactory, CollectionRepository collectionRepository, CacheImpl cacheImpl)
-
-
Method Details
-
findByName
FindByName
This function is used to find the collection property by name.
- Parameters:
collectionPropertiesDO
- An instance ofCollectionPropertyDomain
. I contains the collection id and attribute id to load the collection properties.- Returns:
- An instance of
CollectionPropertyDomain
. It contains the data of collection property loaded from the database.
-
updateCollectionProperties
public Map<String,CollectionPropertyDomain> updateCollectionProperties(long collectionId, long businessId, Map<String, CollectionPropertyDomain> collectionPropertiesDomainMap) method update
This function is used to update the collection properties
- Parameters:
collectionId
- The collection identifierbusinessId
- The business identifiercollectionPropertiesDomainMap
- The collection properties map of the properties that needs to be updated- Returns:
- The updated collection properties map
-