Class PlatformServiceImpl
java.lang.Object
org.bonitasoft.engine.platform.impl.PlatformServiceImpl
- All Implemented Interfaces:
PlatformService
- Author:
- Charles Souillard, Celine Souchet
-
Field Summary
Fields inherited from interface org.bonitasoft.engine.platform.PlatformService
PLATFORM -
Constructor Summary
ConstructorsConstructorDescriptionPlatformServiceImpl(PersistenceService platformPersistenceService, PlatformRetriever platformRetriever, Recorder recorder, SPlatformProperties sPlatformProperties) -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the platform from the cache No need to be in a transactionReturn the platform propertiesbooleanReturn true if the platform is created, else return false.voidupdate status of tenant object to PAUSEDvoidSet status of the tenant into activatedvoidupdatePlatform(EntityUpdateDescriptor descriptor)
-
Constructor Details
-
PlatformServiceImpl
public PlatformServiceImpl(PersistenceService platformPersistenceService, PlatformRetriever platformRetriever, Recorder recorder, SPlatformProperties sPlatformProperties)
-
-
Method Details
-
getPlatform
Description copied from interface:PlatformServiceRetrieve the platform from the cache No need to be in a transaction- Specified by:
getPlatformin interfacePlatformService- Returns:
- sPlatform
- Throws:
SPlatformNotFoundException- occurs when the identifier does not refer to an existing sPlatform
-
isPlatformCreated
public boolean isPlatformCreated()Description copied from interface:PlatformServiceReturn true if the platform is created, else return false.- Specified by:
isPlatformCreatedin interfacePlatformService- Returns:
- true or false
-
resumeServices
Description copied from interface:PlatformServiceSet status of the tenant into activated- Specified by:
resumeServicesin interfacePlatformService- Throws:
SPlatformNotFoundExceptionSPlatformUpdateException
-
pauseServices
Description copied from interface:PlatformServiceupdate status of tenant object to PAUSED- Specified by:
pauseServicesin interfacePlatformService- Throws:
SPlatformNotFoundExceptionSPlatformUpdateException
-
getSPlatformProperties
Description copied from interface:PlatformServiceReturn the platform properties- Specified by:
getSPlatformPropertiesin interfacePlatformService- Returns:
- The platform properties
-
updatePlatform
- Specified by:
updatePlatformin interfacePlatformService- Throws:
SPlatformUpdateException
-