mocks
Class MockRuleServiceImpl
java.lang.Object
   mocks.MockRuleServiceImpl
mocks.MockRuleServiceImpl
- All Implemented Interfaces: 
- XmlExporter, XmlLoader, RuleService
- public class MockRuleServiceImpl 
- extends Object- implements RuleService
 
| Method Summary | 
|  void | addRule(RuleBaseValues rule)
 | 
|  void | delete(String ruleBaseValuesId)
 | 
|  void | deleteRuleResponsibilityById(String ruleResponsibilityId)
 | 
|  org.jdom.Element | export(ExportDataSet dataSet)
 | 
|  List | fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName,
                                                                                           String documentType)
 | 
|  List | fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName,
                                                                                           String documentType,
                                                                                           boolean ignoreCache)
 | 
|  List | fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName,
                                                                                           String documentType,
                                                                                           Timestamp effectiveDate)
 | 
|  List | fetchAllRules(boolean currentRules)
 | 
|  List<RuleBaseValues> | findByDocumentId(String documentId)
 | 
|  RuleResponsibility | findByRuleResponsibilityId(String ruleResponsibilityId)
 | 
|  RuleBaseValues | findDefaultRuleByRuleTemplateId(String ruleTemplateId)
 | 
|  String | findResponsibilityIdForRule(String ruleName,
                                                       String ruleResponsibilityName,
                                                       String ruleResponsibilityType)
 | 
|  RuleBaseValues | findRuleBaseValuesById(String ruleBaseValuesId)
 | 
|  RuleBaseValues | findRuleBaseValuesByName(String name)
 | 
|  List | findRuleBaseValuesByResponsibilityReviewer(String reviewerName,
                                                                                     String type)
 | 
|  List | findRuleBaseValuesByResponsibilityReviewerTemplateDoc(String ruleTemplateName,
                                                                                                           String documentType,
                                                                                                           String reviewerName,
                                                                                                           String type)This overridden method ...
 | 
|  RuleResponsibility | findRuleResponsibility(String responsibilityId)
 | 
|  void | flushRuleCache()
 | 
|  String | getDuplicateRuleId(RuleBaseValues rule)
 | 
|  RuleBaseValues | getParentRule(String ruleBaseValuesId)
 | 
|  RuleBaseValues | getRuleByName(String name)
 | 
|  String | getRuleDocmentTypeName(List rules)
 | 
|  String | isLockedForRouting(String currentRuleBaseValuesId)
 | 
|  void | loadXml(InputStream inputStream,
               String principalId)
 | 
|  void | makeCurrent(RuleBaseValues rule,
                       boolean isRetroactiveUpdatePermitted)
 | 
|  void | makeCurrent(RuleDelegation ruleDelegation,
                       boolean isRetroactiveUpdatePermitted)
 | 
|  void | makeCurrent(String documentId)
 | 
|  void | notifyCacheOfDocumentTypeChange(DocumentType documentType)
 | 
|  void | notifyCacheOfRuleChange(RuleBaseValues rule,
                                               DocumentType documentType)
 | 
|  String | routeRuleWithDelegate(String documentId,
                                           RuleBaseValues parentRule,
                                           RuleBaseValues delegateRule,
                                           PrincipalContract principal,
                                           String annotation,
                                           boolean blanketApprove)
 | 
|  void | save2(RuleBaseValues ruleBaseValues)
 | 
|  void | saveDeactivationDate(RuleBaseValues rule)
 | 
|  RuleBaseValues | saveRule(RuleBaseValues rule,
                 boolean isRetroactiveUpdatePermitted)
 | 
|  RuleDelegation | saveRuleDelegation(RuleDelegation ruleDelegation,
                                     boolean isRetroactiveUpdatePermitted)
 | 
|  List<RuleDelegation> | saveRuleDelegations(List<RuleDelegation> ruleDelegationsToSave,
                                       boolean isRetroactiveUpdatePermitted)
 | 
|  List<RuleBaseValues> | saveRules(List<RuleBaseValues> rulesToSave,
                   boolean isRetroactiveUpdatePermitted)
 | 
|  List | search(String docTypeName,
             Long ruleTemplateId,
             Long workgroupId,
             String workflowId,
             Boolean delegateRule,
             Boolean activeInd,
             Map extensionValues)
 | 
|  List<RuleBaseValues> | search(String docTypeName,
             String ruleId,
             String ruleTemplateId,
             String ruleDescription,
             String workgroupId,
             String principalId,
             Boolean delegateRule,
             Boolean activeInd,
             Map extensionValues,
             String workflowIdDirective)
 | 
|  List<RuleBaseValues> | searchByTemplate(String docTypeName,
                                 String ruleTemplateName,
                                 String ruleDescription,
                                 String groupId,
                                 String principalId,
                                 Boolean workgroupMember,
                                 Boolean delegateRule,
                                 Boolean activeInd,
                                 Map extensionValues,
                                 Collection<String> actionRequestCodes)
 | 
