| 
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RuleSetRepository
This interface defines the operations necessary to add, remove, and
 retrieve rule set XML documents to and from a rule set store.  All rule set 
 repository subsystems must implement this interface; however, the 
 following operations are  optional, and may not be supported by all 
 implementations:
 
 
setRuleSetremoveRuleSet
RuleSetArchive| Field Summary | |
|---|---|
static int | 
BINARY_FORMAT
Rule set format: binary representation.  | 
static int | 
STRING_FORMAT
Rule set format: XML string representation.  | 
| Method Summary | |
|---|---|
 Object | 
getRuleSet(String ruleSetUri,
           int format)
Retrieves the rule set with the given URI in the specified format.  | 
 Collection | 
getRuleSets()
Retrieves a Collection containing the URI strings 
 of all the rule sets available in the rule set repository subsystem. | 
 void | 
removeRuleSet(String ruleSetUri)
Removes a rule set with the given URI.  | 
 void | 
setRuleSet(RuleSetArchive archive)
Saves a new or updated rule set.  | 
| Field Detail | 
|---|
static final int STRING_FORMAT
static final int BINARY_FORMAT
| Method Detail | 
|---|
void setRuleSet(RuleSetArchive archive)
                throws ApplicationException,
                       IllegalArgumentException,
                       UnsupportedOperationException,
                       RemoteException
archive - the RuleSetArchive that contains the rule set 
 deployment information.
ApplicationException - if the rule set repository subsystem
 is unable to persist the rule set.
IllegalArgumentException - if the RuleSetArchive is invalid.
UnsupportedOperationException - if the setRuleSet operation
 is not supported by the rule set repository subsystem.
RemoteException - if a communication error occurs during the execution 
 of a remote method call.
Object getRuleSet(String ruleSetUri,
                  int format)
                  throws RuleSetNotFoundException,
                         ApplicationException,
                         IllegalArgumentException,
                         RemoteException
STRING_FORMAT - an XML string representation of 
   the rule set.BINARY_FORMAT - a binary representation of the 
   rule set.
ruleSetUri - the URI of the target rule set.format - the desired format of the returned rule set.
RuleSetNotFoundException - if the rule set referenced by the supplied 
 URI cannot be located by the rule set repository subsystem.
ApplicationException - if the rule set repository subsystem
 is unable to retrieve the rule set.
IllegalArgumentException - if the ruleSetUri is an
 invalid rule set URI or if the format is not supported.
RemoteException - if a communication error occurs during the execution 
 of a remote method call.
Collection getRuleSets()
                       throws ApplicationException,
                              RemoteException
Collection containing the URI strings 
 of all the rule sets available in the rule set repository subsystem.
 getRuleSet method.
Collection of all rule set URI strings.
ApplicationException - if the rule set repository subsystem
 is unable to retrieve the rule set URI strings.
RemoteException - if a communication error occurs during the execution 
 of a remote method call.
void removeRuleSet(String ruleSetUri)
                   throws RuleSetNotFoundException,
                          ApplicationException,
                          IllegalArgumentException,
                          UnsupportedOperationException,
                          RemoteException
ruleSetUri - the URI of the target rule set.
RuleSetNotFoundException - if the rule set referenced by the supplied 
 URI cannot be located by the rule set repository subsystem.
ApplicationException - if the rule set repository subsystem
 is unable to remove the rule set.
IllegalArgumentException - if the ruleSetUri is an
 invalid rule set URI.
UnsupportedOperationException - if the setRuleSet operation
 is not supported by the rule set repository subsystem.
RemoteException - if a communication error occurs during the execution 
 of a remote method call.
  | 
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||