Class WordpressServicePagesAdapter
- java.lang.Object
-
- org.apache.camel.component.wordpress.api.service.impl.WordpressServicePagesAdapter
-
- All Implemented Interfaces:
WordpressCrudService<Page,PageSearchCriteria>,WordpressService,WordpressServicePages
public class WordpressServicePagesAdapter extends Object implements WordpressServicePages
TheWordpressServicePostsimplementation. Aggregates thePostsSPIinterface usingJAXRSClientFactoryto make the API calls.- Since:
- 0.0.1
-
-
Constructor Summary
Constructors Constructor Description WordpressServicePagesAdapter(String wordpressUrl, String apiVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcreate(T object)Tdelete(Integer id)protected PagedoCreate(Page object)protected PagedoDelete(Integer id)protected DeletedModel<T>doForceDelete(Integer id)protected PagedoRetrieve(Integer entityID, Context context)protected PagedoUpdate(Integer id, Page object)DeletedModel<T>forceDelete(Integer id)protected StringgetApiVersion()protected AgetSpi()protected Class<PagesSPI>getSpiType()List<Page>list(PageSearchCriteria c)Tretrieve(Integer entityID)Tretrieve(Integer entityID, Context context)Pageretrieve(Integer pageId, Context context, String password)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, retrieve, update
-
Methods inherited from interface org.apache.camel.component.wordpress.api.service.WordpressService
setWordpressAuthentication
-
-
-
-
Method Detail
-
list
public List<Page> list(PageSearchCriteria c)
- Specified by:
listin interfaceWordpressCrudService<Page,PageSearchCriteria>
-
retrieve
public Page retrieve(Integer pageId, Context context, String password)
- Specified by:
retrievein interfaceWordpressServicePages
-
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>
-
doForceDelete
protected DeletedModel<T> doForceDelete(Integer id)
-
update
public final T update(Integer id, T object)
- Specified by:
updatein interfaceWordpressCrudService<A,T>
-
retrieve
public T retrieve(Integer entityID)
- Specified by:
retrievein 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
-
-