Class BlogViewerServiceImpl

    • Field Detail

      • mongoTemplate

        @Autowired
        private org.springframework.data.mongodb.core.MongoTemplate mongoTemplate
    • Constructor Detail

      • BlogViewerServiceImpl

        public BlogViewerServiceImpl()
    • 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 interface BlogViewerService
        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 interface BlogViewerService
        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 interface BlogViewerService
        Parameters:
        blogId - identification for database entity which will be retrieved
        size - 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 interface BlogViewerService
        Parameters:
        containerId - identification for database entity which will be retrieved
        type - value to check
        Returns:
        value as boolean