|  boolean | supportPrettyPrint()
 | 
|  void | validate2(RuleBaseValues ruleBaseValues,
                   RuleDelegation ruleDelegation,
                   List errors)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
MockRuleServiceImpl
public MockRuleServiceImpl()
getParentRule
public RuleBaseValues getParentRule(String ruleBaseValuesId)
- 
- Specified by:
- getParentRulein interface- RuleService
 
- 
 
fetchAllCurrentRulesForTemplateDocCombination
public List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName,
                                                          String documentType,
                                                          boolean ignoreCache)
- 
- Specified by:
- fetchAllCurrentRulesForTemplateDocCombinationin interface- RuleService
 
- 
 
isLockedForRouting
public String isLockedForRouting(String currentRuleBaseValuesId)
- 
- Specified by:
- isLockedForRoutingin interface- RuleService
 
- 
 
routeRuleWithDelegate
public String routeRuleWithDelegate(String documentId,
                                    RuleBaseValues parentRule,
                                    RuleBaseValues delegateRule,
                                    PrincipalContract principal,
                                    String annotation,
                                    boolean blanketApprove)
                             throws Exception
- 
- Specified by:
- routeRuleWithDelegatein interface- RuleService
 
- 
- Throws:
- Exception
 
search
public List<RuleBaseValues> search(String docTypeName,
                                   String ruleId,
                                   String ruleTemplateId,
                                   String ruleDescription,
                                   String workgroupId,
                                   String principalId,
                                   Boolean delegateRule,
                                   Boolean activeInd,
                                   Map extensionValues,
                                   String workflowIdDirective)
- 
- Specified by:
- searchin interface- RuleService
 
- 
 
searchByTemplate
public List<RuleBaseValues> searchByTemplate(String docTypeName,
                                             String ruleTemplateName,
                                             String ruleDescription,
                                             String groupId,
                                             String principalId,
                                             Boolean workgroupMember,
                                             Boolean delegateRule,
                                             Boolean activeInd,
                                             Map extensionValues,
                                             Collection<String> actionRequestCodes)
- 
- Specified by:
- searchByTemplatein interface- RuleService
 
- 
 
notifyCacheOfRuleChange
public void notifyCacheOfRuleChange(RuleBaseValues rule,
                                    DocumentType documentType)
- 
- Specified by:
- notifyCacheOfRuleChangein interface- RuleService
 
- 
 
flushRuleCache
public void flushRuleCache()
- 
- Specified by:
- flushRuleCachein interface- RuleService
 
- 
 
getRuleByName
public RuleBaseValues getRuleByName(String name)
- 
- Specified by:
- getRuleByNamein interface- RuleService
 
- 
 
addRule
public void addRule(RuleBaseValues rule)
- 
 
- 
 
delete
public void delete(String ruleBaseValuesId)
- 
- Specified by:
- deletein interface- RuleService
 
- 
 
findRuleBaseValuesByName
public RuleBaseValues findRuleBaseValuesByName(String name)
- 
 
- 
 
findRuleBaseValuesById
public RuleBaseValues findRuleBaseValuesById(String ruleBaseValuesId)
- 
- Specified by:
- findRuleBaseValuesByIdin interface- RuleService
 
- 
 
search
public List search(String docTypeName,
                   Long ruleTemplateId,
                   Long workgroupId,
                   String workflowId,
                   Boolean delegateRule,
                   Boolean activeInd,
                   Map extensionValues)
- 
 
- 
 
findRuleResponsibility
public RuleResponsibility findRuleResponsibility(String responsibilityId)
- 
- Specified by:
- findRuleResponsibilityin interface- RuleService
 
- 
 
deleteRuleResponsibilityById
public void deleteRuleResponsibilityById(String ruleResponsibilityId)
- 
- Specified by:
- deleteRuleResponsibilityByIdin interface- RuleService
 
- 
 
findByRuleResponsibilityId
public RuleResponsibility findByRuleResponsibilityId(String ruleResponsibilityId)
- 
- Specified by:
- findByRuleResponsibilityIdin interface- RuleService
 
- 
 
fetchAllCurrentRulesForTemplateDocCombination
public List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName,
                                                          String documentType)
- 
- Specified by:
- fetchAllCurrentRulesForTemplateDocCombinationin interface- RuleService
 
- 
 
findByDocumentId
public List<RuleBaseValues> findByDocumentId(String documentId)
- 
- Specified by:
- findByDocumentIdin interface- RuleService
 
- 
 
makeCurrent
public void makeCurrent(String documentId)
- 
- Specified by:
- makeCurrentin interface- RuleService
 
- 
 
