Class AccountMemberEndpoint
- java.lang.Object
-
- com.broadleafcommerce.customer.web.endpoint.AccountMemberEndpoint
-
@FrameworkRestController @FrameworkMapping("/accounts/{accountId}/members") @DataRouteByExample(Account.class) public class AccountMemberEndpoint extends Object
-
-
Constructor Summary
Constructors Constructor Description AccountMemberEndpoint(AccountMemberService<AccountMember> accountMemberService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AccountMemberService<AccountMember>
getAccountMemberService()
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)
AccountMember
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)
AccountMember
updateAccountMember(String accountId, String accountMemberId, UpdateAccountMemberRequest updateRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
-
-
Field Detail
-
BASE_URI
public static final String BASE_URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AccountMemberEndpoint
public AccountMemberEndpoint(AccountMemberService<AccountMember> accountMemberService)
-
-
Method Detail
-
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
protected AccountMemberService<AccountMember> getAccountMemberService()
-
-