Class PageProcessorServiceImpl
- java.lang.Object
-
- co.mastermindcms.builder.services.PageProcessorServiceImpl
-
- All Implemented Interfaces:
PageProcessorService
@Service public class PageProcessorServiceImpl extends java.lang.Object implements PageProcessorService
-
-
Field Summary
Fields Modifier and Type Field Description private org.springframework.context.ApplicationContext
appContext
private BuilderProperties
builderProperties
private CommonProperties
commonProperties
private ContentContainerService
contentContainerService
private co.mastermindcms.modules.filestorage.services.FileManagerService
fileManagerService
private org.springframework.data.mongodb.core.MongoTemplate
mongoTemplate
private PageRenderService
pageRenderService
private TranslationService
translationService
-
Constructor Summary
Constructors Constructor Description PageProcessorServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
processPage(java.lang.String pageRoot, java.lang.String html)
Processes the given HTML page and returns a map containing information extracted from the page.java.util.Map<java.lang.String,java.lang.Object>
processPageTitle(java.lang.String entityId, java.lang.String repositoryName)
Retrieves the page title for a given entity ID and repository name.java.util.Map<java.lang.String,java.lang.Object>
processTranslation(java.lang.String pageRoot, java.lang.String articleId, java.lang.String repository)
This method performs content manipulation on the page in order to rebuild it in an SEO-friendly way.private java.lang.String
recursiveCompile(java.lang.String pageRoot, java.lang.String html, boolean isNested)
-
-
-
Field Detail
-
pageRenderService
@Autowired private PageRenderService pageRenderService
-
fileManagerService
@Autowired private co.mastermindcms.modules.filestorage.services.FileManagerService fileManagerService
-
translationService
@Autowired private TranslationService translationService
-
contentContainerService
@Autowired private ContentContainerService contentContainerService
-
builderProperties
@Autowired private BuilderProperties builderProperties
-
commonProperties
@Autowired private CommonProperties commonProperties
-
appContext
@Autowired private org.springframework.context.ApplicationContext appContext
-
mongoTemplate
@Autowired private org.springframework.data.mongodb.core.MongoTemplate mongoTemplate
-
-
Method Detail
-
processPage
public java.util.Map<java.lang.String,java.lang.Object> processPage(java.lang.String pageRoot, java.lang.String html)
Description copied from interface:PageProcessorService
Processes the given HTML page and returns a map containing information extracted from the page.- Specified by:
processPage
in interfacePageProcessorService
- Parameters:
pageRoot
- The root URL or identifier of the page.html
- The HTML content of the page.- Returns:
- A map containing information extracted from the page, with the key "value"
-
processPageTitle
public java.util.Map<java.lang.String,java.lang.Object> processPageTitle(java.lang.String entityId, java.lang.String repositoryName)
Description copied from interface:PageProcessorService
Retrieves the page title for a given entity ID and repository name.- Specified by:
processPageTitle
in interfacePageProcessorService
- Parameters:
entityId
- the ID of the entityrepositoryName
- the name of the repository- Returns:
- a Map object containing the page title as a String value, with the key "value"
-
processTranslation
public java.util.Map<java.lang.String,java.lang.Object> processTranslation(java.lang.String pageRoot, java.lang.String articleId, java.lang.String repository)
Description copied from interface:PageProcessorService
This method performs content manipulation on the page in order to rebuild it in an SEO-friendly way.- Specified by:
processTranslation
in interfacePageProcessorService
- Parameters:
pageRoot
- the root path where the page is locatedarticleId
- transfer identifier in the databaserepository
- the name of the repository from which the transfer can be retrieved- Returns:
- a Map object containing the page title as a String value, with the key "value"
-
recursiveCompile
private java.lang.String recursiveCompile(java.lang.String pageRoot, java.lang.String html, boolean isNested)
-
-