public LDAPUserGroupCallbackImpl() { String propertiesLocation = System.getProperty("jbpm.usergroup.callback.properties"); if (propertiesLocation == null) { propertiesLocation = DEFAULT_PROPERTIES_NAME; } logger.debug("Callback properties will be loaded from " + propertiesLocation); InputStream in = this.getClass().getResourceAsStream(propertiesLocation); if (in != null) { config = new Properties(); try { config.load(in); } catch (IOException e) { e.printStackTrace(); config = null; } } UserGroupCallbackManager.getInstance().setProperty("disable.all.groups", "true"); validate(); }
public LDAPUserGroupCallbackImpl(Properties config) { this.config = config; UserGroupCallbackManager.getInstance().setProperty("disable.all.groups", "true"); validate(); }