Class ContentPagesAPI
- java.lang.Object
-
- com.cheetahdigital.corekit.models.module.Controller
-
- com.cheetahdigital.content.core.api.contentpages.ContentPagesAPI
-
- All Implemented Interfaces:
RestController
public class ContentPagesAPI extends Controller
Class for setting the query parameters of Content Pages API. AllNullable
parameters means you can remove the parameter by passing anull
value.
-
-
Field Summary
-
Fields inherited from class com.cheetahdigital.corekit.models.module.Controller
STANDARD_DATE_FORMAT, TIMEZONE_DATE_FORMAT
-
-
Constructor Summary
Constructors Constructor Description ContentPagesAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getContentPage(ContentPagesParams contentPagesParams, boolean clearCache, ListenerModel<BaseModel<ContentPage>,ContentPage> listener)
Get a specific content page from the servervoid
getContentPages(ContentPagesParams contentPagesParams, boolean clearCache, ListenerModel<BaseModel<ContentPages>,ContentPages> listener)
Get All ContentPages-
Methods inherited from class com.cheetahdigital.corekit.models.module.Controller
createCache, createHttpClient, createRetrofitInterface, evictAllCache, getGsonConfiguration, getRestAdapter, getTimeoutConnectionInSeconds, getTimeoutSocketInSeconds, initialize, removeResponsesFromCache
-
-
-
-
Method Detail
-
getContentPages
public void getContentPages(ContentPagesParams contentPagesParams, boolean clearCache, ListenerModel<BaseModel<ContentPages>,ContentPages> listener)
Get All ContentPages- Parameters:
contentPagesParams
- theContentPagesParams
for Content Pages APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
getContentPage
public void getContentPage(ContentPagesParams contentPagesParams, boolean clearCache, ListenerModel<BaseModel<ContentPage>,ContentPage> listener)
Get a specific content page from the server- Parameters:
contentPagesParams
- theContentPagesParams
for Content Pages APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
-