Class ContentResolverRequest
- All Implemented Interfaces:
 Serializable
ContentItemResolverEndpoint to retrieve ContentItems from a commerce-facing context.- Author:
 - Nathan Moore (nathandmoore)
 - See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected booleanbooleanReturn any additional attributes passed in the request not matching any defined properties.Map holding any additional attributes passed in the request not matching any defined properties.Any contextual information needed to resolve targetted content.Name of aContentZoneto retrieve relatedContentItems.Ids ofContentItemsto retrieve.Names ofContentItemsto retrieve.Id of aContentModelall of whoseContentItemsto retrieve.Name of aContentModelall of whoseContentItemsto retrieve.The id of this content resolver request.getUri()URI of either aContentModelall of whoseContentItemsshould be retrieved or else that of a singleContentItem.inthashCode()voidsetAttributes(Map<String, Object> attributes) Map holding any additional attributes passed in the request not matching any defined properties.voidsetContentContext(ContentContext contentContext) Any contextual information needed to resolve targetted content.voidsetContentZoneName(String contentZoneName) Name of aContentZoneto retrieve relatedContentItems.voidsetItemIds(Set<String> itemIds) Ids ofContentItemsto retrieve.voidsetItemNames(Set<String> itemNames) Names ofContentItemsto retrieve.voidsetModelId(String modelId) Id of aContentModelall of whoseContentItemsto retrieve.voidsetModelName(String modelName) Name of aContentModelall of whoseContentItemsto retrieve.voidsetRequestId(String requestId) The id of this content resolver request.voidURI of either aContentModelall of whoseContentItemsshould be retrieved or else that of a singleContentItem.voidAdded for compatibility with CatalogBrowseServices requests to resolve a browse entity that may be a content item, product, or category when only a URI is known.toString() 
- 
Constructor Details
- 
ContentResolverRequest
public ContentResolverRequest() 
 - 
 - 
Method Details
- 
setUris
Added for compatibility with CatalogBrowseServices requests to resolve a browse entity that may be a content item, product, or category when only a URI is known. The payload there could include multiple URIs, but this service can only handle a single URI. This will pick the first and set it asuri.- Parameters:
 uris-
 - 
addAttribute
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
 name- Name of the additional attributevalue- Value of the additional attribute
 - 
getAttribute
Return any additional attributes passed in the request not matching any defined properties.- Returns:
 - any additional attributes passed in the request not matching any defined properties.
 
 - 
getRequestId
The id of this content resolver request.- Since:
 - 2.0.3
 
 - 
getItemNames
Names ofContentItemsto retrieve.If
uri,itemIds,modelId, ormodelNameare present, then this will be ignored.- Returns:
 - Names of 
ContentItemsto retrieve. 
 - 
getItemIds
Ids ofContentItemsto retrieve.If
uri,modelId, ormodelNameare present, then this will be ignored. If this is present, thenitemNameswill be ignored.- Returns:
 - Ids of 
ContentItemsto retrieve. 
 - 
getModelName
Name of aContentModelall of whoseContentItemsto retrieve.If present,
itemIdsanditemNameswill be ignored will be ignored. IfuriormodelIdare present, then this will be ignored. - 
getModelId
Id of aContentModelall of whoseContentItemsto retrieve.If present,
modelId,itemIds, anditemNameswill be ignored. Ifuriis present, then this will be ignored. - 
getUri
URI of either aContentModelall of whoseContentItemsshould be retrieved or else that of a singleContentItem. In the latter case, the parentContentModel's URIshould be appended in the request.If present,
itemNames,itemIds,modelId, andmodelNamewill be ignored.- Returns:
 - URI of either a 
ContentModelall of whoseContentItemsshould be retrieved or else that of a singleContentItem 
 - 
getContentZoneName
Name of aContentZoneto retrieve relatedContentItems.If a zone with the provided name is found, the
ContentZone's`defaultItems` will be returned as well as any `alternateItemSets` that meet their `displayRule`'s criteria.If present, all other request parameters will be ignored.
 - 
getContentContext
Any contextual information needed to resolve targetted content.If present, this information is used during content zone resolution.
 - 
getAttributes
Map holding any additional attributes passed in the request not matching any defined properties. - 
setRequestId
The id of this content resolver request.- Since:
 - 2.0.3
 
 - 
setItemNames
Names ofContentItemsto retrieve.If
uri,itemIds,modelId, ormodelNameare present, then this will be ignored.- Parameters:
 names- Names ofContentItemsto retrieve.
 - 
setItemIds
Ids ofContentItemsto retrieve.If
uri,modelId, ormodelNameare present, then this will be ignored. If this is present, thenitemNameswill be ignored.- Parameters:
 ids- Ids ofContentItemsto retrieve.
 - 
setModelName
Name of aContentModelall of whoseContentItemsto retrieve.If present,
itemIdsanditemNameswill be ignored will be ignored. IfuriormodelIdare present, then this will be ignored. - 
setModelId
Id of aContentModelall of whoseContentItemsto retrieve.If present,
modelId,itemIds, anditemNameswill be ignored. Ifuriis present, then this will be ignored. - 
setUri
URI of either aContentModelall of whoseContentItemsshould be retrieved or else that of a singleContentItem. In the latter case, the parentContentModel's URIshould be appended in the request.If present,
itemNames,itemIds,modelId, andmodelNamewill be ignored.- Parameters:
 uri- URI of either aContentModelall of whoseContentItemsshould be retrieved or else that of a singleContentItem
 - 
setContentZoneName
Name of aContentZoneto retrieve relatedContentItems.If a zone with the provided name is found, the
ContentZone's`defaultItems` will be returned as well as any `alternateItemSets` that meet their `displayRule`'s criteria.If present, all other request parameters will be ignored.
 - 
setContentContext
Any contextual information needed to resolve targetted content.If present, this information is used during content zone resolution.
 - 
setAttributes
Map holding any additional attributes passed in the request not matching any defined properties. - 
equals
 - 
canEqual
 - 
hashCode
public int hashCode() - 
toString
 
 -