public class WordpressServicePagesAdapter extends Object implements WordpressServicePages
WordpressServicePosts
implementation. Aggregates the PostsSPI
interface using JAXRSClientFactory
to make the API calls.Constructor and Description |
---|
WordpressServicePagesAdapter(String wordpressUrl,
String apiVersion) |
Modifier and Type | Method and Description |
---|---|
T |
create(T object) |
T |
delete(Integer id) |
protected Page |
doCreate(Page object) |
protected Page |
doDelete(Integer id) |
protected DeletedModel<T> |
doForceDelete(Integer id) |
protected Page |
doRetrieve(Integer entityID,
Context context) |
protected Page |
doUpdate(Integer id,
Page object) |
DeletedModel<T> |
forceDelete(Integer id) |
protected String |
getApiVersion() |
protected A |
getSpi() |
protected Class<PagesSPI> |
getSpiType() |
List<Page> |
list(PageSearchCriteria c) |
T |
retrieve(Integer entityID) |
T |
retrieve(Integer entityID,
Context context) |
Page |
retrieve(Integer pageId,
Context context,
String password) |
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, retrieve, update
setWordpressAuthentication
public List<Page> list(PageSearchCriteria c)
list
in interface WordpressCrudService<Page,PageSearchCriteria>
public Page retrieve(Integer pageId, Context context, String password)
retrieve
in interface WordpressServicePages
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>
protected DeletedModel<T> doForceDelete(Integer id)
public final T update(Integer id, T object)
update
in interface WordpressCrudService<T,S extends SearchCriteria>
public T retrieve(Integer entityID)
retrieve
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