Package org.bonitasoft.engine.api.impl
Class PlatformAPIImpl
- java.lang.Object
-
- org.bonitasoft.engine.api.impl.PlatformAPIImpl
-
- All Implemented Interfaces:
org.bonitasoft.engine.api.PlatformAPI
public class PlatformAPIImpl extends java.lang.Object implements org.bonitasoft.engine.api.PlatformAPI
- Author:
- Matthieu Chaffotte, Elias Ricken de Medeiros, Lu Kai, Zhang Bole, Yanyan Liu, Emmanuel Duchastenier, Celine Souchet
-
-
Constructor Summary
Constructors Constructor Description PlatformAPIImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
createPlatform
public void createPlatform() throws org.bonitasoft.engine.exception.CreationException
- Specified by:
createPlatform
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Throws:
org.bonitasoft.engine.exception.CreationException
-
initializePlatform
public void initializePlatform() throws org.bonitasoft.engine.exception.CreationException
- Specified by:
initializePlatform
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Throws:
org.bonitasoft.engine.exception.CreationException
-
createAndInitializePlatform
public void createAndInitializePlatform() throws org.bonitasoft.engine.exception.CreationException
- Specified by:
createAndInitializePlatform
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Throws:
org.bonitasoft.engine.exception.CreationException
-
getPlatformAccessor
protected 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
- Throws:
org.bonitasoft.engine.exception.BonitaHomeNotSetException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.io.IOException
org.bonitasoft.engine.exception.BonitaHomeConfigurationException
-
startNode
public void startNode() throws org.bonitasoft.engine.platform.StartNodeException
- Specified by:
startNode
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Throws:
org.bonitasoft.engine.platform.StartNodeException
-
stopNode
public void stopNode() throws org.bonitasoft.engine.platform.StopNodeException
- Specified by:
stopNode
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Throws:
org.bonitasoft.engine.platform.StopNodeException
-
cleanPlatform
public void cleanPlatform() throws org.bonitasoft.engine.exception.DeletionException
- Specified by:
cleanPlatform
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Throws:
org.bonitasoft.engine.exception.DeletionException
-
deletePlatform
public void deletePlatform() throws org.bonitasoft.engine.exception.DeletionException
- Specified by:
deletePlatform
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Throws:
org.bonitasoft.engine.exception.DeletionException
-
cleanAndDeletePlaftorm
@Deprecated public void cleanAndDeletePlaftorm() throws org.bonitasoft.engine.exception.DeletionException
Deprecated.- Specified by:
cleanAndDeletePlaftorm
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Throws:
org.bonitasoft.engine.exception.DeletionException
-
cleanAndDeletePlatform
public void cleanAndDeletePlatform() throws org.bonitasoft.engine.exception.DeletionException
- Specified by:
cleanAndDeletePlatform
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Throws:
org.bonitasoft.engine.exception.DeletionException
-
getPlatform
public org.bonitasoft.engine.platform.Platform getPlatform() throws org.bonitasoft.engine.platform.PlatformNotFoundException
- Specified by:
getPlatform
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Throws:
org.bonitasoft.engine.platform.PlatformNotFoundException
-
cleanSessionAccessor
protected void cleanSessionAccessor(SessionAccessor sessionAccessor, long platformSessionId)
-
deleteTenant
protected void deleteTenant(long tenantId) throws org.bonitasoft.engine.exception.DeletionException
- Throws:
org.bonitasoft.engine.exception.DeletionException
-
createSession
protected java.lang.Long createSession(long tenantId, SessionService sessionService) throws SBonitaException
- Throws:
SBonitaException
-
isPlatformInitialized
public boolean isPlatformInitialized() throws org.bonitasoft.engine.platform.PlatformNotFoundException
- Specified by:
isPlatformInitialized
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Throws:
org.bonitasoft.engine.platform.PlatformNotFoundException
-
isPlatformCreated
public boolean isPlatformCreated() throws org.bonitasoft.engine.platform.PlatformNotFoundException
- Specified by:
isPlatformCreated
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Throws:
org.bonitasoft.engine.platform.PlatformNotFoundException
-
getPlatformState
public org.bonitasoft.engine.platform.PlatformState getPlatformState()
- Specified by:
getPlatformState
in interfaceorg.bonitasoft.engine.api.PlatformAPI
-
isNodeStarted
public boolean isNodeStarted()
- Specified by:
isNodeStarted
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Returns:
- true if the current node is started, false otherwise
-
rescheduleErroneousTriggers
public void rescheduleErroneousTriggers() throws org.bonitasoft.engine.exception.UpdateException
- Specified by:
rescheduleErroneousTriggers
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Throws:
org.bonitasoft.engine.exception.UpdateException
-
getClientPlatformConfigurations
public java.util.Map<java.lang.String,byte[]> getClientPlatformConfigurations()
- Specified by:
getClientPlatformConfigurations
in interfaceorg.bonitasoft.engine.api.PlatformAPI
-
getClientTenantConfigurations
public java.util.Map<java.lang.Long,java.util.Map<java.lang.String,byte[]>> getClientTenantConfigurations()
- Specified by:
getClientTenantConfigurations
in interfaceorg.bonitasoft.engine.api.PlatformAPI
-
getClientTenantConfiguration
public byte[] getClientTenantConfiguration(long tenantId, java.lang.String file)
- Specified by:
getClientTenantConfiguration
in interfaceorg.bonitasoft.engine.api.PlatformAPI
-
getBonitaHomeServer
protected BonitaHomeServer getBonitaHomeServer()
-
updateClientTenantConfigurationFile
public void updateClientTenantConfigurationFile(long tenantId, java.lang.String file, byte[] content) throws org.bonitasoft.engine.exception.UpdateException
- Specified by:
updateClientTenantConfigurationFile
in interfaceorg.bonitasoft.engine.api.PlatformAPI
- Throws:
org.bonitasoft.engine.exception.UpdateException
-
-