public class WordpressServicePostsAdapter extends Object implements WordpressServicePosts
WordpressServicePosts
implementation. Aggregates the PostsSPI
interface using JAXRSClientFactory
to make the API calls.Constructor and Description |
---|
WordpressServicePostsAdapter(String wordpressUrl,
String apiVersion) |
Modifier and Type | Method and Description |
---|---|
T |
create(T object) |
T |
delete(Integer id) |
protected Post |
doCreate(Post object) |
protected Post |
doDelete(Integer id) |
protected DeletedModel<Post> |
doForceDelete(Integer id) |
protected Post |
doRetrieve(Integer postId,
Context context) |
protected Post |
doUpdate(Integer id,
Post object) |
DeletedModel<T> |
forceDelete(Integer id) |
protected String |
getApiVersion() |
protected A |
getSpi() |
protected Class<PostsSPI> |
getSpiType() |
List<Post> |
list(PostSearchCriteria criteria) |
Post |
retrieve(Integer postId) |
T |
retrieve(Integer entityID,
Context context) |
Post |
retrieve(Integer postId,
Context context,
String password)
Default endpoint.
|
void |
setWordpressAuthentication(WordpressAuthentication authentication)
Sets the Wordpress Authentication Model
|
T |
update(Integer id,
T object) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, delete, forceDelete, retrieve, update
setWordpressAuthentication
public List<Post> list(PostSearchCriteria criteria)
list
in interface WordpressCrudService<Post,PostSearchCriteria>
public Post retrieve(Integer postId, Context context, String password)
WordpressServicePosts
retrieve
in interface WordpressServicePosts
public Post retrieve(Integer postId)
retrieve
in interface WordpressCrudService<Post,PostSearchCriteria>
protected DeletedModel<Post> doForceDelete(Integer id)
public final T create(T object)
create
in interface WordpressCrudService<T,S extends SearchCriteria>
public final T delete(Integer id)
delete
in interface WordpressCrudService<T,S extends SearchCriteria>
public final DeletedModel<T> forceDelete(Integer id)
forceDelete
in interface WordpressCrudService<T,S extends SearchCriteria>
public final T update(Integer id, T object)
update
in interface WordpressCrudService<T,S extends SearchCriteria>
public final T retrieve(Integer entityID, Context context)
retrieve
in interface WordpressCrudService<T,S extends SearchCriteria>
protected final A getSpi()
protected final String getApiVersion()
public final void setWordpressAuthentication(WordpressAuthentication authentication)
WordpressService
setWordpressAuthentication
in interface WordpressService
Apache Camel