public interface MarketplaceService
Vendor
,
MarketplaceSite
Modifier and Type | Method and Description |
---|---|
Vendor |
createVendor() |
List<org.broadleafcommerce.common.site.domain.Site> |
findMarketplaceSitesByType(MarketplaceSiteType type)
Finds the
Site s with the given MarketplaceSiteType . |
List<org.broadleafcommerce.common.site.domain.Catalog> |
findSharedCatalogs()
Finds the
Catalog s where MarketplaceCatalog.isSharedWithVendors() is true. |
List<Long> |
findSharedCatalogsIds()
Finds the
Catalog IDs where MarketplaceCatalog.isSharedWithVendors() is true. |
Vendor |
findVendorById(Long vendorId) |
Vendor |
getVendorForAdminUser(org.broadleafcommerce.openadmin.server.security.domain.AdminUser user)
Utility method used for getting the vendor for the given
AdminUser
* @see Vendor |
Vendor |
getVendorForCatalog(org.broadleafcommerce.common.site.domain.Catalog catalog)
Utility method used for getting the vendor for the given
Catalog |
Vendor |
getVendorForFulfillmentGroup(org.broadleafcommerce.core.order.domain.FulfillmentGroup fg) |
Vendor |
getVendorForOrderItem(org.broadleafcommerce.core.order.domain.OrderItem orderItem)
Get Vendor for order item
|
Vendor |
getVendorForProduct(org.broadleafcommerce.core.catalog.domain.Product product)
Get Vendor for product
|
List<com.broadleafcommerce.oms.fulfillment.domain.FulfillmentOrder> |
listFulfillmentOrdersBySubmitDateAndVendor(int maxRecords,
Long lastId,
Date lastSubmitDate,
com.broadleafcommerce.oms.fulfillment.domain.type.FulfillmentOrderStatusType status,
Boolean acknowledged,
Date beginDate,
Date endDate,
Long vendorId)
Orders all fulfillmentOrders by Order.submitDate and Id for a given Vendor.
|
Vendor |
saveVendor(Vendor vendor) |
Vendor createVendor()
Vendor getVendorForCatalog(org.broadleafcommerce.common.site.domain.Catalog catalog)
Catalog
catalog
- the catalogVendor
,
MarketplaceSite
Vendor getVendorForAdminUser(org.broadleafcommerce.openadmin.server.security.domain.AdminUser user)
AdminUser
* @see Vendoruser
- the admin userMarketplaceSite
List<org.broadleafcommerce.common.site.domain.Site> findMarketplaceSitesByType(MarketplaceSiteType type)
Site
s with the given MarketplaceSiteType
.type
- the typeSite
List<org.broadleafcommerce.common.site.domain.Catalog> findSharedCatalogs()
Catalog
s where MarketplaceCatalog.isSharedWithVendors()
is true.List<Long> findSharedCatalogsIds()
Catalog
IDs where MarketplaceCatalog.isSharedWithVendors()
is true.List<com.broadleafcommerce.oms.fulfillment.domain.FulfillmentOrder> listFulfillmentOrdersBySubmitDateAndVendor(int maxRecords, Long lastId, Date lastSubmitDate, com.broadleafcommerce.oms.fulfillment.domain.type.FulfillmentOrderStatusType status, Boolean acknowledged, Date beginDate, Date endDate, Long vendorId)
maxRecords
- Limit for records returnedlastId
- Used in conjunction with lastSubmitDate and maxRecords to
retrieve next grouplastSubmitDate
- Used in conjunction with lastId and maxRecords to retrieve
next groupstatus
- (Optional) Defaults to NEWacknowledged
- (Optional) Defaults to FALSEbeginDate
- (Optional)endDate
- (Optional)vendorId
- (Required) The vendor for which these fulfillment orders are forVendor getVendorForProduct(org.broadleafcommerce.core.catalog.domain.Product product)
product
- Vendor getVendorForOrderItem(org.broadleafcommerce.core.order.domain.OrderItem orderItem)
orderItem
- Copyright © 2020. All rights reserved.