Class JWTExportHandler

java.lang.Object
com.levigo.jadice.web.demo.enterprise.client.dnd.JWTExportHandler
All Implemented Interfaces:
ExportHandler

public class JWTExportHandler extends Object implements 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 Details

    • TYPE

      public static final String TYPE
  • Constructor Details

    • JWTExportHandler

      public JWTExportHandler()
  • Method Details

    • canExport

      public boolean canExport(DnDParameter parameter)
      Description copied from interface: ExportHandler
      This method is called when a DragStartEvent is fired to decide which handler can export this drop.
      Specified by:
      canExport in interface ExportHandler
      Parameters:
      parameter - The parameter containing the event.
      Returns:
      True if the handler can export the drop, false otherwise.
    • export

      public void export(DnDParameter parameter)
      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 interface ExportHandler
      Parameters:
      parameter - The parameter containing the event.
    • exportDone

      public void exportDone(DnDParameter parameter)
      Description copied from interface: ExportHandler
      This method is called when all exportHandler finished their exports.
      Specified by:
      exportDone in interface ExportHandler
      Parameters:
      parameter - The parameter containing the event.