Class AccountAddressEndpoint

java.lang.Object
com.broadleafcommerce.customer.web.endpoint.AccountAddressEndpoint

@FrameworkRestController @FrameworkMapping("/accounts/{accountId}/addresses") @DataRouteByExample(AccountAddress.class) public class AccountAddressEndpoint extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • readAccountAddresses

      @Policy(permissionRoots="ACCOUNT_ADDRESS", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id,parent_accts") @FrameworkGetMapping public org.springframework.data.domain.Page<AccountAddress> readAccountAddresses(@PathVariable("accountId") String accountId, @PageableDefault org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • addAccountAddress

      @Policy(permissionRoots="ACCOUNT_ADDRESS", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id") @FrameworkPostMapping(consumes="application/json") public AccountAddress addAccountAddress(@PathVariable("accountId") String accountId, @RequestBody AccountAddress accountAddress, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • readAccountAddress

      @Policy(permissionRoots="ACCOUNT_ADDRESS", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id,parent_accts") @FrameworkGetMapping("/{accountAddressId}") public AccountAddress readAccountAddress(@PathVariable("accountId") String accountId, @PathVariable("accountAddressId") String accountAddressId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • replaceAccountAddress

      @Policy(permissionRoots="ACCOUNT_ADDRESS", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id") @FrameworkPutMapping(value="/{accountAddressId}", consumes="application/json") public AccountAddress replaceAccountAddress(@PathVariable("accountId") String accountId, @PathVariable("accountAddressId") String accountAddressId, @RequestBody AccountAddress accountAddress, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • deleteAccountAddress

      @Policy(permissionRoots="ACCOUNT_ADDRESS", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id") @FrameworkDeleteMapping("/{accountAddressId}") public void deleteAccountAddress(@PathVariable("accountId") String accountId, @PathVariable("accountAddressId") String accountAddressId, @ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • getAccountService

      protected AccountService<Account> getAccountService()
    • getAccountAddressService

      protected AccountAddressService<AccountAddress> getAccountAddressService()
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()