Interface BlogIntegrationImplementation

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean deletePost​(BlogDetails blogDetails, java.lang.String postId)
      Delete an existing blog post
      java.lang.String getDisplayName()
      Gets the display name of the blog integration
      java.lang.String getName()
      Gets the name of the blog integration
      java.util.Map<java.lang.String,​java.lang.Object> getPost​(BlogDetails blogDetails, java.lang.String postId)
      Get the details of an existing blog post
      java.lang.String newPost​(BlogDetails blogDetails, java.lang.String title, java.lang.String body, boolean publish)
      Create a new post on the blog.
      boolean updatePost​(BlogDetails blogDetails, java.lang.String postId, java.lang.String title, java.lang.String body, boolean publish)
      Update an exisiting blog post
    • Method Detail

      • getName

        java.lang.String getName()
        Gets the name of the blog integration
        Returns:
        String the name of the blog integration
      • getDisplayName

        java.lang.String getDisplayName()
        Gets the display name of the blog integration
        Returns:
        String the display name of the blog integration
      • newPost

        java.lang.String newPost​(BlogDetails blogDetails,
                                 java.lang.String title,
                                 java.lang.String body,
                                 boolean publish)
        Create a new post on the blog.
        Parameters:
        blogDetails - the blog details
        title - the title of the post
        body - the body of the post
        publish - indicates whether the post is published or not
        Returns:
        String the newly created post id
      • updatePost

        boolean updatePost​(BlogDetails blogDetails,
                           java.lang.String postId,
                           java.lang.String title,
                           java.lang.String body,
                           boolean publish)
        Update an exisiting blog post
        Parameters:
        blogDetails - BlogDetails
        postId - String
        title - String
        body - String
        publish - boolean
        Returns:
        boolean
      • getPost

        java.util.Map<java.lang.String,​java.lang.Object> getPost​(BlogDetails blogDetails,
                                                                       java.lang.String postId)
        Get the details of an existing blog post
        Parameters:
        blogDetails - BlogDetails
        postId - String
        Returns:
        Map
      • deletePost

        boolean deletePost​(BlogDetails blogDetails,
                           java.lang.String postId)
        Delete an existing blog post
        Parameters:
        blogDetails - BlogDetails
        postId - String
        Returns:
        boolean