@Override @AvailableWhenTenantIsPaused(only = true) public String installBusinessDataModel(final byte[] zip) throws InvalidBusinessDataModelException, BusinessDataRepositoryDeploymentException { final TenantServiceAccessor tenantAccessor = getTenantAccessor(); final long userId; try { userId = getUserId(); } catch (IllegalStateException e) { throw new BusinessDataRepositoryDeploymentException("Unable to determine user ID"); } try { final BusinessDataModelRepository bdmRepository = tenantAccessor.getBusinessDataModelRepository(); return bdmRepository.install(zip, tenantAccessor.getTenantId(), userId); } catch (final IllegalStateException e) { throw new InvalidBusinessDataModelException(e); } catch (final SBusinessDataRepositoryDeploymentException e) { throw new BusinessDataRepositoryDeploymentException(e); } }
@Override @AvailableWhenTenantIsPaused(only = true) public String installBusinessDataModel(final byte[] zip) throws InvalidBusinessDataModelException, BusinessDataRepositoryDeploymentException { final TenantServiceAccessor tenantAccessor = getTenantAccessor(); final long userId; try { userId = getUserId(); } catch (IllegalStateException e) { throw new BusinessDataRepositoryDeploymentException("Unable to determine user ID"); } try { final BusinessDataModelRepository bdmRepository = tenantAccessor.getBusinessDataModelRepository(); return bdmRepository.install(zip, tenantAccessor.getTenantId(), userId); } catch (final IllegalStateException e) { throw new InvalidBusinessDataModelException(e); } catch (final SBusinessDataRepositoryDeploymentException e) { throw new BusinessDataRepositoryDeploymentException(e); } }