| com.sun.portal.rewriter.admin.model.RewriterModel
All known Subclasses: com.sun.portal.rewriter.admin.model.RewriterModelImpl,
RewriterModel | public interface RewriterModel extends AMModel(Code) | | The interface uses by the create rule view bean to create
a new ruleset XML.
|
deleteRules | public Map deleteRules(List rules)(Code) | | Deletes the Rulesets
Parameters: rules - a List of Ruleset IDs throws: Exception - When the delete operation fails |
getFromSession | public List getFromSession(String name)(Code) | | Gets values stored in the session
Parameters: name - Key of the values to be retrived from the session a List of values from the session |
getHelpUrl | public String getHelpUrl(String docName)(Code) | | Gets URL for an online help document. Default URL to English online
help if it is not found.
Parameters: docName - - online help document file name URL for an online help document |
getRuleSetNames | public List getRuleSetNames()(Code) | | Gets the Rulesets available
Ruleset names as a List |
getRulesetXML | public String getRulesetXML(String ruleSetName)(Code) | | Gets the Ruleset XML for a given ruleset ID
Parameters: ruleSetName - Ruleset name as String RuleSet XML as String |
getRulesetXMLTemplate | public String getRulesetXMLTemplate()(Code) | | Gets the Ruleset XML from the XML template
ruleset XML Template as String |
isCreateOverwrite | public boolean isCreateOverwrite(String xml) throws Exception(Code) | | Called by the CreateRuleViewbean to check if the current ruleset is
overwriting an existing rule.
Parameters: xml - New ruleset XML as String throws: Exception - when the XML input is not valid RuleSet XML true if a ruleSet exists with the same ID as new ruleset thatis created |
isEditOverwrite | public boolean isEditOverwrite(String ruleOrigName, String editedXML) throws Exception(Code) | | This method is called by the EditRuleSet viewbean to check if another
ruleset exists with the same ID as in the edited xml ruleset.
Parameters: ruleOrigName - Original name of the ruleset that is being edited Parameters: editedXML - Modified XML as String throws: Exception - when the input XML data is not avalid RuleSet XML true if another ruleset exists with the same ID |
saveRulesetXML | public void saveRulesetXML(String xml, boolean isEdit) throws Exception(Code) | | Saves the modified XML
Parameters: xml - XML data to save Parameters: isEdit - value is set to true if the save operation is done after anedit operation throws: Exception - when the XML data is not a valid Ruleset XML |
storeToSession | public void storeToSession(String name, List values)(Code) | | Stores values in the session
Parameters: name - Key of the value to be stored in the session Parameters: values - List of values to be stored |
|
|