@RestResource(id="atg.commerce.order.restresources.ShippingGroupCommerceItemRelationshipRestSubresource") public class ShippingGroupCommerceItemRelationshipRestSubresource extends AbstractCommerceIdentifierRestSubresource
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
NO_SHIPPING_GROUP_COMMERCE_ITEM_REL_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 |
|---|
ShippingGroupCommerceItemRelationshipRestSubresource() |
| Modifier and Type | Method and Description |
|---|---|
OrderManager |
getOrderManager()
Gets the order manager component which provides the utility methods to
access shipping group manager and commerce item manager etc
|
protected RepresentationModel.Builder |
getRepresentationModelBuilder(java.lang.Object pState,
java.lang.String pOrderId)
Gets the RepresentationModel.Builder with the given object acting as the state.
|
protected ShippingGroupCommerceItemRelationship |
getShippingGroupCommerceItemRelationship(Order pOrder,
java.lang.String pRelationshipId)
Retrieves the specific shipping group commerce item relationship for the order.
|
RepresentationModel |
getShippingGroupCommerceItemRelationship(java.lang.String pRelationshipId,
java.lang.String pOrderId)
Returns the shipping group commerce item relationship for the given relationshipId order.
|
RepresentationModel |
getShippingGroupCommerceItemRelationships()
Returns the shippingGroupCommerceItem relationships for the given parent order.
|
protected java.util.List |
getShippingGroupCommerceItemRelationships(Order pOrder)
This method returns list of shippingGroupCommerceItem relationships for the given order
|
void |
setOrderManager(OrderManager pOrderManager)
Sets the order manager component which provides the utility methods to
access shipping group manager and commerce item manager etc.
|
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 NO_SHIPPING_GROUP_COMMERCE_ITEM_REL_FOUND
public ShippingGroupCommerceItemRelationshipRestSubresource()
public void setOrderManager(OrderManager pOrderManager)
pOrderManager - the order manager component which provides the utility methods to
access shipping group manager and commerce item manager etcpublic OrderManager getOrderManager()
@Endpoint(id="/shippingGroupCommerceItemRelationships/{relationshipId}#GET", isSingular=true, filterId="shippingGroupCommerceItemRelationships.id-Default") public RepresentationModel getShippingGroupCommerceItemRelationship(java.lang.String pRelationshipId, java.lang.String pOrderId) throws RestException, CommerceException
Also embeds the shippingGroup and commerceItem summaries in the ShippingGroupCommerceItem relationship.
pRelationshipId - id of the shippingGroupCommerceItemRelationship to be retrievedpOrderId - Id of the order for which shippingGroupCommerceItemRelationship is to be retrieved.RestException - if an internal error occurred whilst getting the shipping group commerce item relationshipCommerceException - if an internal error occurred whilst getting the shipping group commerce item relationship@Endpoint(id="/shippingGroupCommerceItemRelationships#GET", isSingular=false, filterId="shippingGroupCommerceItemRelationships-Default") public RepresentationModel getShippingGroupCommerceItemRelationships() throws RestException, CommerceException
RestException - if an internal error occurred whilst getting the shipping group commerce item relationshipsCommerceException - if an internal error occurred whilst getting the shipping group commerce item relationshipsprotected ShippingGroupCommerceItemRelationship getShippingGroupCommerceItemRelationship(Order pOrder, java.lang.String pRelationshipId) throws RestException, CommerceException
pOrder - the order from which to retrieve the relationshippRelationshipId - the relationship to retrieveRestException - if pRelationshipId is not found in the orderCommerceException - if an internal error occurred whilst getting the shipping group commerce item relationshipsprotected java.util.List getShippingGroupCommerceItemRelationships(Order pOrder) throws CommerceException
pOrder - the order containing the commerce item relationshipsCommerceException - if any internal error occursprotected RepresentationModel.Builder getRepresentationModelBuilder(java.lang.Object pState, java.lang.String pOrderId) throws RestException
Also embeds the shippingGroup and commerceItem summaries.
pState - the state that will be added to the representation model.pOrderId - the id of the order , will be null for a cart.RestException