BonitaHomeServer getBonitaHomeServer() { return BonitaHomeServer.getInstance(); }
BonitaHomeServer getBonitaHomeServer() { return BonitaHomeServer.getInstance(); }
BonitaHomeServer getBonitaHomeServer() { return BonitaHomeServer.getInstance(); }
BonitaHomeServer getBonitaHomeServer() { return BonitaHomeServer.getInstance(); }
BonitaHomeServer getBonitaHomeServerInstance() { return BonitaHomeServer.getInstance(); }
BonitaHomeServer getBonitaHomeServerInstance() { return BonitaHomeServer.getInstance(); }
protected URI getLocalTemporaryFolder(String type, long id) throws BonitaHomeNotSetException, IOException { return BonitaHomeServer.getInstance().getLocalTemporaryFolder(type, id); }
protected URI getLocalTemporaryFolder(String type, long id) throws BonitaHomeNotSetException, IOException { return BonitaHomeServer.getInstance().getLocalTemporaryFolder(type, id); }
private Class<?> loadClassFromPropertyName(String propertyName) throws IOException, BonitaHomeConfigurationException, ClassNotFoundException { final String sessionAccessorStr = BonitaHomeServer.getInstance().getPlatformProperties().getProperty(propertyName); if (sessionAccessorStr == null) { throw new BonitaHomeConfigurationException(propertyName + " not set in bonita-platform-private-community.properties"); } return Class.forName(sessionAccessorStr); }
private Class<?> loadClassFromPropertyName(String propertyName) throws IOException, BonitaHomeConfigurationException, ClassNotFoundException { final String sessionAccessorStr = BonitaHomeServer.getInstance().getPlatformProperties().getProperty(propertyName); if (sessionAccessorStr == null) { throw new BonitaHomeConfigurationException(propertyName + " not set in bonita-platform-private-community.properties"); } return Class.forName(sessionAccessorStr); }
static File getFileContainingMD5(long tenantId) throws BonitaHomeNotSetException, IOException { return BonitaHomeServer.getInstance().getTenantStorage().getProfileMD5(tenantId); }
static File getFileContainingMD5(long tenantId) throws BonitaHomeNotSetException, IOException { return BonitaHomeServer.getInstance().getTenantStorage().getProfileMD5(tenantId); }
@Override public void checkUserCredentials(final String userName, final String password) throws SInvalidUserException, SInvalidPasswordException { try { final Properties properties = BonitaHomeServer.getInstance().getPlatformProperties(); final String userProperty = properties.getProperty("platformAdminUsername"); if (userProperty == null || !userProperty.equals(userName)) { throw new SInvalidUserException("Invalid user: " + userName); } final String passProperty = properties.getProperty("platformAdminPassword"); if (passProperty == null || !passProperty.equals(password)) { throw new SInvalidPasswordException("Invalid password"); } } catch (final IOException ioe) { throw new SInvalidUserException(ioe); } } }
@Override public void checkUserCredentials(final String userName, final String password) throws SInvalidUserException, SInvalidPasswordException { try { final Properties properties = BonitaHomeServer.getInstance().getPlatformProperties(); final String userProperty = properties.getProperty("platformAdminUsername"); if (userProperty == null || !userProperty.equals(userName)) { throw new SInvalidUserException("Invalid user: " + userName); } final String passProperty = properties.getProperty("platformAdminPassword"); if (passProperty == null || !passProperty.equals(password)) { throw new SInvalidPasswordException("Invalid password"); } } catch (final IOException ioe) { throw new SInvalidUserException(ioe); } } }
public void refreshGlobalClassLoader(Stream<BonitaResource> resources) throws SClassLoaderException { logger.log(this.getClass(), TechnicalLogSeverity.INFO, "Refreshing global classloader"); final VirtualClassLoader virtualClassloader = (VirtualClassLoader) getGlobalClassLoader(); try { refreshClassLoader(virtualClassloader, resources, getGlobalClassLoaderType(), getGlobalClassLoaderId(), BonitaHomeServer.getInstance().getGlobalTemporaryFolder(), ClassLoaderServiceImpl.class.getClassLoader()); } catch (Exception e) { throw new SClassLoaderException(e); } }
public void refreshGlobalClassLoader(Stream<BonitaResource> resources) throws SClassLoaderException { logger.log(this.getClass(), TechnicalLogSeverity.INFO, "Refreshing global classloader"); final VirtualClassLoader virtualClassloader = (VirtualClassLoader) getGlobalClassLoader(); try { refreshClassLoader(virtualClassloader, resources, getGlobalClassLoaderType(), getGlobalClassLoaderId(), BonitaHomeServer.getInstance().getGlobalTemporaryFolder(), ClassLoaderServiceImpl.class.getClassLoader()); } catch (Exception e) { throw new SClassLoaderException(e); } }
public static long createTenant(final TransactionService transactionService, final PlatformService platformService, final String tenantName, final String createdBy, final String status) throws Exception { try { transactionService.begin(); final long created = System.currentTimeMillis(); final STenantBuilder tenantBuilder = BuilderFactory.get(STenantBuilderFactory.class).createNewInstance(tenantName, createdBy, created, status, false); final STenant tenant = tenantBuilder.done(); platformService.createTenant(tenant); BonitaHomeServer.getInstance().createTenant(tenant.getId()); platformService.activateTenant(tenant.getId()); return tenant.getId(); } finally { transactionService.complete(); } }
public static long createDefaultTenant(final TransactionService transactionService, final PlatformService platformService, final String tenantName, final String createdBy, final String status) throws Exception { try { transactionService.begin(); final long created = System.currentTimeMillis(); final STenantBuilder tenantBuilder = BuilderFactory.get(STenantBuilderFactory.class) .createNewInstance(tenantName, createdBy, created, status, true); final STenant tenant = tenantBuilder.done(); platformService.createTenant(tenant); BonitaHomeServer.getInstance().createTenant(tenant.getId()); platformService.activateTenant(tenant.getId()); return tenant.getId(); } finally { transactionService.complete(); } } }