public class PlatformAPIImpl
extends java.lang.Object
implements org.bonitasoft.engine.api.PlatformAPI
| Constructor and Description |
|---|
PlatformAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanAndDeletePlaftorm()
Deprecated.
|
void |
cleanAndDeletePlatform() |
void |
cleanPlatform() |
protected void |
cleanSessionAccessor(SessionAccessor sessionAccessor,
long platformSessionId) |
void |
createAndInitializePlatform() |
void |
createPlatform() |
protected java.lang.Long |
createSession(long tenantId,
SessionService sessionService) |
void |
deletePlatform() |
protected void |
deleteTenant(long tenantId) |
protected BonitaHomeServer |
getBonitaHomeServer() |
java.util.Map<java.lang.String,byte[]> |
getClientPlatformConfigurations() |
byte[] |
getClientTenantConfiguration(long tenantId,
java.lang.String file) |
java.util.Map<java.lang.Long,java.util.Map<java.lang.String,byte[]>> |
getClientTenantConfigurations() |
org.bonitasoft.engine.platform.Platform |
getPlatform() |
protected PlatformServiceAccessor |
getPlatformAccessor() |
org.bonitasoft.engine.platform.PlatformState |
getPlatformState() |
void |
initializePlatform() |
boolean |
isNodeStarted() |
boolean |
isPlatformCreated() |
boolean |
isPlatformInitialized() |
void |
rescheduleErroneousTriggers() |
void |
startNode() |
void |
stopNode() |
void |
updateClientTenantConfigurationFile(long tenantId,
java.lang.String file,
byte[] content) |
public void createPlatform()
throws org.bonitasoft.engine.exception.CreationException
createPlatform in interface org.bonitasoft.engine.api.PlatformAPIorg.bonitasoft.engine.exception.CreationExceptionpublic void initializePlatform()
throws org.bonitasoft.engine.exception.CreationException
initializePlatform in interface org.bonitasoft.engine.api.PlatformAPIorg.bonitasoft.engine.exception.CreationExceptionpublic void createAndInitializePlatform()
throws org.bonitasoft.engine.exception.CreationException
createAndInitializePlatform in interface org.bonitasoft.engine.api.PlatformAPIorg.bonitasoft.engine.exception.CreationExceptionprotected PlatformServiceAccessor getPlatformAccessor() throws org.bonitasoft.engine.exception.BonitaHomeNotSetException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.io.IOException, org.bonitasoft.engine.exception.BonitaHomeConfigurationException
org.bonitasoft.engine.exception.BonitaHomeNotSetExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.ClassNotFoundExceptionjava.io.IOExceptionorg.bonitasoft.engine.exception.BonitaHomeConfigurationExceptionpublic void startNode()
throws org.bonitasoft.engine.platform.StartNodeException
startNode in interface org.bonitasoft.engine.api.PlatformAPIorg.bonitasoft.engine.platform.StartNodeExceptionpublic void stopNode()
throws org.bonitasoft.engine.platform.StopNodeException
stopNode in interface org.bonitasoft.engine.api.PlatformAPIorg.bonitasoft.engine.platform.StopNodeExceptionpublic void cleanPlatform()
throws org.bonitasoft.engine.exception.DeletionException
cleanPlatform in interface org.bonitasoft.engine.api.PlatformAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic void deletePlatform()
throws org.bonitasoft.engine.exception.DeletionException
deletePlatform in interface org.bonitasoft.engine.api.PlatformAPIorg.bonitasoft.engine.exception.DeletionException@Deprecated
public void cleanAndDeletePlaftorm()
throws org.bonitasoft.engine.exception.DeletionException
cleanAndDeletePlaftorm in interface org.bonitasoft.engine.api.PlatformAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic void cleanAndDeletePlatform()
throws org.bonitasoft.engine.exception.DeletionException
cleanAndDeletePlatform in interface org.bonitasoft.engine.api.PlatformAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic org.bonitasoft.engine.platform.Platform getPlatform()
throws org.bonitasoft.engine.platform.PlatformNotFoundException
getPlatform in interface org.bonitasoft.engine.api.PlatformAPIorg.bonitasoft.engine.platform.PlatformNotFoundExceptionprotected void cleanSessionAccessor(SessionAccessor sessionAccessor, long platformSessionId)
protected void deleteTenant(long tenantId)
throws org.bonitasoft.engine.exception.DeletionException
org.bonitasoft.engine.exception.DeletionExceptionprotected java.lang.Long createSession(long tenantId,
SessionService sessionService)
throws SBonitaException
SBonitaExceptionpublic boolean isPlatformInitialized()
throws org.bonitasoft.engine.platform.PlatformNotFoundException
isPlatformInitialized in interface org.bonitasoft.engine.api.PlatformAPIorg.bonitasoft.engine.platform.PlatformNotFoundExceptionpublic boolean isPlatformCreated()
throws org.bonitasoft.engine.platform.PlatformNotFoundException
isPlatformCreated in interface org.bonitasoft.engine.api.PlatformAPIorg.bonitasoft.engine.platform.PlatformNotFoundExceptionpublic org.bonitasoft.engine.platform.PlatformState getPlatformState()
getPlatformState in interface org.bonitasoft.engine.api.PlatformAPIpublic boolean isNodeStarted()
isNodeStarted in interface org.bonitasoft.engine.api.PlatformAPIpublic void rescheduleErroneousTriggers()
throws org.bonitasoft.engine.exception.UpdateException
rescheduleErroneousTriggers in interface org.bonitasoft.engine.api.PlatformAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic java.util.Map<java.lang.String,byte[]> getClientPlatformConfigurations()
getClientPlatformConfigurations in interface org.bonitasoft.engine.api.PlatformAPIpublic java.util.Map<java.lang.Long,java.util.Map<java.lang.String,byte[]>> getClientTenantConfigurations()
getClientTenantConfigurations in interface org.bonitasoft.engine.api.PlatformAPIpublic byte[] getClientTenantConfiguration(long tenantId,
java.lang.String file)
getClientTenantConfiguration in interface org.bonitasoft.engine.api.PlatformAPIprotected BonitaHomeServer getBonitaHomeServer()
public void updateClientTenantConfigurationFile(long tenantId,
java.lang.String file,
byte[] content)
throws org.bonitasoft.engine.exception.UpdateException
updateClientTenantConfigurationFile in interface org.bonitasoft.engine.api.PlatformAPIorg.bonitasoft.engine.exception.UpdateException