Class AccountInviteEndpoint


  • @FrameworkRestController
    @FrameworkMapping
    @DataRouteByExample(Account.class)
    public class AccountInviteEndpoint
    extends Object
    • Method Detail

      • readAllInvites

        @Policy(permissionRoots="ACCOUNT_INVITE")
        @FrameworkGetMapping("/accounts/{accountId}/account-invites")
        public org.springframework.data.domain.Page<AccountInvite> readAllInvites​(cz.jirutka.rsql.parser.ast.Node filters,
                                                                                  @PathVariable
                                                                                  String accountId,
                                                                                  @PageableDefault(size=20)
                                                                                  org.springframework.data.domain.Pageable page,
                                                                                  @ContextOperation
                                                                                  com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      • inviteAccountMember

        @Policy(permissionRoots="ACCOUNT_INVITE")
        @FrameworkPostMapping("/accounts/{accountId}/account-invites")
        public org.springframework.http.ResponseEntity<AccountInvite> inviteAccountMember​(@PathVariable
                                                                                          String accountId,
                                                                                          @RequestBody
                                                                                          AccountInviteRequest request,
                                                                                          @ContextOperation(CREATE)
                                                                                          com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      • revokeInvite

        @Policy(permissionRoots="ACCOUNT_INVITE")
        @FrameworkDeleteMapping("/accounts/{accountId}/account-invites/{inviteId}")
        public void revokeInvite​(@PathVariable
                                 String accountId,
                                 @PathVariable
                                 String inviteId,
                                 @RequestParam
                                 String accountMemberId,
                                 @ContextOperation(DELETE)
                                 com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      • resendInvite

        @Policy(permissionRoots="ACCOUNT_INVITE")
        @FrameworkPostMapping("/accounts/{accountId}/account-invites/{inviteId}/resend-invite")
        public AccountInvite resendInvite​(@PathVariable
                                          String accountId,
                                          @PathVariable
                                          String inviteId,
                                          @ContextOperation(UPDATE)
                                          com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      • acceptInvite

        @Policy(permissionRoots={"CUSTOMER","CUSTOMER_PROFILE"})
        @FrameworkPostMapping("/accounts/{accountId}/account-invites/{inviteId}/accept-invite")
        public AccountMember acceptInvite​(@PathVariable
                                          String accountId,
                                          @PathVariable
                                          String inviteId,
                                          @ContextOperation(UPDATE)
                                          com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      • readMyAccountInvites

        @Policy(permissionRoots={"CUSTOMER","CUSTOMER_PROFILE"})
        @FrameworkGetMapping("/accounts/my-account-invites")
        public org.springframework.data.domain.Page<AccountInvite> readMyAccountInvites​(@PageableDefault(50)
                                                                                        org.springframework.data.domain.Pageable page,
                                                                                        @ContextOperation
                                                                                        com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Read the logged in user's account invites.
        Returns:
        Any account invites the user currently has