@Override @AvailableWhenTenantIsPaused public TenantResource getBusinessDataModelResource() { return getTenantResource(TenantResourceType.BDM); }
@Override @AvailableWhenTenantIsPaused public void pause() throws UpdateException { setTenantPaused(true); }
@Override @AvailableWhenTenantIsPaused public TenantResource getBusinessDataModelResource() { return getTenantResource(TenantResourceType.BDM); }
@Override @AvailableWhenTenantIsPaused public void pause() throws UpdateException { setTenantPaused(true); }
@Override @AvailableWhenTenantIsPaused public void resume() throws UpdateException { setTenantPaused(false); resolveDependenciesForAllProcesses(); }
@Override @AvailableWhenTenantIsPaused public void resume() throws UpdateException { setTenantPaused(false); resolveDependenciesForAllProcesses(); }
@Override @CustomTransactions @AvailableWhenTenantIsPaused public APISession login(final String userName, final String password) throws LoginException { try { return loginInternal(userName, password, null); } catch (final LoginException e) { throw e; } catch (final Exception e) { throw new LoginException(e); } }
@Override @CustomTransactions @AvailableWhenTenantIsPaused public APISession login(final String userName, final String password) throws LoginException { try { return loginInternal(userName, password, null); } catch (final LoginException e) { throw e; } catch (final Exception e) { throw new LoginException(e); } }
@CustomTransactions @AvailableWhenTenantIsPaused protected APISession login(final String userName, final String password, final Long tenantId) throws LoginException { try { return loginInternal(userName, password, tenantId); } catch (final LoginException e) { throw e; } catch (final Exception e) { throw new LoginException(e); } }
@CustomTransactions @AvailableWhenTenantIsPaused protected APISession login(final String userName, final String password, final Long tenantId) throws LoginException { try { return loginInternal(userName, password, tenantId); } catch (final LoginException e) { throw e; } catch (final Exception e) { throw new LoginException(e); } }
@Override @AvailableWhenTenantIsPaused public String getBusinessDataModelVersion() throws BusinessDataRepositoryException { try { final BusinessDataModelRepository modelRepository = getTenantAccessor().getBusinessDataModelRepository(); return modelRepository.getInstalledBDMVersion(); } catch (final SBusinessDataRepositoryException e) { throw new BusinessDataRepositoryException(e); } }
@Override @AvailableWhenTenantIsPaused public byte[] getClientBDMZip() throws BusinessDataRepositoryException { final BusinessDataModelRepository bdmRepository = getTenantAccessor().getBusinessDataModelRepository(); try { return bdmRepository.getClientBDMZip(); } catch (final SBusinessDataRepositoryException e) { throw new BusinessDataRepositoryException(e); } }
@Override @AvailableWhenTenantIsPaused public byte[] getClientBDMZip() throws BusinessDataRepositoryException { final BusinessDataModelRepository bdmRepository = getTenantAccessor().getBusinessDataModelRepository(); try { return bdmRepository.getClientBDMZip(); } catch (final SBusinessDataRepositoryException e) { throw new BusinessDataRepositoryException(e); } }
@Override @AvailableWhenTenantIsPaused public String getBusinessDataModelVersion() throws BusinessDataRepositoryException { try { final BusinessDataModelRepository modelRepository = getTenantAccessor().getBusinessDataModelRepository(); return modelRepository.getInstalledBDMVersion(); } catch (final SBusinessDataRepositoryException e) { throw new BusinessDataRepositoryException(e); } }
@Override @AvailableWhenTenantIsPaused(only = true) public void cleanAndUninstallBusinessDataModel() throws BusinessDataRepositoryDeploymentException { final TenantServiceAccessor tenantAccessor = getTenantAccessor(); try { final BusinessDataModelRepository bdmRepository = tenantAccessor.getBusinessDataModelRepository(); bdmRepository.dropAndUninstall(tenantAccessor.getTenantId()); } catch (final SBusinessDataRepositoryException sbdre) { throw new BusinessDataRepositoryDeploymentException(sbdre); } }
@Override @AvailableWhenTenantIsPaused(only = true) public void uninstallBusinessDataModel() throws BusinessDataRepositoryDeploymentException { final TenantServiceAccessor tenantAccessor = getTenantAccessor(); try { final BusinessDataModelRepository bdmRepository = tenantAccessor.getBusinessDataModelRepository(); bdmRepository.uninstall(tenantAccessor.getTenantId()); } catch (final SBusinessDataRepositoryException sbdre) { throw new BusinessDataRepositoryDeploymentException(sbdre); } }
@Override @AvailableWhenTenantIsPaused(only = true) public void uninstallBusinessDataModel() throws BusinessDataRepositoryDeploymentException { final TenantServiceAccessor tenantAccessor = getTenantAccessor(); try { final BusinessDataModelRepository bdmRepository = tenantAccessor.getBusinessDataModelRepository(); bdmRepository.uninstall(tenantAccessor.getTenantId()); } catch (final SBusinessDataRepositoryException sbdre) { throw new BusinessDataRepositoryDeploymentException(sbdre); } }
@Override @AvailableWhenTenantIsPaused(only = true) public void cleanAndUninstallBusinessDataModel() throws BusinessDataRepositoryDeploymentException { final TenantServiceAccessor tenantAccessor = getTenantAccessor(); try { final BusinessDataModelRepository bdmRepository = tenantAccessor.getBusinessDataModelRepository(); bdmRepository.dropAndUninstall(tenantAccessor.getTenantId()); } catch (final SBusinessDataRepositoryException sbdre) { throw new BusinessDataRepositoryDeploymentException(sbdre); } }
@Override @AvailableWhenTenantIsPaused public boolean isPaused() { final long tenantId = getTenantId(); try { return getPlatformAccessorNoException().getPlatformService().getTenant(tenantId).isPaused(); } catch (final SBonitaException e) { throw new RetrieveException("Unable to retrieve the tenant with id " + tenantId, e); } }
@Override @AvailableWhenTenantIsPaused public boolean isPaused() { final long tenantId = getTenantId(); try { return getPlatformAccessorNoException().getPlatformService().getTenant(tenantId).isPaused(); } catch (final SBonitaException e) { throw new RetrieveException("Unable to retrieve the tenant with id " + tenantId, e); } }