BEA Systems, Inc.

com.beasys.commerce.axiom.reasoning.rules
Interface RuleManager


public interface RuleManager
extends javax.ejb.EJBObject


Field Summary
static java.lang.String LOOKUP_NAME
           
 
Method Summary
 RuleSheet create()
          Create a rule sheet.
 RuleSheet create(java.lang.String aName)
          Create a rule sheet.
 void delete(RuleSheet aRuleSheet)
          Delete a rule sheet.
 void delete(java.lang.String aName)
          Delete a rule sheet by name.
 java.util.Map getAllProperties()
          Get all properties available from all property sets
 java.lang.String[] getAvailablePropertySets()
          Get available property sets.
 java.lang.String[] getContentPropertySets()
          Get content property sets.
 java.util.Map getPropertiesForPropertySet(java.lang.String aPropertySet)
          Get properties for property set.
 java.lang.String[] getRuleSheetNames()
          Get rule sheet names.
 RuleSheet load(java.lang.String aName)
          Load a rule sheet for the given name.
 void save(RuleSheet aRuleSheet)
          Save a rule sheet.
 void validate(RuleSheet aRuleSheet)
          Validate the rulesheet.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Field Detail

LOOKUP_NAME

public static final java.lang.String LOOKUP_NAME
Method Detail

load

public RuleSheet load(java.lang.String aName)
               throws java.io.IOException,
                      javax.ejb.EJBException,
                      java.rmi.RemoteException
Load a rule sheet for the given name.
Parameters:
aName -  
Returns:
RuleSheet
Throws:
IOException -  
EJBException -  

create

public RuleSheet create()
                 throws java.io.IOException,
                        javax.ejb.EJBException,
                        java.rmi.RemoteException
Create a rule sheet. This is an empty rulesheet.
Returns:
RuleSheet
Throws:
IOException -  
EJBException -  

create

public RuleSheet create(java.lang.String aName)
                 throws java.io.IOException,
                        javax.ejb.EJBException,
                        java.rmi.RemoteException
Create a rule sheet. This is an empty rulesheet with the name set.
Parameters:
aName -  
Returns:
RuleSheet
Throws:
IOException -  
EJBException -  

save

public void save(RuleSheet aRuleSheet)
          throws java.io.IOException,
                 javax.ejb.EJBException,
                 java.rmi.RemoteException
Save a rule sheet.
Parameters:
aRuleSheet -  
Throws:
IOException -  
EJBException -  

delete

public void delete(RuleSheet aRuleSheet)
            throws javax.ejb.EJBException,
                   java.rmi.RemoteException
Delete a rule sheet.
Parameters:
aRuleSheet -  
Throws:
IOException -  
EJBException -  

delete

public void delete(java.lang.String aName)
            throws javax.ejb.EJBException,
                   java.rmi.RemoteException
Delete a rule sheet by name.
Parameters:
aName - the name of the rule sheet.
Throws:
EJBException -  

getRuleSheetNames

public java.lang.String[] getRuleSheetNames()
                                     throws javax.ejb.EJBException,
                                            java.rmi.RemoteException
Get rule sheet names.
Returns:
String[]
Throws:
EJBException -  
RemoteException -  

validate

public void validate(RuleSheet aRuleSheet)
              throws javax.ejb.EJBException,
                     java.io.IOException,
                     java.rmi.RemoteException
Validate the rulesheet. Runs the item through the parser to validate.
Parameters:
aRuleSheet -  
Throws:
EJBException - if not valid. You must look at the description.
IOException -  

getContentPropertySets

public java.lang.String[] getContentPropertySets()
                                          throws javax.ejb.EJBException,
                                                 java.rmi.RemoteException
Get content property sets.
Returns:
String[]
Throws:
EJBException -  

getAvailablePropertySets

public java.lang.String[] getAvailablePropertySets()
                                            throws javax.ejb.EJBException,
                                                   java.rmi.RemoteException
Get available property sets.
Returns:
String[]
Throws:
EJBException -  

getAllProperties

public java.util.Map getAllProperties()
                               throws javax.ejb.EJBException,
                                      java.rmi.RemoteException
Get all properties available from all property sets
Returns:
Map
Throws:
EJBException -  

getPropertiesForPropertySet

public java.util.Map getPropertiesForPropertySet(java.lang.String aPropertySet)
                                          throws javax.ejb.EJBException,
                                                 java.rmi.RemoteException
Get properties for property set. This returns a map where the key is the property name, e.g.USER.age and the key is a PropertyMetaData.
Parameters:
aPropertySet -  
Returns:
Map
Throws:
EJBException -  

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved