org.drools.repository
Class RulesRepositoryAdministrator

java.lang.Object
  extended by org.drools.repository.RulesRepositoryAdministrator

public class RulesRepositoryAdministrator
extends Object

This class is for administering the rules repo. Any "sensitive" actions can happen in here.


Constructor Summary
RulesRepositoryAdministrator(javax.jcr.Session session)
          Pass in a session that is capable of doing admin-ey type stuff.
 
Method Summary
 void clearRulesRepository()
          Clears out the entire tree below the rules repository node of the JCR repository.
 boolean isRepositoryInitialized()
          This will tell you if the repository currently connected to is initialized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RulesRepositoryAdministrator

public RulesRepositoryAdministrator(javax.jcr.Session session)
Pass in a session that is capable of doing admin-ey type stuff.

Method Detail

isRepositoryInitialized

public boolean isRepositoryInitialized()
This will tell you if the repository currently connected to is initialized. This includes the basic data/folders, as well as the name space registered. The name space registration is JCR implementation dependent (jackrabbit is the default).


clearRulesRepository

public void clearRulesRepository()
Clears out the entire tree below the rules repository node of the JCR repository. IMPORTANT: after calling this, RepositoryConfigurator.setupRulesRepository() should be called to set up the minimal data for a "blank" setup. If importing other data, however, this is probably not needed.



Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.