Package org.bonitasoft.engine.api
Class PlatformAPIAccessor
java.lang.Object
org.bonitasoft.engine.api.PlatformAPIAccessor
Accessor class that retrieve Platform APIs
All APIs given by this class are relevant to the platform only.
PlatformAPIPlatformCommandAPIPlatformLoginAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bonitasoft.engine.api.PlatformAPIgetPlatformAPI(org.bonitasoft.engine.session.PlatformSession session) static org.bonitasoft.engine.api.PlatformCommandAPIgetPlatformCommandAPI(org.bonitasoft.engine.session.PlatformSession session) static org.bonitasoft.engine.api.PlatformLoginAPIstatic org.bonitasoft.engine.api.TemporaryContentAPIstatic voidrefresh()Reload the configuration of the Bonita home from the file system It allows to change in runtime the Bonita engine your client application uses
-
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.BonitaHomeNotSetExceptionorg.bonitasoft.engine.exception.ServerAPIExceptionUnknownAPITypeException
-
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- aPlatformSessioncreated using thePlatformLoginAPI- Returns:
- the
PlatformAPI - Throws:
org.bonitasoft.engine.session.InvalidSessionExceptionorg.bonitasoft.engine.exception.BonitaHomeNotSetExceptionorg.bonitasoft.engine.exception.ServerAPIExceptionUnknownAPITypeException
-
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- aPlatformSessioncreated using thePlatformLoginAPI- Returns:
- the
PlatformCommandAPI - Throws:
org.bonitasoft.engine.exception.BonitaHomeNotSetExceptionorg.bonitasoft.engine.exception.ServerAPIExceptionUnknownAPITypeExceptionorg.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.BonitaHomeNotSetExceptionorg.bonitasoft.engine.exception.ServerAPIExceptionUnknownAPITypeException
-