Class PlatformAPIAccessor

java.lang.Object
org.bonitasoft.engine.api.PlatformAPIAccessor

public class PlatformAPIAccessor extends Object
Accessor class that retrieve Platform APIs

All APIs given by this class are relevant to the platform only.

  • PlatformAPI
  • PlatformCommandAPI
  • PlatformLoginAPI
  • Constructor Details

    • PlatformAPIAccessor

      public PlatformAPIAccessor()
  • Method Details

    • refresh

      public static void refresh()
      Reload the configuration of the Bonita home from the file system It allows to change in runtime the Bonita engine your client application uses
    • getPlatformLoginAPI

      public static org.bonitasoft.engine.api.PlatformLoginAPI getPlatformLoginAPI() throws org.bonitasoft.engine.exception.BonitaHomeNotSetException, org.bonitasoft.engine.exception.ServerAPIException, UnknownAPITypeException
      Returns:
      the PlatformLoginAPI
      Throws:
      org.bonitasoft.engine.exception.BonitaHomeNotSetException
      org.bonitasoft.engine.exception.ServerAPIException
      UnknownAPITypeException
    • getPlatformAPI

      public static org.bonitasoft.engine.api.PlatformAPI getPlatformAPI(org.bonitasoft.engine.session.PlatformSession session) throws org.bonitasoft.engine.exception.BonitaHomeNotSetException, org.bonitasoft.engine.exception.ServerAPIException, UnknownAPITypeException
      Parameters:
      session - a PlatformSession created using the PlatformLoginAPI
      Returns:
      the PlatformAPI
      Throws:
      org.bonitasoft.engine.session.InvalidSessionException
      org.bonitasoft.engine.exception.BonitaHomeNotSetException
      org.bonitasoft.engine.exception.ServerAPIException
      UnknownAPITypeException
    • getPlatformCommandAPI

      public static org.bonitasoft.engine.api.PlatformCommandAPI getPlatformCommandAPI(org.bonitasoft.engine.session.PlatformSession session) throws org.bonitasoft.engine.exception.BonitaHomeNotSetException, org.bonitasoft.engine.exception.ServerAPIException, UnknownAPITypeException
      Parameters:
      session - a PlatformSession created using the PlatformLoginAPI
      Returns:
      the PlatformCommandAPI
      Throws:
      org.bonitasoft.engine.exception.BonitaHomeNotSetException
      org.bonitasoft.engine.exception.ServerAPIException
      UnknownAPITypeException
      org.bonitasoft.engine.session.InvalidSessionException
    • getTemporaryContentAPI

      public static org.bonitasoft.engine.api.TemporaryContentAPI getTemporaryContentAPI() throws org.bonitasoft.engine.exception.BonitaHomeNotSetException, org.bonitasoft.engine.exception.ServerAPIException, UnknownAPITypeException
      Throws:
      org.bonitasoft.engine.exception.BonitaHomeNotSetException
      org.bonitasoft.engine.exception.ServerAPIException
      UnknownAPITypeException