Class WordpressServicePostsAdapter
- java.lang.Object
-
- org.apache.camel.component.wordpress.api.service.impl.WordpressServicePostsAdapter
-
- All Implemented Interfaces:
WordpressCrudService<Post,PostSearchCriteria>,WordpressService,WordpressServicePosts
public class WordpressServicePostsAdapter extends Object implements WordpressServicePosts
TheWordpressServicePostsimplementation. Aggregates thePostsSPIinterface usingJAXRSClientFactoryto make the API calls.- Since:
- 0.0.1
-
-
Constructor Summary
Constructors Constructor Description WordpressServicePostsAdapter(String wordpressUrl, String apiVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcreate(T object)Tdelete(Integer id)protected PostdoCreate(Post object)protected PostdoDelete(Integer id)protected DeletedModel<Post>doForceDelete(Integer id)protected PostdoRetrieve(Integer postId, Context context)protected PostdoUpdate(Integer id, Post object)DeletedModel<T>forceDelete(Integer id)protected StringgetApiVersion()protected AgetSpi()protected Class<PostsSPI>getSpiType()List<Post>list(PostSearchCriteria criteria)Postretrieve(Integer postId)Tretrieve(Integer entityID, Context context)Postretrieve(Integer postId, Context context, String password)Default endpoint.voidsetWordpressAuthentication(WordpressAuthentication authentication)Sets the Wordpress Authentication ModelTupdate(Integer id, T object)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.camel.component.wordpress.api.service.WordpressCrudService
create, delete, forceDelete, retrieve, update
-
Methods inherited from interface org.apache.camel.component.wordpress.api.service.WordpressService
setWordpressAuthentication
-
-
-
-
Method Detail
-
list
public List<Post> list(PostSearchCriteria criteria)
- Specified by:
listin interfaceWordpressCrudService<Post,PostSearchCriteria>
-
retrieve
public Post retrieve(Integer postId, Context context, String password)
Description copied from interface:WordpressServicePostsDefault endpoint.- Specified by:
retrievein interfaceWordpressServicePosts- Returns:
-
retrieve
public Post retrieve(Integer postId)
- Specified by:
retrievein interfaceWordpressCrudService<Post,PostSearchCriteria>
-
doForceDelete
protected DeletedModel<Post> doForceDelete(Integer id)
-
create
public final T create(T object)
- Specified by:
createin interfaceWordpressCrudService<A,T>
-
delete
public final T delete(Integer id)
- Specified by:
deletein interfaceWordpressCrudService<A,T>
-
forceDelete
public final DeletedModel<T> forceDelete(Integer id)
- Specified by:
forceDeletein interfaceWordpressCrudService<A,T>
-
update
public final T update(Integer id, T object)
- Specified by:
updatein interfaceWordpressCrudService<A,T>
-
retrieve
public final T retrieve(Integer entityID, Context context)
- Specified by:
retrievein interfaceWordpressCrudService<A,T>
-
getSpi
protected final A getSpi()
-
getApiVersion
protected final String getApiVersion()
-
setWordpressAuthentication
public final void setWordpressAuthentication(WordpressAuthentication authentication)
Description copied from interface:WordpressServiceSets the Wordpress Authentication Model- Specified by:
setWordpressAuthenticationin interfaceWordpressService
-
-