| java.lang.Object org.drools.repository.RulesRepositoryAdministrator
RulesRepositoryAdministrator | public class RulesRepositoryAdministrator (Code) | | This class is for administering the rules repo.
Any "sensitive" actions can happen in here.
author: Michael Neale |
Method Summary | |
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. | static boolean | isNamespaceRegistered(Session session) | public boolean | isRepositoryInitialized() This will tell you if the repository currently connected to is initialized. |
RulesRepositoryAdministrator | public RulesRepositoryAdministrator(Session session)(Code) | | Pass in a session that is capable of doing admin-ey type stuff.
|
clearRulesRepository | public void clearRulesRepository()(Code) | | 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.
|
isNamespaceRegistered | static boolean isNamespaceRegistered(Session session) throws RepositoryException(Code) | | |
isRepositoryInitialized | public boolean isRepositoryInitialized()(Code) | | 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).
|
|
|