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).
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.
Gets the ConfContextInterface used to compute this filtering context.
The ConfContextInterface used to compute this filtering context.
Gets the order inside the list of FilterSolverInterface (getFilterSolvers) of this FilterSolverInterface.
The order of pFilterSolver, -1 if pFilterSolver is not inside.
Gets the list of FilterSolverInterface inside this filtering context.
DO not insert or remove any FilterSolverInterface directly in this array, this will make the VisibilityContextInterface ignore the changes inside and lead to undefined behavior.
DO NOT modify this data in place, this results in undefined behavior.
Tells the type of the given interface.
The type of the given interface.
Gets the last error returned by the update of the ConfContextInterface and the list of FilterSolverInterface inside.
Errors may be updated when the VisibilityContextInterface is updated upon :
There is no way to explicitly update a VisibilityContextInterface.
The last error message (if any, or an empty string if no error occurred).
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.
Inserts a FilterSolverInterface at the given position.
Any invalid position will result in the FilterSolverInterface being pushed at the end of the list of FilterSolverInterface.
For example : insertFilterSolver(-1,lSolver) actually push back a FilterSolverInterface.
Triggers the VisibilitySolverAdded and VisibilityChanged signals.
true if pFilterSolver is valid.
0 and [getFilterSolvers()](VisibilityContextInterface.html#getFilterSolvers).length-1 included, else pushed back).Tells if this object has been gotten rid off.
true if dispose has been called on this object.
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.
Removes a FilterSolverInterface at the given position.
If no filter is at the given position, returns false and does nothing.
Triggers the VisibilitySolverRemoved and VisibilityChanged signals.
true if the FilterSolverInterface was removed.
0 and [getFilterSolvers()](VisibilityContextInterface.html#getFilterSolvers).length-1 included).Sets the required ConfContextInterface used to compute this filtering context.
The part instances inside
the VisibilityContextInterface will be intersected by this ConfContextInterface.
A VisibilityContextInterface is considered valid if it contains a defined ConfContextInterface.
Triggers the VisibilityConfChanged signal.
true if pConfContext is valid.
Sets the identifier of the VisibilityContextInterface. Make sure the id is unique. A unique VisibilityContextInterface identifier is created if the identifier is not overridden.
The VisibilityContextInterface interface is used to restrict further filtering/data retrieving/conversion requests.
The VisibilityContextInterface can be seen as a filtering context.
The VisibilityContextInterface is basically a union of FilterSolverInterface, intersected with a required ConfContextInterface. The resulting
part instanceswill be the union of allpart instancesof the FilterSolverInterface inside this context, intersected with thepart instancesof the configuration expressed by the ConfContextInterface.Further filtering/data retrieving/conversion requests results will be intersected with these
part instances(see the functions that takes as arguments a VisibilityContextInterface : e.g. convert, setVisibilityContext, retrieveIdCard, etc).A VisibilityContextInterface is considered valid when its ConfContextInterface is not
undefined(see Filtering Context).This object cannot be used explicitly and is not updated on demand. It neither holds any data. The only way to know the pat instances of a VisibilityContextInterface is to iterate over its FilterSolverInterface, and make the intersection with the
part instancesof the ConfContextInterface.This object may be updated upon calls to :
The VisibilityContextInterface interfaces are created through the createVisibilityContext method.
Discard (with dispose) existing VisibilityContextInterface before loading a new DataSessionInterface.
The list of signals the VisibilityContextInterface may trigger is available in the VisibilityContextInterfaceSignal enumeration.
or asynchronously :
Please make sure the destination browser supports promises before using async calls.
See