@Override protected Properties getProperties() throws IOException { Properties platformProperties = BONITA_HOME_SERVER.getPlatformProperties(); platformProperties.setProperty("bonita.conf.folder", bonita_conf.getAbsolutePath()); return platformProperties; }
@Override protected Properties getProperties() throws IOException { Properties platformProperties = BONITA_HOME_SERVER.getPlatformProperties(); platformProperties.setProperty("bonita.conf.folder", bonita_conf.getAbsolutePath()); return platformProperties; }
/** * get the name of the implementation of {@link org.bonitasoft.engine.api.internal.ServerAPI} based on the current configuration of * <code>bonita-platform.properties</code> * * @return the name of the class implementing {@link org.bonitasoft.engine.api.internal.ServerAPI} * @throws IllegalStateException if the name of the implementation cannot be retrieved */ public String getServerAPIImplementation() throws IllegalStateException { try { return getPlatformProperties().getProperty(SERVER_API_IMPLEMENTATION); } catch (IOException e) { throw new IllegalStateException(e); } }
/** * get the name of the implementation of {@link org.bonitasoft.engine.api.internal.ServerAPI} based on the current configuration of * <code>bonita-platform.properties</code> * * @return the name of the class implementing {@link org.bonitasoft.engine.api.internal.ServerAPI} * @throws IllegalStateException if the name of the implementation cannot be retrieved */ public String getServerAPIImplementation() throws IllegalStateException { try { return getPlatformProperties().getProperty(SERVER_API_IMPLEMENTATION); } catch (IOException e) { throw new IllegalStateException(e); } }
protected boolean isCluster() throws IOException { return Boolean.valueOf(getPropertyWithPlaceholder(BONITA_HOME_SERVER.getPlatformProperties(), "bonita.cluster", "false")); }
protected boolean isCluster() throws IOException { return Boolean.valueOf(getPropertyWithPlaceholder(BONITA_HOME_SERVER.getPlatformProperties(), "bonita.cluster", "false")); }
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); }
@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); } } }