| Modifier and Type | Method and Description |
|---|---|
Post |
createPost(Map<String,Object> post,
PostStatus status) |
Post |
createPost(Post post,
PostStatus status) |
Post |
deletePost(Post post) |
Post |
getPost(Long id) |
Post |
getPost(Long id,
String context) |
static SearchRequest<Post> |
list()
Search request just returning the first page of posts.
|
Post |
updatePost(Post post)
PUT /post/{id}
|
Post |
updatePostField(Long postId,
String field,
Object value) |
Post createPost(Map<String,Object> post, PostStatus status) throws PostCreateException
post - Map<String, Object>status - PostPostCreateException
status - Post status of the post:
* draft,
* publish,
* pending,
* future,
* private
or any custom registered status.
If providing a status of future, you must specify a date in order for the post to be published as expected.
Default is draft. (string) optional
Post createPost(Post post, PostStatus status) throws PostCreateException
PostCreateExceptionPost getPost(Long id) throws PostNotFoundException
PostNotFoundExceptionPost getPost(Long id, String context) throws PostNotFoundException
PostNotFoundExceptionstatic SearchRequest<Post> list()
Copyright © 2016. All rights reserved.