Ejemplo n.º 1
0
  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();
  }
Ejemplo n.º 2
0
 public LDAPUserGroupCallbackImpl(Properties config) {
   this.config = config;
   UserGroupCallbackManager.getInstance().setProperty("disable.all.groups", "true");
   validate();
 }