Interface IPortalSessionCallback

All Known Implementing Classes:
ProcessEnabledCallback

public interface IPortalSessionCallback
A callback which can be used to call methods on an IPortalSession chosen by another IPortalSession.

The main use-case for callbacks is interacting with an IPortalSession which may be wrapped by another IPortalSession implementation. It is up to each IPortalSession implementation to decide which IPortalSession is passed as parameter: the wrapped IPortalSession or the wrapper IPortalSession.

Since:
9.9
Author:
Petru Galanton
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Execute the logic of this callback.
  • Method Details

    • execute

      void execute(IPortalSession session)
      Execute the logic of this callback. This logic typically involves calling methods on the IPortalSession given as parameter.
      Parameters:
      session - the session involved in the callback's logic
      Throws:
      PortalException - if an error occurs while executing the callback