core/dynamic-component/abstract-id-resolver.ts
Properties |
|
Methods |
|
constructor(dynamicResolver: DynamicResolverService, service?)
|
|||||||||
Parameters :
|
Protected Abstract Readonly typeForErrorMessage |
Type : string
|
Used within the buildRetrievalAlert method to generate the alert text. For ManagedObjects this would be set to managedObject, for events e.g. to event. |
Protected idsGroupedByBulkId |
Default value : new Map<number, string[]>()
|
Map containing the ids to be retrieved per bulk request. |
resultsOfBulkLoad |
Type : Observable<literal type>
|
Provides an Observable of the results of all bulk requests. |
buildRetrievalAlert | |||||||||
buildRetrievalAlert(entity: Partial
|
|||||||||
Parameters :
Returns :
DynamicComponentAlert
|
Protected performBulkRequest | |||||||||
performBulkRequest(uniqIds: string[], bulkRequestId: number)
|
|||||||||
Parameters :
Returns :
Promise | Observable
|
Protected serializeSingleObject | ||||||
serializeSingleObject(obj: T)
|
||||||
Parameters :
Returns :
Partial<T>
|
addIdsToBeLoaded | |||||||||
addIdsToBeLoaded(bulkRequestId: number, ...ids: string[])
|
|||||||||
Adds a single id or an array of ids to the idsGroupedByBulkId Map for the provided bulkRequestId.
Parameters :
Returns :
void
|
getResult$ | ||||||
getResult$(bulkRequestId: number)
|
||||||
Provides an Observable of the results of the given bulkRequestId.
Parameters :
Returns :
Observable<literal type>
|
Protected isEntityOfId | |||||||||
isEntityOfId(obj: T, id: string)
|
|||||||||
Checks wether an object is of given id. Will by default compare the id attribute with the given id.
Parameters :
Returns :
boolean
|
resolve |
resolve(config: any, attribute: string, bulkRequestId: number)
|
|
serialize |
serialize(config: any, attribute: string)
|
Default implementation compatible with serializing an object or an Array of objects. Calls serializeSingleObject for an object and for every entry within the array.
Returns :
Partial | Array
|