@Override public Map<String, byte[]> getClientPlatformConfigurations() { return getBonitaHomeServerInstance().getClientPlatformConfigurations(); }
@Override public void updateClientTenantConfigurationFile(long tenantId, String file, byte[] content) throws UpdateException { getBonitaHomeServerInstance().updateTenantPortalConfigurationFile(tenantId, file, content); } }
@Override public void updateClientTenantConfigurationFile(long tenantId, String file, byte[] content) throws UpdateException { getBonitaHomeServerInstance().updateTenantPortalConfigurationFile(tenantId, file, content); } }
@Override public byte[] getClientTenantConfiguration(long tenantId, String file) { return getBonitaHomeServerInstance().getTenantPortalConfiguration(tenantId, file); }
@Override public Map<String, byte[]> getClientPlatformConfigurations() { return getBonitaHomeServerInstance().getClientPlatformConfigurations(); }
@Override public byte[] getClientTenantConfiguration(long tenantId, String file) { return getBonitaHomeServerInstance().getTenantPortalConfiguration(tenantId, file); }
private void createTenantFolderInBonitaHome(final long tenantId) { getBonitaHomeServerInstance().createTenant(tenantId); }
private void createTenantFolderInBonitaHome(final long tenantId) { getBonitaHomeServerInstance().createTenant(tenantId); }
@Override public Map<Long, Map<String, byte[]>> getClientTenantConfigurations() { try { PlatformService platformService = getPlatformAccessor().getPlatformService(); List<STenant> tenants = platformService.getTenants(QueryOptions.countQueryOptions()); HashMap<Long, Map<String, byte[]>> conf = new HashMap<>(); for (STenant tenant : tenants) { conf.put(tenant.getId(), getBonitaHomeServerInstance().getClientTenantConfigurations(tenant.getId())); } return conf; } catch (BonitaException | IOException | IllegalAccessException | ClassNotFoundException | InstantiationException | STenantException e) { throw new RetrieveException(e); } }
@Override public Map<Long, Map<String, byte[]>> getClientTenantConfigurations() { try { PlatformService platformService = getPlatformAccessor().getPlatformService(); List<STenant> tenants = platformService.getTenants(QueryOptions.countQueryOptions()); HashMap<Long, Map<String, byte[]>> conf = new HashMap<>(); for (STenant tenant : tenants) { conf.put(tenant.getId(), getBonitaHomeServerInstance().getClientTenantConfigurations(tenant.getId())); } return conf; } catch (BonitaException | IOException | IllegalAccessException | ClassNotFoundException | InstantiationException | STenantException e) { throw new RetrieveException(e); } }
getBonitaHomeServerInstance().deleteTenant(tenantId); } catch (final STenantNotFoundException e) { throw new STenantDeletionException(e);
getBonitaHomeServerInstance().deleteTenant(tenantId); } catch (final STenantNotFoundException e) { throw new STenantDeletionException(e);