Package org.exist.config

Examples of org.exist.config.Configuration


   
    private void loadRemovedAccountsFromRealmStorage(final DBBroker broker) throws ConfigurationException, PermissionDeniedException, LockException {
        //load marked for remove accounts information
        if (collectionRemovedAccounts != null && collectionRemovedAccounts.getDocumentCount(broker) > 0) {
            for(final Iterator<DocumentImpl> i = collectionRemovedAccounts.iterator(broker); i.hasNext(); ) {
                final Configuration conf = Configurator.parse(i.next());
               
                final Integer id = conf.getPropertyInteger("id");
                if (id != null && !getSecurityManager().hasUser(id)) {
                   
                    //A account = instantiateAccount(this, conf, true);
              final AccountImpl account = new AccountImpl( this, conf );
              account.removed = true;
View Full Code Here


   */
  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    InputStream is = new ByteArrayInputStream(config.getBytes(StandardCharsets.UTF_8));
   
    Configuration config = Configurator.parse(is);

    realm = new ActiveDirectoryRealm(null, config);
  }
View Full Code Here

            DBBroker broker = null;
            try {
                broker = database.get(null);

                final Configuration _config_ = Configurator.parse(this, broker, collection, XmldbURI.create(name + ".xml"));
                configuration = Configurator.configure(this, _config_);
            } catch (final EXistException e) {
                throw new ConfigurationException(e);
            } finally {
                database.release(broker);
View Full Code Here

            throws ConfigurationException {
        this.realm = realm;
        this.id = id;
        this.name = name;
        try {
            final Configuration _config_ = Configurator.parse(this, broker, collection, XmldbURI.create(name+".xml"));
            configuration = Configurator.configure(this, _config_);
        } catch (final EXistException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    }

    public final void setCollection(DBBroker broker, Collection collection) throws ConfigurationException {
        if (collection != null) {
            Configurator.unregister(configuration);
            final Configuration _config_ = Configurator.parse(this, broker, collection, XmldbURI.create(name + ".xml"));
            configuration = Configurator.configure(this, _config_);
        }
    }
View Full Code Here

    }

    public final void setCollection(DBBroker broker, Collection collection, XmldbURI uri) throws ConfigurationException {
        if (collection != null) {
            Configurator.unregister(configuration);
            final Configuration _config_ = Configurator.parse(this, broker, collection, uri);
            configuration = Configurator.configure(this, _config_);
        }
    }
View Full Code Here

                  if (!instructions.empty())
                    {instructions.peek().setValue(newInstance);}
                 
                  } else if ("callMethod".equals(localName)) {
                   
                    Configuration _conf_ = conf;
                    if (!instructions.empty())
                      {_conf_ = instructions.peek().getConfiguration();}

                    final CallMathod call = new CallMathod(objs.peek(), _conf_);
                   
View Full Code Here

TOP

Related Classes of org.exist.config.Configuration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.