Class: SCIMMY.Messages.BulkResponse

SCIM Bulk Response Message

Summary:
  • Encapsulates bulk operation results as BulkResponse messages for consumption by a client.
  • Provides a method to unwrap BulkResponse results into operation success status, and map newly created resource IDs to their BulkRequest bulkIds.

Usage

Instantiate a new SCIM BulkResponse message from the supplied Operations

                    
                        new SCIMMY.Messages.BulkResponse(request)
                    
                
Since:
1.0.0
Parameters:
Name Type Description
request Object|Object[]

contents of the BulkResponse if object, or results of performed operations if array

Properties
Name Type Description
Operationsopt Object[]

list of applied SCIM-compliant bulk operation results, if request is an object

Properties:
Name Type Description
Operations Object[]

list of BulkResponse operation results

Methods

resolve() → {Map.<String, (String|Boolean)>}

Resolve bulkIds of POST operations into new resource IDs

Returns:

map of bulkIds to resource IDs if operation was successful, or false if not

Type:
{Map.<String, (String|Boolean)>}