@RestResource(id="atg.commerce.order.restresources.ShippingGroupRestSubresource") public class ShippingGroupRestSubresource extends AbstractCommerceIdentifierRestSubresource
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
ERR_SHIPPING_GROUP_NOT_FOUND |
DEFAULT_PAGE_SIZE, mEmbeddedCommerceItemRelationshipName, mEmbeddedPaymentGroupRelationshipName, mEmbeddedShippingGroupRelationshipName, RESOURCE_NAME, sResourceBundleSERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
ShippingGroupRestSubresource() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkShippingGroupIsAvailableForOrder(Order pOrder,
java.lang.String pShippingGroupId)
Check whether the shipping group is available in the ShippingGroup container.
|
OrderManager |
getOrderManager()
Returns property OrderManager
|
protected ShippingGroup |
getShippingGroup(Order pOrder,
java.lang.String pShippingGroupId)
Retrieves a specific shipping group from an order.
|
RepresentationModel |
getShippingGroup(java.lang.String pShippingGroupId)
Endpoint that provides the Shipping Group for an Order based on its ID
|
ShippingGroupManager |
getShippingGroupManager()
Returns property ShippingGroupManager
|
RepresentationModel |
getShippingGroups()
Endpoint that provides the Shipping Groups for an Order
|
java.lang.Object |
getShippingMethods(java.lang.String pOrderId,
java.lang.String pShippingGroupId)
Returns the ShippingMethod subresource.
|
void |
setOrderManager(OrderManager pOrderManager)
Sets property OrderManager
|
void |
setShippingGroupManager(ShippingGroupManager pShippingGroupManager)
Sets property ShippingGroupManager
|
addCreatedItemUri, buildMemberUris, getCartUri, getCreatedItemUri, getDefaultLimit, getEmbeddedCartRelationshipName, getEmbeddedCommerceItemRelationshipName, getEmbeddedPaymentGroupRelationshipName, getEmbeddedShippingGroupRelationshipName, getOrder, getRelationshipCreated, getRelationships, getRepresentationModelBuilder, getRepresentationModelBuilder, getRepresentationModelBuilderWithCart, getRepresentationModelBuilderWithCart, getRepresentationModelBuilderWithPaging, getSelfLink, setDefaultLimit, setEmbeddedCartRelationshipName, setEmbeddedCommerceItemRelationshipName, setEmbeddedPaymentGroupRelationshipName, setEmbeddedShippingGroupRelationshipNameaddLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toStringvlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static final java.lang.String CLASS_VERSION
public static final java.lang.String ERR_SHIPPING_GROUP_NOT_FOUND
public void setOrderManager(OrderManager pOrderManager)
pOrderManager - - the OrderManager object to setpublic OrderManager getOrderManager()
public void setShippingGroupManager(ShippingGroupManager pShippingGroupManager)
pShippingGroupManager - - the ShippingGroupManager object to be setpublic ShippingGroupManager getShippingGroupManager()
@Endpoint(id="/shippingGroups/{shippingGroupId}#GET", isSingular=true, filterId="shippingGroups.id-Default") public RepresentationModel getShippingGroup(java.lang.String pShippingGroupId) throws CommerceException, RestException
pShippingGroupId - the ShippingGroup IdCommerceException - if the shipping group cannot be foundRestException - if there is a problem obtaining the shipping group information@Endpoint(id="/shippingGroups/GET", filterId="shippingGroups-Default") public RepresentationModel getShippingGroups() throws RestException
RestException - if something went wrong whilst getting the shipping groups@SubresourceLocator(subresourceIds="atg.commerce.order.restresources.ShippingMethodRestSubresource") public java.lang.Object getShippingMethods(java.lang.String pOrderId, java.lang.String pShippingGroupId) throws RestException, CommerceException
pOrderId - the parent Order IdpShippingGroupId - the ShippingGroup IdRestException - if a problem occurs obtaining the subresourceCommerceException - if the shippingGroupId is invalidprotected ShippingGroup getShippingGroup(Order pOrder, java.lang.String pShippingGroupId) throws CommerceException, RestException
pOrder - The parent orderpShippingGroupId - The ID of the requested shipping groupRestException - if there is a problem obtaining the shipping groupCommerceException - if the shippingGroupId is invalidprotected void checkShippingGroupIsAvailableForOrder(Order pOrder, java.lang.String pShippingGroupId) throws RestException
pOrder - the order containing the shipping groupspShippingGroupId - Id of the payment group to be removed from the orderRestException - with NOT_FOUND status if the shipping group is invalid