Adds a listener to an event type.
When an event of the type pType fires, the callback pListener will be called. This function
returns a unique string id that may be used in removeEventListenerById to allow simple
listener removal.
It is possible to add an object that will be included in the callback to avoid creating too many closures.
The id of the inserted callback (actually an UUID).
Adds a listener to an event type.
When an event of the type pType fires, the callback pListener will be called. This function
returns a unique string id that may be used in removeEventListenerById to allow simple
listener removal.
The id of the inserted callback (actually an UUID).
Asynchronously gets the information about the children of the specified part instance ids.
Returns a promise.
If pFilteringContext is modified during the execution, then the call is cancelled (see cancel).
Please note that in case of multiple promises running at the same time on the same ChildrenIdCardGetterInterface, the first promises will be signalled as cancelled, the last as ok, but all calls to getPartInstanceInfos after awaiting will return the same value.
A promise. The promise is resolved with the reason (success, cancelled, disposed, bad input). In case of success, the promise is resolved with an Array
part instance ids to fetch metadata from.Asynchronously gets the information about the children of the specified part instance id.
Returns a promise.
Please note that in case of multiple promises running at the same time on the same ChildrenIdCardGetterInterface, the first promises will be signalled as cancelled, the last as ok, but all calls to getPartInstanceInfos after awaiting will return the same value.
If pFilteringContext is modified during the execution, then the call is cancelled (see cancel).
A promise. The promise is resolved with the reason (success, cancelled, disposed, bad input). In case of success, the promise is resolved with an Array
part instance id to fetch metadata from.Cancels the computation of the metadata retrieving process (if any).
A ChildrenIdCardCancelled signal is emitted if the ChildrenIdCardGetterInterface is retrieving data.
true if the DocumentIdConverterInterface was running, else false.
Gets rid of this object.
After this call, this object can no longer be used.
If the object is an InfiniteObjectDispatcherInterface, then the ObjectDisposed signal is emitted.
Further uses of the object (with the exception of isDisposed and getInfiniteObjectType) will log a message with LL_UsingDisposedObject.
Tells the type of the given interface.
The type of the given interface.
Each call to retrieveChildrenIdCard is assigned a request id.
This call tels the id of the last call to retrieveChildrenIdCard.
The id of the last call to retrieveChildrenIdCard.
Gets the result of the metadata request.
The metadata content is returned if the ChildrenIdCardGetterInterface has finished computing. Use addEventListener on the event ChildrenIdCardReady to know when the ChildrenIdCardGetterInterface is ready.
DO NOT modify this data in place, this results in undefined behavior.
part instance ids and their genealogy (the size of the array is the number of
part instance ids requested (see [retrieveChildrenIdCard](ChildrenIdCardGetterInterface.html#retrieveChildrenIdCard))), or
undefined if the ChildrenIdCardGetterInterface is computing or if the ChildrenIdCardGetterInterface is in error or cancelled.
Tells if the EventDispatcher has such a callback registered for the given event type.
true if such a listener is installed for the given type of event.
Tells if the ChildrenIdCardGetterInterface has been cancelled.
This is generally the case after calling cancel when the ChildrenIdCardGetterInterface is retrieving data.
true if the ChildrenIdCardGetterInterface is cancelled.
Tells if this object has been gotten rid off.
true if dispose has been called on this object.
Tells if the ChildrenIdCardGetterInterface is updating.
This is the case after calling retrieveChildrenIdCard.
true if the ChildrenIdCardGetterInterface is updating.
Removes a listener from an event type.
If no such listener is found, then the function returns false and does nothing. You must use the exact parameters that were used in addEventListener to actually remove the listener.
true if the callback was removed else false.
The listener function that gets removed.
The listener object that was used when addEventListener was called.
Removes a listener from an event type.
If no such listener is found, then the function returns false and does nothing. You must use the exact parameters that were used in addEventListener to actually remove the listener.
true if the callback was removed else false.
The listener function that gets removed.
Removes a listener by its id.
If no such listener is found, then the function returns false and does nothing. You must use the return value of addEventListener to actually remove the listener.
true if the callback was removed else false.
Gets the information about the children of the specified part instance ids.
The ChildrenIdCardReady signal is fired when the
part instance ids metadata result is ready.
Returns true if the metadata procedure retrieval is started. If not, just call getLastError to get the reason why the procedure failed. For instance, pPartInstanceIds is considered as invalid input if it is empty or at least one element is out of range [1 : 2^31-1].
If pFilteringContext is modified during the execution, then the call is cancelled (see cancel).
true if the retrieval procedure has begun.
part instance ids to fetch metadata from.Gets the information about the children of the specified part instance id.
The event ChildrenIdCardReady is fired when the
part instance id metadata result is ready.
Returns true if the metadata procedure retrieval is started. If not, just call getLastError to
get the reason why the procedure failed. For instance, pPartInstanceIds is considered as invalid input if it is empty
or at least one element is out of range [1 - 2^31-1].
If pFilteringContext is modified during the execution, then the call is cancelled (see cancel).
true if the retrieval procedure has begun.
part instance id to fetch metadata from.
The ChildrenIdCardGetterInterface interface is used to retrieve information about the children of a
part instance(and not ageometric instance id), such as the metadata of the childrenparts, link, the list of children attached document, ....The
metadata documentsand general information about the children can be retrieved by knowing thepart instance idof the parent to retrieve. Such documents are usually requested after an idcard request.The ChildrenIdCardGetterInterface interfaces are created through the createChildrenIdCardGetter method.
The list of signals the ChildrenIdCardGetterInterface may trigger is available in the [ChildrenIdCardGetterInterfaceSignal](../enums/ChildrenIdCardGetterInterfaceSignal.html) enumeration.
The metadata retrieval procedure is triggered through the retrieveChildrenIdCard methods. The result is not available right away, but the event ChildrenIdCardReady is triggered when the result of the ChildrenIdCardGetterInterface is available. The result is available through the [getPartInstanceInfos]] function.
Warning : there may be cases when the getPartInstanceInfos is not available such as when the ChildrenIdCardGetterInterface is updating, i.e. when isRunning returns true, or when the ChildrenIdCardGetterInterface has been cancelled, i.e. when isCancelled returns true.
An ChildrenIdCardGetterInterface may be interrupted (cancelled) when the ChildrenIdCardGetterInterface is updating and cancel is called. In such cases, the ChildrenIdCardCancelled signal is fired, and shortly after, ChildrenIdCardReady signal is fired, but getPartInstanceInfos will return undefined. Just call retrieveChildrenIdCard with another (or the same)
part instance idsto trigger a new retrieval.If you call multiple times retrieveChildrenIdCard before receiving the ChildrenIdCardReady, only one ChildrenIdCardReady will be sent with the content of the last call to retrieveChildrenIdCard.
The developer may process the results of an id card retrieval with the following code :
or asynchronously :
Please make sure the destination browser supports promises before using async calls.
See