[EMCart sharedCart] is initialized from this configuration
- (UIViewController *) controllerFromDataSource: | (EMSearchQueryDataSource *) | dataSource |
This method is used to configure the mapping between contentItem cartridge ids and their corrensponding UIViewControllers. This is similar to templateconfig.properties in the page builder webapp
- (NSString *) detailEndpointForRecord: | (EMRecord *) | item |
Returns the detail endpoint for a given product. Since there could be different fields used on different items to determine the full URL, the entire EMProduct is passed in so that this logic is pushed to the configuration implementation
For example:
Product *p = (Product *)item;
return [NSString stringWithFormat:"http://example.com/detail.do?styleCode=%@&subCode=%@", p.styleCode, p.subCode];
This value can not be nil. The EMDefaultDetailDataSource class uses this endpoint, and expects a json dictionary in the response.
- (EMSearchQueryFacetsController *) facetsControllerFromDataSource: | (EMSearchQueryDataSource *) | dataSource |
Returns an instance of a EMSearchQueryFacetsController. This method is meant to be used to set default configuration on the facets controller, such as wether to show breadcrumbs, or whether multi-select is enabled
- (Class) recordClass |
Returns a new search controller. This does not get used by EMlib, but is inteded to provide the search controller for the search tab and to be called by ecommerceAppDelegate.m
- (UIViewController *) searchResultControllerFromDataSource: | (EMSearchQueryDataSource *) | dataSource |
This configuration method is used by the EMSearchQueryTransitionController to get an instance of a search results controller. So, for instance, if the user is at a browse controller (i.e. PBCategoryController) and they click on "Top Rated Items", that might add a dimension value (i.e. Rating:5) to the EMSearchQueryDataSource and requery. If no page builder Content Item is returned from the engine, this method is used to get a search results controller.
Supplies the EMSearchQueryInfiniteScrollController with a typeahead data source
- (Class) storeClass |
Returns a new instance of a store info controller.
- (NSString*) bitlyApiKey [read, assign] |
- (NSString*) bitlyLogin [read, assign] |
See the bitlyApiKey description.
- (NSString*) brandsEndpoint [read, assign] |
Returns the endpoint for a list of brand dimensions, used by the EMDynamicBrandController.
For example: "http://example.com/brands.do";
The response must be in the format: [
{ "title": "A", "values" : [
{ "n": "Acer", "i": "4294596263" }, { "n": "Adobe", "i": "4294596538" }
]},
{ "title": "B", "values" : [
{ "n": "Bescor", "i": "4294596103" }, { "n": "Belkin", "i": "4294595959" }
]},
]
- (NSString*) cartEndpoint [read, assign] |
Returns the cart api endpoint that forms the base url for the Endeca Mobile cart API. The EMLocalCartDataSource uses this endpoint to append methods to, for instance "/cart.getList.json"
For example: "http://example.com/mobilecart";
For more detail on the request parameters and the json response format, see the Endeca API specification document.
- (NSString*) facebookAppKey [read, assign] |
App Key for facebook App which publishes to users wall.
- (NSString*) reviewsEndpoint [read, assign] |
Returns the reviews api endpoint that forms the base url for the Endeca Mobile search API.
For example: "http://example.com/mobile/reviews/api.json";
For more detail on the request parameters and the json response format, see the Endeca API specification document.
- (NSString*) searchEndpoint [read, assign] |
Returns the search api endpoint that forms the base url for the Endeca Mobile search API.
For example: "http://example.com/mobile/api.json";
For more detail on the request parameters and the json response format, see the Endeca API specification document.
- (NSString*) storesEndpoint [read, assign] |
Returns the stores api endpoint that forms the base url for the Endeca Mobile search API.
For example: "http://example.com/mobile/stores/api.json";
For more detail on the request parameters and the json response format, see the Endeca API specification document.
- (NSString*) twitterOAuthConsumerKey [read, assign] |
The twitter integration requires the user to login using the OAuth specification. The twitter message controller will pop up a webview with a login page explaining that application "XYZ" is requesting approval to send twitter posts through your account. This key is tied to the "XYZ" account.
- (NSString*) twitterOAuthConsumerSecret [read, assign] |
The secret key part of the OAuth specification that correspond to the key above.
- (NSString*) typeaheadEndpoint [read, assign] |
Used by the EMDynamicKeywordsDataSource.
Supplies the typeahead endpoint as a format string with the %@ string format specifier used as a placeholder for the user's search terms at query time.
For example: "http://example.com/typeahead.do?terms=%@";
This value can be nil.
Currently, the typeaheadEndpoint is expected to return results as two nested JSON arrays:
For example: ["foo", ["food", "fool", "footwear", "football", ...]]