@RestResource(id="atg.commerce.order.restresources.PaymentGroupShippingGroupRelationshipRestSubresource") public class PaymentGroupShippingGroupRelationshipRestSubresource extends AbstractCommerceIdentifierRestSubresource
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
static java.lang.String | 
NO_PAYMENT_GROUP_SHIPPING_GROUP_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 | 
|---|
PaymentGroupShippingGroupRelationshipRestSubresource()  | 
| Modifier and Type | Method and Description | 
|---|---|
OrderManager | 
getOrderManager()
Gets the order manager component which provides the methods to access
 payment group manager and commerce item manager etc 
 | 
protected PaymentGroupShippingGroupRelationship | 
getPaymentGroupShippingGroupRelationship(Order pOrder,
                                        java.lang.String pRelationshipId)
Retrieves the specific payment group shipping group relationship for the order. 
 | 
RepresentationModel | 
getPaymentGroupShippingGroupRelationship(java.lang.String pRelationshipId,
                                        java.lang.String pOrderId)
Returns the PaymentGroupShippingGroup relationship for the given relationshipId in the order. 
 | 
RepresentationModel | 
getPaymentGroupShippingGroupRelationships()
Collection endpoint returning the paymentGroup shippingGroup relationships for the given parent order. 
 | 
protected java.util.List | 
getPaymentGroupShippingGroupRelationships(Order pOrder)
For the given order this method returns list of payment group shipping
 group relationships. 
 | 
protected RepresentationModel.Builder | 
getRepresentationModelBuilder(java.lang.Object pState,
                             java.lang.String pOrderId)
Gets the RepresentationModel.Builder with the given object acting as the state. 
 | 
void | 
setOrderManager(OrderManager pOrderManager)
Sets the order manager component which provides the methods to access
 payment 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_PAYMENT_GROUP_SHIPPING_GROUP_REL_FOUND
public PaymentGroupShippingGroupRelationshipRestSubresource()
public void setOrderManager(OrderManager pOrderManager)
pOrderManager - the order manager component which provides the methods to access
          payment group manager and commerce item manager etcpublic OrderManager getOrderManager()
@Endpoint(id="/paymentGroupShippingGroupRelationships/{relationshipId}#GET", isSingular=true, filterId="paymentGroupShippingGroupRelationships.id-Default") public RepresentationModel getPaymentGroupShippingGroupRelationship(java.lang.String pRelationshipId, java.lang.String pOrderId) throws RestException, CommerceException
Also embeds the paymentGroup and shippingGroup summaries in the PaymentGroupShippingGroup relationship.
pRelationshipId - Id of the paymentGroupShippingGroupRelationship to be retrievedpOrderId - Id of the order for which shippingGroupCommerceItemRelationship is to be retrieved.RestException - if an internal error occurred whilst getting the payment group shipping group relationshipCommerceException - if an internal error occurred whilst getting the payment group shipping group relationship@Endpoint(id="/paymentGroupShippingGroupRelationships#GET", isSingular=false, filterId="paymentGroupShippingGroupRelationships-Default") public RepresentationModel getPaymentGroupShippingGroupRelationships() throws RestException, CommerceException
RestException - if an internal error occurred whilst getting the payment group shipping group relationshipsCommerceException - if an internal error occurred whilst getting the payment group shipping group relationshipsprotected PaymentGroupShippingGroupRelationship getPaymentGroupShippingGroupRelationship(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 payment group shipping group relationshipsprotected java.util.List getPaymentGroupShippingGroupRelationships(Order pOrder) throws CommerceException
pOrder - the order containing the paymentGroupShippingGroup relationshipsCommerceException - if any internal error occursprotected RepresentationModel.Builder getRepresentationModelBuilder(java.lang.Object pState, java.lang.String pOrderId) throws RestException
Also embeds the paymentGroup and shippingGroup 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