Class BlogViewerServiceImpl
- java.lang.Object
-
- co.mastermindcms.modules.services.BlogViewerServiceImpl
-
- All Implemented Interfaces:
BlogViewerService
@Service public class BlogViewerServiceImpl extends java.lang.Object implements BlogViewerService
-
-
Field Summary
Fields Modifier and Type Field Description private BlogCategoryService
blogCategoryService
private ContentContainerService
containerService
private ContentContainerRepository
contentContainerRepository
private org.springframework.data.mongodb.core.MongoTemplate
mongoTemplate
-
Constructor Summary
Constructors Constructor Description BlogViewerServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
getArticles(java.lang.String regexFilter)
This method retrieves a map, which can be processed in a templates.java.util.List<java.util.Map<java.lang.String,java.lang.String>>
getContainerArticles(java.lang.String blogId)
This method retrieves a map, which can be processed in a templates.java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
getRelatedBlogs(java.lang.String blogId, java.lang.String size)
This method retrieves a map, which can be processed in a templates.boolean
isContainerTypeEqualsTo(java.lang.String containerId, java.lang.String type)
This method does return boolean result.
-
-
-
Field Detail
-
contentContainerRepository
@Autowired private ContentContainerRepository contentContainerRepository
-
blogCategoryService
@Autowired private BlogCategoryService blogCategoryService
-
containerService
@Autowired private ContentContainerService containerService
-
mongoTemplate
@Autowired private org.springframework.data.mongodb.core.MongoTemplate mongoTemplate
-
-
Method Detail
-
getArticles
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getArticles(java.lang.String regexFilter)
Description copied from interface:BlogViewerService
This method retrieves a map, which can be processed in a templates.- Specified by:
getArticles
in interfaceBlogViewerService
- Parameters:
regexFilter
- regexp for a filtering by "_id" field of database entity- Returns:
- map-representation of data
-
getContainerArticles
public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getContainerArticles(java.lang.String blogId)
Description copied from interface:BlogViewerService
This method retrieves a map, which can be processed in a templates.- Specified by:
getContainerArticles
in interfaceBlogViewerService
- Parameters:
blogId
- identification for database entity which will be retrieved- Returns:
- map-representation of data
-
getRelatedBlogs
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getRelatedBlogs(java.lang.String blogId, java.lang.String size)
Description copied from interface:BlogViewerService
This method retrieves a map, which can be processed in a templates.- Specified by:
getRelatedBlogs
in interfaceBlogViewerService
- Parameters:
blogId
- identification for database entity which will be retrievedsize
- the quantity of returned items- Returns:
- map-representation of data
-
isContainerTypeEqualsTo
public boolean isContainerTypeEqualsTo(java.lang.String containerId, java.lang.String type)
Description copied from interface:BlogViewerService
This method does return boolean result.- Specified by:
isContainerTypeEqualsTo
in interfaceBlogViewerService
- Parameters:
containerId
- identification for database entity which will be retrievedtype
- value to check- Returns:
- value as boolean
-
-