Class AccountEndpoint
java.lang.Object
com.broadleafcommerce.customer.web.endpoint.AccountEndpoint
@FrameworkRestController
@FrameworkMapping("/accounts")
@DataRouteByExample(Account.class)
public class AccountEndpoint
extends Object
Endpoint for management of
Accounts
.- Author:
- Chris Kittrell (ckittrell)
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAccountEndpoint
(AccountService<Account> accountService, AccountMemberService<AccountMember> accountMemberService) -
Method Summary
Modifier and TypeMethodDescriptioncreateAccount
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Account account) void
deleteAccount
(String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected AccountMemberService<AccountMember>
protected AccountService<Account>
protected org.springframework.data.domain.Page<Account>
hydrateParentAccounts
(org.springframework.data.domain.Page<Account> accounts, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readAccountById
(String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected Map<String,
AccountRef> readAccountMap
(Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readAccountsForCustomer
(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) org.springframework.data.domain.Page<Account>
readAllAccounts
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) replaceAccount
(String accountId, Account account, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
AccountEndpoint
public AccountEndpoint(AccountService<Account> accountService, AccountMemberService<AccountMember> accountMemberService)
-
-
Method Details
-
readAllAccounts
@Policy(permissionRoots="ACCOUNT") @FrameworkGetMapping public org.springframework.data.domain.Page<Account> readAllAccounts(cz.jirutka.rsql.parser.ast.Node filters, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readAccountById
-
createAccount
-
replaceAccount
-
deleteAccount
@Policy(permissionRoots="ACCOUNT") @FrameworkDeleteMapping("/{id}") public void deleteAccount(@PathVariable("id") String accountId, @ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
readAccountsForCustomer
-
hydrateParentAccounts
-
readAccountMap
protected Map<String,AccountRef> readAccountMap(Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getAccountService
-
getAccountMemberService
-