makeCurrent
public void makeCurrent(RuleBaseValues rule,
                        boolean isRetroactiveUpdatePermitted)
- 
- Specified by:
- makeCurrentin interface- RuleService
 
- 
 
makeCurrent
public void makeCurrent(RuleDelegation ruleDelegation,
                        boolean isRetroactiveUpdatePermitted)
- 
- Specified by:
- makeCurrentin interface- RuleService
 
- 
 
findRuleBaseValuesByResponsibilityReviewer
public List findRuleBaseValuesByResponsibilityReviewer(String reviewerName,
                                                       String type)
- 
- Specified by:
- findRuleBaseValuesByResponsibilityReviewerin interface- RuleService
 
- 
 
fetchAllRules
public List fetchAllRules(boolean currentRules)
- 
- Specified by:
- fetchAllRulesin interface- RuleService
 
- 
 
saveDeactivationDate
public void saveDeactivationDate(RuleBaseValues rule)
- 
 
- 
 
validate2
public void validate2(RuleBaseValues ruleBaseValues,
                      RuleDelegation ruleDelegation,
                      List errors)
               throws Exception
- 
- Specified by:
- validate2in interface- RuleService
 
- 
- Throws:
- Exception
 
fetchAllCurrentRulesForTemplateDocCombination
public List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName,
                                                          String documentType,
                                                          Timestamp effectiveDate)
- 
- Specified by:
- fetchAllCurrentRulesForTemplateDocCombinationin interface- RuleService
 
- 
 
findDefaultRuleByRuleTemplateId
public RuleBaseValues findDefaultRuleByRuleTemplateId(String ruleTemplateId)
- 
- Specified by:
- findDefaultRuleByRuleTemplateIdin interface- RuleService
 
- 
 
save2
public void save2(RuleBaseValues ruleBaseValues)
           throws Exception
- 
- Specified by:
- save2in interface- RuleService
 
- 
- Throws:
- Exception
 
loadXml
public void loadXml(InputStream inputStream,
                    String principalId)
- 
- Specified by:
- loadXmlin interface- XmlLoader
 
- 
 
export
public org.jdom.Element export(ExportDataSet dataSet)
- 
- Specified by:
- exportin interface- XmlExporter
 
- 
 
supportPrettyPrint
public boolean supportPrettyPrint()
- 
- Specified by:
- supportPrettyPrintin interface- XmlExporter
 
- 
 
notifyCacheOfDocumentTypeChange
public void notifyCacheOfDocumentTypeChange(DocumentType documentType)
- 
- Specified by:
- notifyCacheOfDocumentTypeChangein interface- RuleService
 
- 
 
getRuleDocmentTypeName
public String getRuleDocmentTypeName(List rules)
- 
- Specified by:
- getRuleDocmentTypeNamein interface- RuleService
 
- 
 
findRuleBaseValuesByResponsibilityReviewerTemplateDoc
public List findRuleBaseValuesByResponsibilityReviewerTemplateDoc(String ruleTemplateName,
                                                                  String documentType,
                                                                  String reviewerName,
                                                                  String type)
- This overridden method ...
 
- 
- Specified by:
- findRuleBaseValuesByResponsibilityReviewerTemplateDocin interface- RuleService
 
- 
- See Also:
- RuleService.findRuleBaseValuesByResponsibilityReviewerTemplateDoc(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
 
getDuplicateRuleId
public String getDuplicateRuleId(RuleBaseValues rule)
- 
- Specified by:
- getDuplicateRuleIdin interface- RuleService
 
- 
 
findResponsibilityIdForRule
public String findResponsibilityIdForRule(String ruleName,
                                          String ruleResponsibilityName,
                                          String ruleResponsibilityType)
- 
- Specified by:
- findResponsibilityIdForRulein interface- RuleService
 
- 
 
saveRule
public RuleBaseValues saveRule(RuleBaseValues rule,
                               boolean isRetroactiveUpdatePermitted)
- 
- Specified by:
- saveRulein interface- RuleService
 
- 
 
saveRuleDelegation
public RuleDelegation saveRuleDelegation(RuleDelegation ruleDelegation,
                                         boolean isRetroactiveUpdatePermitted)
- 
- Specified by:
- saveRuleDelegationin interface- RuleService
 
- 
 
saveRuleDelegations
public List<RuleDelegation> saveRuleDelegations(List<RuleDelegation> ruleDelegationsToSave,
                                                boolean isRetroactiveUpdatePermitted)
- 
- Specified by:
- saveRuleDelegationsin interface- RuleService
 
- 
 
saveRules
public List<RuleBaseValues> saveRules(List<RuleBaseValues> rulesToSave,
                                      boolean isRetroactiveUpdatePermitted)
- 
- Specified by:
- saveRulesin interface- RuleService
 
- 
 
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.