站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

RulesRepositoryAdministrator (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


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.

Author:
Michael Neale

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-2007 JBoss Inc.. All Rights Reserved.