mocks
Class MockRuleServiceImpl
java.lang.Object
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:
getParentRule
in interface RuleService
fetchAllCurrentRulesForTemplateDocCombination
public List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName,
String documentType,
boolean ignoreCache)
- Specified by:
fetchAllCurrentRulesForTemplateDocCombination
in interface RuleService
isLockedForRouting
public String isLockedForRouting(String currentRuleBaseValuesId)
- Specified by:
isLockedForRouting
in interface RuleService
routeRuleWithDelegate
public String routeRuleWithDelegate(String documentId,
RuleBaseValues parentRule,
RuleBaseValues delegateRule,
PrincipalContract principal,
String annotation,
boolean blanketApprove)
throws Exception
- Specified by:
routeRuleWithDelegate
in 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:
search
in 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:
searchByTemplate
in interface RuleService
notifyCacheOfRuleChange
public void notifyCacheOfRuleChange(RuleBaseValues rule,
DocumentType documentType)
- Specified by:
notifyCacheOfRuleChange
in interface RuleService
flushRuleCache
public void flushRuleCache()
- Specified by:
flushRuleCache
in interface RuleService
getRuleByName
public RuleBaseValues getRuleByName(String name)
- Specified by:
getRuleByName
in interface RuleService
addRule
public void addRule(RuleBaseValues rule)
delete
public void delete(String ruleBaseValuesId)
- Specified by:
delete
in interface RuleService
findRuleBaseValuesByName
public RuleBaseValues findRuleBaseValuesByName(String name)
findRuleBaseValuesById
public RuleBaseValues findRuleBaseValuesById(String ruleBaseValuesId)
- Specified by:
findRuleBaseValuesById
in 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:
findRuleResponsibility
in interface RuleService
deleteRuleResponsibilityById
public void deleteRuleResponsibilityById(String ruleResponsibilityId)
- Specified by:
deleteRuleResponsibilityById
in interface RuleService
findByRuleResponsibilityId
public RuleResponsibility findByRuleResponsibilityId(String ruleResponsibilityId)
- Specified by:
findByRuleResponsibilityId
in interface RuleService
fetchAllCurrentRulesForTemplateDocCombination
public List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName,
String documentType)
- Specified by:
fetchAllCurrentRulesForTemplateDocCombination
in interface RuleService
findByDocumentId
public List<RuleBaseValues> findByDocumentId(String documentId)
- Specified by:
findByDocumentId
in interface RuleService
makeCurrent
public void makeCurrent(String documentId)
- Specified by:
makeCurrent
in interface RuleService
makeCurrent
public void makeCurrent(RuleBaseValues rule,
boolean isRetroactiveUpdatePermitted)
- Specified by:
makeCurrent
in interface RuleService
makeCurrent
public void makeCurrent(RuleDelegation ruleDelegation,
boolean isRetroactiveUpdatePermitted)
- Specified by:
makeCurrent
in interface RuleService
findRuleBaseValuesByResponsibilityReviewer
public List findRuleBaseValuesByResponsibilityReviewer(String reviewerName,
String type)
- Specified by:
findRuleBaseValuesByResponsibilityReviewer
in interface RuleService
fetchAllRules
public List fetchAllRules(boolean currentRules)
- Specified by:
fetchAllRules
in interface RuleService
saveDeactivationDate
public void saveDeactivationDate(RuleBaseValues rule)
validate2
public void validate2(RuleBaseValues ruleBaseValues,
RuleDelegation ruleDelegation,
List errors)
throws Exception
- Specified by:
validate2
in interface RuleService
- Throws:
Exception
fetchAllCurrentRulesForTemplateDocCombination
public List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName,
String documentType,
Timestamp effectiveDate)
- Specified by:
fetchAllCurrentRulesForTemplateDocCombination
in interface RuleService
findDefaultRuleByRuleTemplateId
public RuleBaseValues findDefaultRuleByRuleTemplateId(String ruleTemplateId)
- Specified by:
findDefaultRuleByRuleTemplateId
in interface RuleService
save2
public void save2(RuleBaseValues ruleBaseValues)
throws Exception
- Specified by:
save2
in interface RuleService
- Throws:
Exception
loadXml
public void loadXml(InputStream inputStream,
String principalId)
- Specified by:
loadXml
in interface XmlLoader
export
public org.jdom.Element export(ExportDataSet dataSet)
- Specified by:
export
in interface XmlExporter
supportPrettyPrint
public boolean supportPrettyPrint()
- Specified by:
supportPrettyPrint
in interface XmlExporter
notifyCacheOfDocumentTypeChange
public void notifyCacheOfDocumentTypeChange(DocumentType documentType)
- Specified by:
notifyCacheOfDocumentTypeChange
in interface RuleService
getRuleDocmentTypeName
public String getRuleDocmentTypeName(List rules)
- Specified by:
getRuleDocmentTypeName
in interface RuleService
findRuleBaseValuesByResponsibilityReviewerTemplateDoc
public List findRuleBaseValuesByResponsibilityReviewerTemplateDoc(String ruleTemplateName,
String documentType,
String reviewerName,
String type)
- This overridden method ...
- Specified by:
findRuleBaseValuesByResponsibilityReviewerTemplateDoc
in 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:
getDuplicateRuleId
in interface RuleService
findResponsibilityIdForRule
public String findResponsibilityIdForRule(String ruleName,
String ruleResponsibilityName,
String ruleResponsibilityType)
- Specified by:
findResponsibilityIdForRule
in interface RuleService
saveRule
public RuleBaseValues saveRule(RuleBaseValues rule,
boolean isRetroactiveUpdatePermitted)
- Specified by:
saveRule
in interface RuleService
saveRuleDelegation
public RuleDelegation saveRuleDelegation(RuleDelegation ruleDelegation,
boolean isRetroactiveUpdatePermitted)
- Specified by:
saveRuleDelegation
in interface RuleService
saveRuleDelegations
public List<RuleDelegation> saveRuleDelegations(List<RuleDelegation> ruleDelegationsToSave,
boolean isRetroactiveUpdatePermitted)
- Specified by:
saveRuleDelegations
in interface RuleService
saveRules
public List<RuleBaseValues> saveRules(List<RuleBaseValues> rulesToSave,
boolean isRetroactiveUpdatePermitted)
- Specified by:
saveRules
in interface RuleService
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.