Class BillingInvoiceOrderDetailController
java.lang.Object
com.sap.hybris.sapbillinginvoiceocc.controllers.BillingInvoiceOrderDetailController
@Controller
@RequestMapping("/{baseSiteId}/users/{userId}")
public class BillingInvoiceOrderDetailController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<byte[]>getBillingDocument(String code, String billingDocId, String fields) protected ExternalSystemBillingDocumentDatagetSapOrderCodeForBillingDocument(String orderCode, String documentId) protected voidvalidateUserForOrder(String code) Validates if the current user has access to the order
-
Constructor Details
-
BillingInvoiceOrderDetailController
public BillingInvoiceOrderDetailController()
-
-
Method Details
-
getBillingDocument
@Secured({"ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/orders/{code}/billingDocuments/{billingDocId}.pdf", method=GET, produces="application/pdf", consumes="application/json") @ResponseStatus(OK) @ResponseBody public org.springframework.http.ResponseEntity<byte[]> getBillingDocument(@PathVariable String code, @PathVariable String billingDocId, @RequestParam(required=false,defaultValue="DEFAULT") String fields) -
getSapOrderCodeForBillingDocument
protected ExternalSystemBillingDocumentData getSapOrderCodeForBillingDocument(String orderCode, String documentId) -
validateUserForOrder
Validates if the current user has access to the order- Parameters:
code- the order code- Throws:
de.hybris.platform.webservicescommons.errors.exceptions.NotFoundException- if current user has no access to the order
-