Class AccountMemberEndpoint


  • @FrameworkRestController
    @FrameworkMapping("/accounts/{accountId}/members")
    @DataRouteByExample(Account.class)
    public class AccountMemberEndpoint
    extends Object
    • 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)