Class JWTExportHandler
java.lang.Object
com.levigo.jadice.web.demo.enterprise.client.dnd.JWTExportHandler
- All Implemented Interfaces:
ExportHandler
This exportHandler generates data that can be used by another jwt enterprise instance in another
browser tab. The data is generated on the server and accessed with a uuid. The uuid is set into
the datastore of the event.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canExport
(DnDParameter parameter) This method is called when aDragStartEvent
is fired to decide which handler can export this drop.void
export
(DnDParameter parameter) This method is responsible for generating the data that should be transported with the event and putting them into it.void
exportDone
(DnDParameter parameter) This method is called when all exportHandler finished their exports.
-
Field Details
-
TYPE
-
-
Constructor Details
-
JWTExportHandler
public JWTExportHandler()
-
-
Method Details
-
canExport
Description copied from interface:ExportHandler
This method is called when aDragStartEvent
is fired to decide which handler can export this drop.- Specified by:
canExport
in interfaceExportHandler
- Parameters:
parameter
- The parameter containing the event.- Returns:
- True if the handler can export the drop, false otherwise.
-
export
Description copied from interface:ExportHandler
This method is responsible for generating the data that should be transported with the event and putting them into it. The data has to be set into the datastore of the event straight forward in this call. While this event is active is the only time we have write access to the datastore. If generating the data takes to long it may be better to store some kind of reference to the data in the event. That is also the reason why all registered export handler have to generate and write their data into the datastore at the beginning of the dragEvent.- Specified by:
export
in interfaceExportHandler
- Parameters:
parameter
- The parameter containing the event.
-
exportDone
Description copied from interface:ExportHandler
This method is called when all exportHandler finished their exports.- Specified by:
exportDone
in interfaceExportHandler
- Parameters:
parameter
- The parameter containing the event.
-