public class BusinessDataModelRepositoryImpl extends Object implements BusinessDataModelRepository
| Constructor and Description |
|---|
BusinessDataModelRepositoryImpl(org.bonitasoft.engine.dependency.DependencyService dependencyService,
SchemaManager schemaManager,
long tenantId) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
createAndDeployServerBDMJar(long tenantId,
BusinessObjectModel model) |
protected org.bonitasoft.engine.dependency.model.SDependencyMapping |
createDependencyMapping(long tenantId,
org.bonitasoft.engine.dependency.model.SDependency sDependency) |
void |
dropAndUninstall(long tenantId) |
protected byte[] |
generateClientBDMZip(BusinessObjectModel model) |
protected byte[] |
generateServerBDMJar(BusinessObjectModel model) |
BusinessObjectModel |
getBusinessObjectModel() |
protected BusinessObjectModel |
getBusinessObjectModel(byte[] bdmZip) |
byte[] |
getClientBDMZip() |
String |
getInstalledBDMVersion() |
String |
install(byte[] bdmZip,
long tenantId) |
boolean |
isDBMDeployed() |
void |
uninstall(long tenantId) |
protected void |
update(Set<String> annotatedClassNames) |
public BusinessDataModelRepositoryImpl(org.bonitasoft.engine.dependency.DependencyService dependencyService,
SchemaManager schemaManager,
long tenantId)
public byte[] getClientBDMZip()
throws SBusinessDataRepositoryException
getClientBDMZip in interface BusinessDataModelRepositorySBusinessDataRepositoryExceptionpublic String getInstalledBDMVersion() throws SBusinessDataRepositoryException
getInstalledBDMVersion in interface BusinessDataModelRepositorySBusinessDataRepositoryExceptionpublic BusinessObjectModel getBusinessObjectModel() throws SBusinessDataRepositoryException
getBusinessObjectModel in interface BusinessDataModelRepositorySBusinessDataRepositoryExceptionpublic boolean isDBMDeployed()
isDBMDeployed in interface BusinessDataModelRepositorypublic String install(byte[] bdmZip, long tenantId) throws SBusinessDataRepositoryDeploymentException
install in interface BusinessDataModelRepositorySBusinessDataRepositoryDeploymentExceptionprotected long createAndDeployServerBDMJar(long tenantId,
BusinessObjectModel model)
throws SBusinessDataRepositoryDeploymentException
protected void update(Set<String> annotatedClassNames) throws SBusinessDataRepositoryDeploymentException
protected BusinessObjectModel getBusinessObjectModel(byte[] bdmZip) throws SBusinessDataRepositoryDeploymentException
protected byte[] generateServerBDMJar(BusinessObjectModel model) throws SBusinessDataRepositoryDeploymentException
protected byte[] generateClientBDMZip(BusinessObjectModel model) throws SBusinessDataRepositoryDeploymentException, IOException
protected org.bonitasoft.engine.dependency.model.SDependencyMapping createDependencyMapping(long tenantId,
org.bonitasoft.engine.dependency.model.SDependency sDependency)
public void uninstall(long tenantId)
throws SBusinessDataRepositoryException
uninstall in interface BusinessDataModelRepositorySBusinessDataRepositoryExceptionpublic void dropAndUninstall(long tenantId)
throws SBusinessDataRepositoryException
dropAndUninstall in interface BusinessDataModelRepositorySBusinessDataRepositoryExceptionCopyright © 2016 Bonitasoft S.A.. All rights reserved.