|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Scenario repository EJB object interface.
| Method Summary | |
boolean |
deleteScenario(java.lang.String scenarioId)
Permanently delete a scenario. |
java.util.Collection |
findScenarioInfo(java.lang.String query,
java.lang.String sortBy,
int max)
Get a list of ScenarioInfos that match the query. |
java.lang.String |
getScenario(java.lang.String scenarioId)
Get the XML of the specified scenario. |
boolean |
setScenario(java.lang.String scenario)
Set the XML of the specified scenario. |
| Method Detail |
public java.util.Collection findScenarioInfo(java.lang.String query,
java.lang.String sortBy,
int max)
throws java.lang.IllegalArgumentException,
javax.ejb.EJBException,
java.rmi.RemoteException
The following property names are allowed in the query string:
id: the String unique scenario id
name: the String scenario name
description: the String scenario description.
validClassifications: the multi-valued String
classification names.
activeFlag: the Boolean scenario active flag.
Example Queries:
The sortBy may reference any of the previously listed property names, except for 'validClassifications'.
query - the query string.sortBy - the sorting clause.max - the maximum number to return (<= 0 for all).java.lang.IllegalArgumentException - thrown on an invalid query or sortBy
string.EJBException - thrown on an error.java.rmi.RemoteException - thrown on a communications error.
public java.lang.String getScenario(java.lang.String scenarioId)
throws javax.ejb.EJBException,
java.rmi.RemoteException
scenarioId - the id of the scenario.EJBException - thrown on an error.java.rmi.RemoteException - thrown on a communications error.
public boolean setScenario(java.lang.String scenario)
throws java.lang.IllegalArgumentException,
javax.ejb.EJBException,
java.rmi.RemoteException
The scenario XML should be in UTF-8. Additionally, the top-level scenario tag should have an xsi:schemaLocation for 'scenario.xsd'.
scenario - the XML of the scenario.java.lang.IllegalArgumentException - throw on invalid XML.EJBException - thrown on an error.java.rmi.RemoteException - thrown on a communications error.
public boolean deleteScenario(java.lang.String scenarioId)
throws javax.ejb.EJBException,
java.rmi.RemoteException
This will remove the scenario definition from the repository, making the scenario no longer available.
scenarioId - the id of the scenario.EJBException - thrown on an error.java.rmi.RemoteException - thrown on a communications error.
|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||