public class PlatformAPIImpl extends Object implements PlatformAPI
| Modifier and Type | Field and Description |
|---|---|
static String |
PROFILES_FILE |
| Constructor and Description |
|---|
PlatformAPIImpl() |
PlatformAPIImpl(PlatformAPIImplDelegate delegate) |
public static final String PROFILES_FILE
public PlatformAPIImpl()
public PlatformAPIImpl(PlatformAPIImplDelegate delegate)
protected PlatformAPIImplDelegate getDelegate()
public void createPlatform()
throws CreationException
createPlatform in interface PlatformAPICreationExceptionpublic void initializePlatform()
throws CreationException
initializePlatform in interface PlatformAPICreationExceptionpublic void createAndInitializePlatform()
throws CreationException
createAndInitializePlatform in interface PlatformAPICreationExceptionprotected PlatformServiceAccessor getPlatformAccessor() throws BonitaHomeNotSetException, InstantiationException, IllegalAccessException, ClassNotFoundException, IOException, BonitaHomeConfigurationException
public void startNode()
throws StartNodeException
startNode in interface PlatformAPIStartNodeExceptionprotected List<org.bonitasoft.engine.platform.model.STenant> getTenants(PlatformServiceAccessor platformAccessor) throws Exception
Exceptionprotected TenantServiceAccessor getTenantServiceAccessor(long tenantId) throws org.bonitasoft.engine.commons.exceptions.SBonitaException, BonitaHomeNotSetException, IOException, BonitaHomeConfigurationException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionBonitaHomeNotSetExceptionIOExceptionBonitaHomeConfigurationExceptionNoSuchMethodExceptionInstantiationExceptionIllegalAccessExceptionInvocationTargetExceptionpublic void stopNode()
throws StopNodeException
stopNode in interface PlatformAPIStopNodeExceptionpublic void cleanPlatform()
throws DeletionException
cleanPlatform in interface PlatformAPIDeletionExceptionpublic void deletePlatform()
throws DeletionException
deletePlatform in interface PlatformAPIDeletionException@Deprecated public void cleanAndDeletePlaftorm() throws DeletionException
cleanAndDeletePlaftorm in interface PlatformAPIDeletionExceptionpublic void cleanAndDeletePlatform()
throws DeletionException
cleanAndDeletePlatform in interface PlatformAPIDeletionExceptionpublic Platform getPlatform() throws PlatformNotFoundException
getPlatform in interface PlatformAPIPlatformNotFoundExceptionprotected void createDefaultProfiles(TenantServiceAccessor tenantServiceAccessor) throws Exception
Exceptionprotected void importProfiles(ProfileService profileService, IdentityService identityService, List<ExportedProfile> profilesFromXML, TenantServiceAccessor tenantServiceAccessor) throws ExecutionException
ExecutionExceptionprotected void cleanSessionAccessor(org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
long platformSessionId)
protected Long createSession(long tenantId, SessionService sessionService) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic boolean isPlatformCreated()
throws PlatformNotFoundException
isPlatformCreated in interface PlatformAPIPlatformNotFoundExceptionpublic PlatformState getPlatformState()
getPlatformState in interface PlatformAPIpublic boolean isNodeStarted()
isNodeStarted in interface PlatformAPIprotected String getProfileFileName()
public void rescheduleErroneousTriggers()
throws UpdateException
rescheduleErroneousTriggers in interface PlatformAPIUpdateExceptionCopyright © 2015 Bonitasoft S.A.. All rights reserved.