Class AccountMemberEndpoint
java.lang.Object
com.broadleafcommerce.customer.web.endpoint.AccountMemberEndpoint
@FrameworkRestController
@FrameworkMapping("/accounts/{accountId}/members")
@DataRouteByExample(Account.class)
public class AccountMemberEndpoint
extends Object
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAccountMemberEndpoint
(AccountMemberService<AccountMember> accountMemberService) -
Method Summary
Modifier and TypeMethodDescriptionprotected AccountMemberService<AccountMember>
readAccountMember
(String accountId, String accountMemberId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) org.springframework.data.domain.Page<AccountMember>
readAccountMembers
(String accountId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) registerAccountMember
(String accountId, RegisterAccountMemberRequest registerRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
removeAccountMember
(String accountId, String accountMemberId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) updateAccountMember
(String accountId, String accountMemberId, UpdateAccountMemberRequest updateRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
AccountMemberEndpoint
-
-
Method Details
-
readAccountMembers
@Policy(permissionRoots="ACCOUNT_MEMBER") @FrameworkGetMapping public org.springframework.data.domain.Page<AccountMember> readAccountMembers(@PathVariable("accountId") String accountId, cz.jirutka.rsql.parser.ast.Node filters, @PageableDefault org.springframework.data.domain.Pageable page, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
registerAccountMember
@Policy(permissionRoots="ACCOUNT_MEMBER") @FrameworkPostMapping(consumes="application/json") public AccountMember registerAccountMember(@PathVariable("accountId") String accountId, @RequestBody RegisterAccountMemberRequest registerRequest, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readAccountMember
@Policy(permissionRoots="ACCOUNT_MEMBER") @FrameworkGetMapping("/{accountMemberId}") public AccountMember readAccountMember(@PathVariable("accountId") String accountId, @PathVariable("accountMemberId") String accountMemberId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
updateAccountMember
@Policy(permissionRoots="ACCOUNT_MEMBER") @FrameworkMapping(value="/{accountMemberId}", consumes="application/json", method={PATCH,PUT}) public AccountMember updateAccountMember(@PathVariable("accountId") String accountId, @PathVariable("accountMemberId") String accountMemberId, @RequestBody UpdateAccountMemberRequest updateRequest, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
removeAccountMember
@Policy(permissionRoots="ACCOUNT_MEMBER") @FrameworkDeleteMapping("/{accountMemberId}") public void removeAccountMember(@PathVariable("accountId") String accountId, @PathVariable("accountMemberId") String accountMemberId, @ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getAccountMemberService
-