Class MarketingServiceImpl
- java.lang.Object
-
- co.mastermindcms.modules.services.MarketingServiceImpl
-
- All Implemented Interfaces:
MarketingService
@Service public class MarketingServiceImpl extends java.lang.Object implements MarketingService
-
-
Field Summary
Fields Modifier and Type Field Description private AccessManagementService
accessManagementService
private org.springframework.context.ApplicationContext
appContext
private CommonProperties
commonProperties
private org.springframework.data.mongodb.core.MongoTemplate
mongoTemplate
private TranslationService
translationService
-
Constructor Summary
Constructors Constructor Description MarketingServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
generateDashlyHash()
This method generates the hash with algorithm HMAC SHA 256 for Dashly Analytics Platformjava.util.List<CustomerReport>
getCustomersReport()
This method is used to generate a report which contains all registered customersjava.util.Map<java.lang.String,java.lang.Object>
getSeoMetaData(java.lang.String seoUrl, java.lang.String repositoryName)
This method does search request for database entity based on seo URL propertyjava.lang.String
getSeoUrl(java.lang.String id, java.lang.String repositoryName)
This method does search request for seo URL propertyjava.util.Map<java.lang.String,java.lang.Object>
getSeoUrlAsValue(java.lang.String id, java.lang.String repositoryName)
This method does search request for seo URL propertyjava.lang.String
getSeoUrlByLang(java.lang.String id, java.lang.String lang, java.lang.String repositoryName)
This method does search request for seo URL property
-
-
-
Field Detail
-
mongoTemplate
@Autowired private org.springframework.data.mongodb.core.MongoTemplate mongoTemplate
-
commonProperties
@Autowired private CommonProperties commonProperties
-
accessManagementService
@Autowired private AccessManagementService accessManagementService
-
translationService
@Autowired private TranslationService translationService
-
appContext
@Autowired private org.springframework.context.ApplicationContext appContext
-
-
Method Detail
-
getCustomersReport
public java.util.List<CustomerReport> getCustomersReport()
Description copied from interface:MarketingService
This method is used to generate a report which contains all registered customers- Specified by:
getCustomersReport
in interfaceMarketingService
- Returns:
- a list of entities for each customer
-
generateDashlyHash
public java.lang.String generateDashlyHash()
Description copied from interface:MarketingService
This method generates the hash with algorithm HMAC SHA 256 for Dashly Analytics Platform- Specified by:
generateDashlyHash
in interfaceMarketingService
- Returns:
- hash calculated by the HMAC SHA 256
-
getSeoMetaData
public java.util.Map<java.lang.String,java.lang.Object> getSeoMetaData(java.lang.String seoUrl, java.lang.String repositoryName)
Description copied from interface:MarketingService
This method does search request for database entity based on seo URL property- Specified by:
getSeoMetaData
in interfaceMarketingService
- Parameters:
seoUrl
- this is SEO-url, human-readable valuerepositoryName
- repository name from where will be returned data- Returns:
- map-representation of data
-
getSeoUrl
public java.lang.String getSeoUrl(java.lang.String id, java.lang.String repositoryName)
Description copied from interface:MarketingService
This method does search request for seo URL property- Specified by:
getSeoUrl
in interfaceMarketingService
- Parameters:
id
- this is entity idrepositoryName
- repository name from where will be returned data- Returns:
- SEO-url value as a string
-
getSeoUrlAsValue
public java.util.Map<java.lang.String,java.lang.Object> getSeoUrlAsValue(java.lang.String id, java.lang.String repositoryName)
Description copied from interface:MarketingService
This method does search request for seo URL property- Specified by:
getSeoUrlAsValue
in interfaceMarketingService
- Parameters:
id
- this is entity idrepositoryName
- repository name from where will be returned data- Returns:
- map-representation of data
-
getSeoUrlByLang
public java.lang.String getSeoUrlByLang(java.lang.String id, java.lang.String lang, java.lang.String repositoryName)
Description copied from interface:MarketingService
This method does search request for seo URL property- Specified by:
getSeoUrlByLang
in interfaceMarketingService
- Parameters:
id
- this is entity idlang
- iso code for languagerepositoryName
- repository name from where will be returned data- Returns:
- SEO-url value as a string
-
-