Package consulting.pigott.wordpress
Interface WordpressClient
-
- All Known Implementing Classes:
WordpressClientImpl
public interface WordpressClient
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteMedia(java.lang.String id)voiddeletePost(java.lang.String id)java.util.List<Media>getAllMedia(java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> queryParams)java.util.List<Post>getAllPosts(java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> queryParams)MediagetMedia(java.lang.String id)PagedResponse<Media>getMedias(java.lang.Integer page, java.lang.Integer perPage, java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> queryParams)PostgetPost(java.lang.String id)PagedResponse<Post>getPosts(java.lang.Integer page, java.lang.Integer perPage, java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> queryParams)PostsavePost(Post post)MediaupdateMedia(Media media)MediauploadMedia(java.io.File content, org.apache.hc.core5.http.ContentType contentType, java.lang.String filename)
-
-
-
Method Detail
-
getAllPosts
java.util.List<Post> getAllPosts(java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> queryParams) throws java.io.IOException, java.net.URISyntaxException
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
getPosts
PagedResponse<Post> getPosts(java.lang.Integer page, java.lang.Integer perPage, java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> queryParams) throws java.io.IOException, java.net.URISyntaxException
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
getPost
Post getPost(java.lang.String id) throws java.io.IOException, java.net.URISyntaxException
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
savePost
Post savePost(Post post) throws java.io.IOException, java.net.URISyntaxException
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
deletePost
void deletePost(java.lang.String id) throws java.io.IOException, java.net.URISyntaxException- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
getAllMedia
java.util.List<Media> getAllMedia(java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> queryParams) throws java.io.IOException, java.net.URISyntaxException
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
getMedias
PagedResponse<Media> getMedias(java.lang.Integer page, java.lang.Integer perPage, java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> queryParams) throws java.io.IOException, java.net.URISyntaxException
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
getMedia
Media getMedia(java.lang.String id) throws java.io.IOException, java.net.URISyntaxException
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
uploadMedia
Media uploadMedia(java.io.File content, org.apache.hc.core5.http.ContentType contentType, java.lang.String filename) throws java.io.IOException, java.net.URISyntaxException
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
updateMedia
Media updateMedia(Media media) throws java.io.IOException, java.net.URISyntaxException
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
deleteMedia
void deleteMedia(java.lang.String id) throws java.io.IOException, java.net.URISyntaxException- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
-