Samples > WebSphere Commerce portlet samples
Predefined expression builders in the WebSphere Commerce portlet samples
The WebSphere Commerce portlet samples provide many predefined expression builders which can be reused to call WebSphere Commerce services. These expression builders are defined in the component-name/get-data-config.xml files.
The following tables contains the expression builders in the get-data-config.xml files, and provide the Fetch and Compose task implementations for the convenience:
Catalog
Expression builder name Fetch Task Command Implementation Compose Task Command Implementation Data type Expression builder Parameters getMasterCatalog com.ibm.commerce.catalog.facade.server.commands.FetchCatalogByStoreIdCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogDetailsTaskCmdImpl Catalog {ibmwcf.ap=$accessProfile$}/Catalog[@primary='$booleanValue$']
- accessProfile
- WC_CatalogDetails
- booleanValue
- true
getAllCatalogs com.ibm.commerce.catalog.facade.server.commands.FetchCatalogByStoreIdCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogDetailsTaskCmdImpl Catalog {ibmwcf.ap=$accessProfile$}/Catalog[@primary='$booleanValue$']
- accessProfile
- WC_CatalogDetails
- booleanValue
- false
getCatalogDetailsByID com.ibm.commerce.catalog.facade.server.commands.FetchCatalogByCatalogIdCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogDetailsTaskCmdImpl Catalog {ibmwcf.ap=$accessProfile$}/Catalog[CatalogIdentifier[(UniqueID='$catalogId$')]]
- accessProfile
- WC_CatalogDetails
getCatalogDetailsByIdentifier com.ibm.commerce.catalog.facade.server.commands.FetchCatalogByIdentifierTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogDetailsTaskCmdImpl Catalog {ibmwcf.ap=$accessProfile$}/Catalog[CatalogIdentifier[ExternalIdentifier[Identifier='$catalogIdentifier$']]]
- accessProfile
- WC_CatalogDetails
getCatalogEntrySummaryByID com.ibm.commerce.catalog.facade.server.commands.FetchCatalogEntryByCatEntryIdTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntrySummaryTaskCmdImpl CatalogEntry {ibmwcf.ap=$accessProfile$}/CatalogEntry[CatalogEntryIdentifier[(UniqueID='$catEntryId$')]]
- accessProfile
- WC_CatalogEntrySummary
getCatalogEntryDetailsByID com.ibm.commerce.catalog.facade.server.commands.FetchCatalogEntryByCatEntryIdTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntryDetailsTaskCmdImpl CatalogEntry {ibmwcf.ap=$accessProfile$}/CatalogEntry[CatalogEntryIdentifier[(UniqueID='$catEntryId$')]]
- accessProfile
- WC_CatalogEntryDetails
getCatalogEntryMerchandisingAssociationsByID com.ibm.commerce.catalog.facade.server.commands.FetchCatalogEntryByCatEntryIdTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntryMerchandisingAssociationsTaskCmdImpl CatalogEntry {ibmwcf.ap=$accessProfile$}/CatalogEntry[CatalogEntryIdentifier[(UniqueID='$catEntryId$')]]
- accessProfile
- WC_CatalogEntryMerchandisingAssociations
getCatalogEntryComponentsByID com.ibm.commerce.catalog.facade.server.commands.FetchCatalogEntryByCatEntryIdTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntryComponentsTaskCmdImpl CatalogEntry {ibmwcf.ap=$accessProfile$}/CatalogEntry[CatalogEntryIdentifier[(UniqueID='$catEntryId$')]]
- accessProfile
- WC_CatalogEntryComponents
getCatalogEntrySummaryByPartNumber com.ibm.commerce.catalog.facade.server.commands.FetchCatalogEntryByPartNumberTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntrySummaryTaskCmdImpl CatalogEntry {ibmwcf.ap=$accessProfile$}/CatalogEntry[CatalogEntryIdentifier[ExternalIdentifier[(PartNumber='$partNumber$')]]
- accessProfile
- WC_CatalogEntrySummary
getCatalogEntryDetailsByPartNumber com.ibm.commerce.catalog.facade.server.commands.FetchCatalogEntryByPartNumberTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntryDetailsTaskCmdImpl CatalogEntry {ibmwcf.ap=$accessProfile$}/CatalogEntry[CatalogEntryIdentifier[ExternalIdentifier[(PartNumber='$partNumber$')]]
- accessProfile
- WC_CatalogEntryDetails
getCatalogEntryMerchandisingAssociationsByPartNumber com.ibm.commerce.catalog.facade.server.commands.FetchCatalogEntryByPartNumberTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntryMerchandisingAssociationsTaskCmdImpl CatalogEntry {ibmwcf.ap=$accessProfile$}/CatalogEntry[CatalogEntryIdentifier[ExternalIdentifier[(PartNumber='$partNumber$')]]
- accessProfile
- WC_CatalogEntryMerchandisingAssociations
getCatalogEntryComponentsByPartNumber com.ibm.commerce.catalog.facade.server.commands.FetchCatalogEntryByPartNumberTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntryComponentsTaskCmdImpl CatalogEntry {ibmwcf.ap=$accessProfile$}/CatalogEntry[CatalogEntryIdentifier[ExternalIdentifier[(PartNumber='$partNumber$')]]
- accessProfile
- WC_CatalogEntryComponents
findCatalogEntriesSummaryByPartNumber com.ibm.commerce.catalog.facade.server.commands.FetchCatalogEntryBySearchTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntrySummaryTaskCmdImpl CatalogEntry {ibmwcf.ap=$accessProfile$;wc_nameOp=$nameOp$}/CatalogEntry[CatalogEntryIdentifier[ExternalIdentifier[contains(@PartNumber,'$partNumber$')]]]
- accessProfile
- WC_CatalogEntrySummary
findCatalogEntriesDetailsByPartNumber com.ibm.commerce.catalog.facade.server.commands.FetchCatalogEntryBySearchTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntryDetailsTaskCmdImpl CatalogEntry {ibmwcf.ap=$accessProfile$;wc_nameOp=$nameOp$}/CatalogEntry[CatalogEntryIdentifier[ExternalIdentifier[contains(@PartNumber,'$partNumber$')]]]
- accessProfile
- WC_CatalogEntryDetails
findCatalogEntriesSummaryByName com.ibm.commerce.catalog.facade.server.commands.FetchCatalogEntryBySearchTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntrySummaryTaskCmdImpl CatalogEntry {ibmwcf.ap=$accessProfile$;wc_nameOp=$nameOp$;wc_searchTermScope=$searchTermScope$}/CatalogEntry[Description[contains(@Name,'$name$')]]
- accessProfile
- WC_CatalogEntrySummary
- searchTermScope
- 2
findCatalogEntriesDetailsByName com.ibm.commerce.catalog.facade.server.commands.FetchCatalogEntryBySearchTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntryDetailsTaskCmdImpl CatalogEntry {ibmwcf.ap=$accessProfile$;wc_nameOp=$nameOp$;wc_searchTermScope=$searchTermScope$}/CatalogEntry[Description[contains(@Name,'$name$')]]
- accessProfile
- WC_CatalogEntryDetails
- searchTermScope
- 2
findCatalogEntriesSummaryByDescription com.ibm.commerce.catalog.facade.server.commands.FetchCatalogEntryBySearchTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntrySummaryTaskCmdImpl CatalogEntry {ibmwcf.ap=$accessProfile$;wc_nameOp=$nameOp$;wc_searchTermScope=$searchTermScope$}/CatalogEntry[Description[contains(@ShortDescription,'$description$')]]
- accessProfile
- WC_CatalogEntrySummary
- searchTermScope
- 1
findCatalogEntriesDetailsByDescription com.ibm.commerce.catalog.facade.server.commands.FetchCatalogEntryBySearchTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogEntryDetailsTaskCmdImpl CatalogEntry {ibmwcf.ap=$accessProfile$;wc_nameOp=$nameOp$;wc_searchTermScope=$searchTermScope$}/CatalogEntry[Description[contains(@ShortDescription,'$description$')]]
- accessProfile
- WC_CatalogEntryDetails
- searchTermScope
- 1
getCatalogGroupSummaryByID com.ibm.commerce.catalog.facade.server.commands.FetchCatalogGroupByIdTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogGroupSummaryTaskCmdImpl CatalogGroup {ibmwcf.ap=$accessProfile$}/CatalogGroup[CatalogGroupIdentifier[UniqueID='$catGroupId$']]
- accessProfile
- WC_CatalogGroupSummary
getCatalogGroupDetailsByID com.ibm.commerce.catalog.facade.server.commands.FetchCatalogGroupByIdTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogGroupDetailsTaskCmdImpl CatalogGroup {ibmwcf.ap=$accessProfile$}/CatalogGroup[CatalogGroupIdentifier[UniqueID='$catGroupId$']]
- accessProfile
- WC_CatalogGroupDetails
getCatalogGroupMerchandisingAssociationsByID com.ibm.commerce.catalog.facade.server.commands.FetchCatalogGroupByIdTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogGroupMerchandisingAssociationsTaskCmdImpl CatalogGroup {ibmwcf.ap=$accessProfile$}/CatalogGroup[CatalogGroupIdentifier[UniqueID='$catGroupId$']]
- accessProfile
- WC_CatalogGroupMerchandisingAssociations
getCatalogGroupSummaryByIdentifier com.ibm.commerce.catalog.facade.server.commands.FetchCatalogGroupByIdentifierTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogGroupSummaryTaskCmdImpl CatalogGroup {ibmwcf.ap=$accessProfile$}/CatalogGroup[CatalogGroupIdentifier[ExternalIdentifier[GroupIdentifier='$catGroupIdentifier$']]]
- accessProfile
- WC_CatalogGroupSummary
getCatalogGroupDetailsByIdentifier com.ibm.commerce.catalog.facade.server.commands.FetchCatalogGroupByIdentifierTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogGroupDetailsTaskCmdImpl CatalogGroup {ibmwcf.ap=$accessProfile$}/CatalogGroup[CatalogGroupIdentifier[ExternalIdentifier[GroupIdentifier='$catGroupIdentifier$']]]
- accessProfile
- WC_CatalogGroupDetails
getCatalogGroupMerchandisingAssociationsByIdentifier com.ibm.commerce.catalog.facade.server.commands.FetchCatalogGroupByIdentifierTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogGroupMerchandisingAssociationsTaskCmdImpl CatalogGroup {ibmwcf.ap=$accessProfile$}/CatalogGroup[CatalogGroupIdentifier[ExternalIdentifier[GroupIdentifier='$catGroupIdentifier$']]]
- accessProfile
- WC_CatalogGroupMerchandisingAssociations
getTopCategories com.ibm.commerce.catalog.facade.server.commands.FetchTopCategoriesTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeTopCategoriesTaskCmdImpl CatalogGroup {ibmwcf.ap=$accessProfile$}/CatalogGroup[@topCatalogGroup='$booleanValue$']
- accessProfile
- WC_CatalogGroupTopCategories
- booleanValue
- true
getCategoryWithChildrenCategories com.ibm.commerce.catalog.facade.server.commands.FetchCatalogGroupByIdTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogGroupCatalogGroupChildrenTaskCmdImpl CatalogGroup {ibmwcf.ap=$accessProfile$}/CatalogGroup[CatalogGroupIdentifier[UniqueID='$catGroupId$']]
- accessProfile
- WC_CatalogGroupCatalogGroupChildren
getCategoryWithChildrenCatalogEntries com.ibm.commerce.catalog.facade.server.commands.FetchCatalogGroupByIdTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogGroupCatalogEntryChildrenTaskCmdImpl CatalogGroup {ibmwcf.ap=$accessProfile$}/CatalogGroup[CatalogGroupIdentifier[UniqueID='$catGroupId$']]
- accessProfile
- WC_CatalogGroupCatalogEntryChildren
getCategoryWithAllChildren com.ibm.commerce.catalog.facade.server.commands.FetchCatalogGroupByIdTaskCmdImpl com.ibm.commerce.catalog.facade.server.commands.ComposeCatalogGroupAllChildrenTaskCmdImpl CatalogGroup {ibmwcf.ap=$accessProfile$}/CatalogGroup[CatalogGroupIdentifier[UniqueID='$catGroupId$']]
- accessProfile
- WC_CatalogGroupAllChildren
Order
Expression builder name Fetch Task Command Implementation Compose Task Command Implementation Data type Expression Default Parameters findCurrentShoppingCart com.ibm.commerce.order.facade.server.commands.FetchOrdersByExtParameterCmdImpl com.ibm.commerce.order.facade.server.commands.ComposeOrderSummaryCmdImpl Order {ibmwcf.ap=$accessProfile$;ibmord.isCurrentShoppingCart='$isCurrentShoppingCart$'}/Order
- accessProfile
- WC_OrderSummary
- isCurrentShoppingCart
- true
findByOrderStatus com.ibm.commerce.order.facade.server.commands.FetchOrdersByStatusCmdImpl com.ibm.commerce.order.facade.server.commands.ComposeOrderSummaryCmdImpl Order {ibmwcf.ap=$accessProfile$}/Order[OrderStatus[(Status='$status$')]]
- accessProfile
- WC_OrderSummary
findByOrderId com.ibm.commerce.order.facade.server.commands.FetchOrdersByIdentifierCmdImpl com.ibm.commerce.order.facade.server.commands.ComposeOrderSummaryCmdImpl Order {ibmwcf.ap=$accessProfile$}/Order[OrderIdentifier[(UniqueID='$orderId$')]]
- accessProfile
- WC_OrderSummary
findByOrderId com.ibm.commerce.order.facade.server.commands.FetchOrdersByIdentifierCmdImpl com.ibm.commerce.order.facade.server.commands.ComposeUsableShippingInformationCmdImpl Order {ibmwcf.ap=$accessProfile$}/Order[OrderIdentifier[(UniqueID='$orderId$')]]
- accessProfile
- WC_UsableShippingInfo
findByOrderId com.ibm.commerce.order.facade.server.commands.FetchOrdersByIdentifierCmdImpl com.ibm.commerce.order.facade.server.commands.ComposeUsablePaymentInformationCmdImpl Order {ibmwcf.ap=$accessProfile$}/Order[OrderIdentifier[(UniqueID='$orderId$')]]
- accessProfile
- WC_UsablePaymentInfo
Member
Expression builder name Fetch Task Command Implementation Compose Task Command Implementation Data type Expression builder Parameters findCurrentPerson com.ibm.commerce.member.facade.server.commands.FetchPersonCmdImpl com.ibm.commerce.member.facade.server.commands.ComposePersonFromDataBeanAllCmdImpl Person {self=true;ibmwcf.ap=$accessProfile$}/Person
- accessProfile
- All
findByUniqueId com.ibm.commerce.member.facade.server.commands.FetchPersonCmdImpl com.ibm.commerce.member.facade.server.commands.ComposePersonFromDataBeanAllCmdImpl Person {ibmwcf.ap=$accessProfile$}/Person[PersonIdentifier[(UniqueId='$personId$')]]
- accessProfile
- All
findByDistinguishedName com.ibm.commerce.member.facade.server.commands.FetchPersonCmdImpl com.ibm.commerce.member.facade.server.commands.ComposePersonFromDataBeanAllCmdImpl Person {ibmwcf.ap=$accessProfile$}/Person[PersonIdentifier[(DistinguishedName='$distinguishedName$')]]
- accessProfile
- All
Related concepts
WebSphere Commerce Web services
WebSphere Commerce services functional architecture
Design pattern for Get service implementation
Related tasks
Create a new search expression
Related reference
WebSphere Commerce portlet samples