Package com.skava.promotion.process
Class CollectionProcessBase
java.lang.Object
com.skava.promotion.process.CollectionProcessBase
- Direct Known Subclasses:
CollectionProcess
This class contains the functionality to perform operations on collection
- Since:
- 8.0
- Version:
- 8.0
- Author:
- Infosys Equinox
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CollectionAttributeProcess
Holds the instance of collectionAttributeprocessprotected CollectionPropertiesProcess
protected CollectionRepository
protected SequenceRepository
Holds the SequenceRepository -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
collectionNameExists
(long businessId, String name) Checks for the given name already exists in a collection for given business.create
(CollectionDO collectionDO) Creates the Collection based on the instance ofCollectionDO
instance.
Response would consist of the collection id along with the data came from the requestlong
dateTimeInLong
(LocalDateTime localDateTime) longInDate
(long time) protected static CollectionPropertiesDO
setConfigObj
(CollectionDO collectionDO) Sets the config object to fetch the collection properties under the specified collection Id inCollectionDO
instance.
-
Field Details
-
collectionRepository
-
collectionPropertyProcess
-
collectionAttributeprocess
Holds the instance of collectionAttributeprocess -
sequenceRepository
Holds the SequenceRepository
-
-
Constructor Details
-
CollectionProcessBase
public CollectionProcessBase()
-
-
Method Details
-
create
Creates the Collection based on the instance ofCollectionDO
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
Checks for the given name already exists in a collection for given business.- Parameters:
businessId
- Holds the businessIdname
- Holds the name- Returns:
- true if the name already exists otherwise false.
-
setConfigObj
Sets the config object to fetch the collection properties under the specified collection Id inCollectionDO
instance.- Parameters:
collectionDO
- An instance ofCollectionDO
- Returns:
- An instance of
CollectionPropertiesDO
-
dateTimeInLong
-
longInDate
-