Class BlogServiceImpl

    • Constructor Detail

      • BlogServiceImpl

        public BlogServiceImpl()
    • Method Detail

      • getBlog

        @Transactional(readOnly=true)
        public BlogDTO getBlog​(BlogDTO blogDTO)
                        throws java.lang.Exception
        Specified by:
        getBlog in interface BlogService
        Throws:
        java.lang.Exception
      • addBlog

        @Transactional
        public BlogEntity addBlog​(BlogDTO blogDTO)
                           throws java.lang.Exception
        Specified by:
        addBlog in interface BlogService
        Throws:
        java.lang.Exception
      • updateBlogEngine

        @Async
        protected void updateBlogEngine​(BlogDTO blogDTO)
      • removeBlog

        @Transactional
        public int removeBlog​(BlogDTO blogDTO)
                       throws java.lang.Exception
        Specified by:
        removeBlog in interface BlogService
        Throws:
        java.lang.Exception
      • removeBlogEngine

        @Async
        protected void removeBlogEngine​(BlogDTO blogDTO)
      • getLatestBlogList

        @Transactional(readOnly=true)
        public java.util.List<BlogEntity> getLatestBlogList​(BlogDTO blogDto)
                                                     throws java.lang.Exception
        Specified by:
        getLatestBlogList in interface BlogService
        Throws:
        java.lang.Exception
      • getPaginatedBlogList

        @Transactional(readOnly=true)
        public java.util.Map<java.lang.String,​java.lang.Object> getPaginatedBlogList​(BlogDTO blogDTO,
                                                                                           int pageIndex,
                                                                                           int pageUnit)
                                                                                    throws java.lang.Exception
        전체 블로그 리스트를 최신순 + 페이징 처리하여 반환
        Specified by:
        getPaginatedBlogList in interface BlogService
        Parameters:
        blogDTO - , pageIndex, pageUnit
        Returns:
        Map
        Throws:
        java.lang.Exception
      • getRecommendedBlogList

        @Transactional(readOnly=true)
        public java.util.List<BlogEntity> getRecommendedBlogList​(BlogDTO blogDTO)
                                                          throws java.lang.Exception
        Specified by:
        getRecommendedBlogList in interface BlogService
        Throws:
        java.lang.Exception