Java Doc for RuleServiceImpl.java in  » ERP-CRM-Financial » Kuali-Financial-System » edu » iu » uis » eden » routetemplate » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » Kuali Financial System » edu.iu.uis.eden.routetemplate 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   edu.iu.uis.eden.routetemplate.RuleServiceImpl

RuleServiceImpl
public class RuleServiceImpl implements RuleService(Code)

Inner Class :public class RuleDelegationSorter implements Comparator



Method Summary
public  voiddelete(Long ruleBaseValuesId)
    
public  voiddeleteRuleResponsibilityById(Long ruleResponsibilityId)
    
public  Elementexport(ExportDataSet dataSet)
    
public  ListfetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName, String documentType, boolean ignoreCache)
    
public  ListfetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName, String documentType)
    
public  ListfetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName, String documentType, Timestamp effectiveDate)
    
public  ListfetchAllRules(boolean currentRules)
    
public  ListfindByRouteHeaderId(Long routeHeaderId)
    
public  RuleResponsibilityfindByRuleResponsibilityId(Long ruleResponsibilityId)
    
public  RuleBaseValuesfindDefaultRuleByRuleTemplateId(Long ruleTemplateId)
    
public  RuleBaseValuesfindRuleBaseValuesById(Long ruleBaseValuesId)
    
public  ListfindRuleBaseValuesByResponsibilityReviewer(String reviewerName, String type)
    
public  RuleResponsibilityfindRuleResponsibility(Long responsibilityId)
    
protected  voidflushDocumentTypeFromCache(String documentTypeName)
    
protected  voidflushListFromCache(String ruleTemplateName, String documentTypeName)
    
public  ActionRequestServicegetActionRequestService()
    
protected  StringgetDocumentTypeRuleCacheGroupName(String documentTypeName)
    
public  DocumentTypeServicegetDocumentTypeService()
    
protected  List<RuleBaseValues>getListFromCache(String ruleTemplateName, String documentTypeName)
    
public  RuleBaseValuesgetParentRule(Long ruleBaseValuesId)
    
public  RuleBaseValuesgetParentRule(RuleBaseValues rule)
    
protected  StringgetRuleCacheKey(String ruleTemplateName, String docTypeName)
     Returns the key of the rule cache.
public  RuleDAOgetRuleDAO()
    
public  StringgetRuleDocmentTypeName(List rules)
     This configuration is currently stored in a application constant named "Rule.Config.CustomDocTypes", long term we should come up with a better solution.
public  RuleResponsibilityDAOgetRuleResponsibilityDAO()
    
public  RuleTemplateServicegetRuleTemplateService()
    
public  WorkgroupServicegetWorkgroupService()
    
public  LongisLockedForRouting(Long currentRuleBaseValuesId)
     Determines if the given rule is locked for routing.
public  voidloadXml(InputStream inputStream, WorkflowUser user)
    
public  voidmakeCurrent(Long routeHeaderId)
    
public  voidnotifyCacheOfDocumentTypeChange(DocumentType documentType)
    
protected  voidnotifyCacheOfDocumentTypeChangeFromParent(DocumentType documentType)
     Flushes rules cached for the given DocumentType and then recursivley flushes rules cached for all children DocumentTypes.
protected  voidnotifyCacheOfDocumentTypeChangeFromRoot(DocumentType rootDocumentType, DocumentType documentType)
     Flushes rules cached from the root of the DocumentType hierarchy (at the given root DocumentType).
public  voidnotifyCacheOfRuleChange(RuleBaseValues rule, DocumentType documentType)
    
protected  voidputListInCache(String ruleTemplateName, String documentTypeName, List<RuleBaseValues> rules)
    
public  Longroute2(Long routeHeaderId, MyRules2 myRules, WorkflowUser user, String annotation, boolean blanketApprove)
    
public  LongrouteRuleWithDelegate(Long routeHeaderId, RuleBaseValues parentRule, RuleBaseValues delegateRule, WorkflowUser user, String annotation, boolean blanketApprove)
    
public  voidsave2(RuleBaseValues ruleBaseValues)
    
public  voidsave2(RuleBaseValues ruleBaseValues, RuleDelegation ruleDelegation, boolean saveDelegations)
    
public  voidsaveDeactivationDate(RuleBaseValues rule)
    
public  Listsearch(String docTypeName, Long ruleId, Long ruleTemplateId, String ruleDescription, Long workgroupId, String workflowId, String roleName, Boolean delegateRule, Boolean activeInd, Map extensionValues)
    
public  Listsearch(String docTypeName, String ruleTemplateName, String ruleDescription, GroupId workgroupId, UserId userId, String roleName, Boolean workgroupMember, Boolean delegateRule, Boolean activeInd, Map extensionValues, Collection<String> actionRequestCodes)
    
public  voidsetRuleDAO(RuleDAO ruleDAO)
    
public  voidsetRuleResponsibilityDAO(RuleResponsibilityDAO ruleResponsibilityDAO)
    
public  voidvalidate(RuleBaseValues ruleBaseValues, List errors)
    
public  voidvalidate2(RuleBaseValues ruleBaseValues, RuleDelegation ruleDelegation, List errors)
    



Method Detail
delete
public void delete(Long ruleBaseValuesId)(Code)



deleteRuleResponsibilityById
public void deleteRuleResponsibilityById(Long ruleResponsibilityId)(Code)



export
public Element export(ExportDataSet dataSet)(Code)



fetchAllCurrentRulesForTemplateDocCombination
public List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName, String documentType, boolean ignoreCache)(Code)



fetchAllCurrentRulesForTemplateDocCombination
public List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName, String documentType)(Code)



fetchAllCurrentRulesForTemplateDocCombination
public List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName, String documentType, Timestamp effectiveDate)(Code)



fetchAllRules
public List fetchAllRules(boolean currentRules)(Code)



findByRouteHeaderId
public List findByRouteHeaderId(Long routeHeaderId)(Code)



findByRuleResponsibilityId
public RuleResponsibility findByRuleResponsibilityId(Long ruleResponsibilityId)(Code)



findDefaultRuleByRuleTemplateId
public RuleBaseValues findDefaultRuleByRuleTemplateId(Long ruleTemplateId)(Code)



findRuleBaseValuesById
public RuleBaseValues findRuleBaseValuesById(Long ruleBaseValuesId)(Code)



findRuleBaseValuesByResponsibilityReviewer
public List findRuleBaseValuesByResponsibilityReviewer(String reviewerName, String type)(Code)



findRuleResponsibility
public RuleResponsibility findRuleResponsibility(Long responsibilityId)(Code)



flushDocumentTypeFromCache
protected void flushDocumentTypeFromCache(String documentTypeName)(Code)



flushListFromCache
protected void flushListFromCache(String ruleTemplateName, String documentTypeName)(Code)



getActionRequestService
public ActionRequestService getActionRequestService()(Code)



getDocumentTypeRuleCacheGroupName
protected String getDocumentTypeRuleCacheGroupName(String documentTypeName)(Code)



getDocumentTypeService
public DocumentTypeService getDocumentTypeService()(Code)



getListFromCache
protected List<RuleBaseValues> getListFromCache(String ruleTemplateName, String documentTypeName)(Code)



getParentRule
public RuleBaseValues getParentRule(Long ruleBaseValuesId)(Code)



getParentRule
public RuleBaseValues getParentRule(RuleBaseValues rule)(Code)



getRuleCacheKey
protected String getRuleCacheKey(String ruleTemplateName, String docTypeName)(Code)
Returns the key of the rule cache.



getRuleDAO
public RuleDAO getRuleDAO()(Code)



getRuleDocmentTypeName
public String getRuleDocmentTypeName(List rules)(Code)
This configuration is currently stored in a application constant named "Rule.Config.CustomDocTypes", long term we should come up with a better solution. The format of this constant is a comma-separated list of entries of the following form: <>:<>:<>:<> Rule type indicates either main or delegation rules. A main rule is indicated by the character 'M' and a delegate rule is indicated by the character 'D'. So, if you wanted to route "main" rules made for the "MyDocType" document with the rule template name "MyRuleTemplate" using the "MyMainRuleDocType" doc type, it would be specified as follows: MyDocType:MyRuleTemplate:M:MyMainRuleDocType If you also wanted to route "delegate" rules made for the "MyDocType" document with rule template name "MyDelegateTemplate" using the "MyDelegateRuleDocType", you would then set the constant as follows: MyDocType:MyRuleTemplate:M:MyMainRuleDocType,MyDocType:MyDelegateTemplate:D:MyDelegateRuleDocType TODO this method ended up being a mess, we should get rid of this as soon as we can



getRuleResponsibilityDAO
public RuleResponsibilityDAO getRuleResponsibilityDAO()(Code)



getRuleTemplateService
public RuleTemplateService getRuleTemplateService()(Code)



getWorkgroupService
public WorkgroupService getWorkgroupService()(Code)



isLockedForRouting
public Long isLockedForRouting(Long currentRuleBaseValuesId)(Code)
Determines if the given rule is locked for routing. In the case of a root rule edit, this method will take the rule id of the rule being edited. In the case of a new delegate rule or a delegate rule edit, this method will take the id of it's parent.



loadXml
public void loadXml(InputStream inputStream, WorkflowUser user)(Code)



makeCurrent
public void makeCurrent(Long routeHeaderId) throws EdenUserNotFoundException(Code)



notifyCacheOfDocumentTypeChange
public void notifyCacheOfDocumentTypeChange(DocumentType documentType)(Code)



notifyCacheOfDocumentTypeChangeFromParent
protected void notifyCacheOfDocumentTypeChangeFromParent(DocumentType documentType)(Code)
Flushes rules cached for the given DocumentType and then recursivley flushes rules cached for all children DocumentTypes.



notifyCacheOfDocumentTypeChangeFromRoot
protected void notifyCacheOfDocumentTypeChangeFromRoot(DocumentType rootDocumentType, DocumentType documentType)(Code)
Flushes rules cached from the root of the DocumentType hierarchy (at the given root DocumentType). Stops when it hits the given DocumentType. This method exists because of the nature of DocumentTypeService.findRootDocumentType(...). Whenever we have a modification to child document type and we call findRootDocumentType(...) on it, we end up getting back a version of the root document type which is cached in the OJB transaction cache and doesn't have the appropriate child document type attached. A better way to handle this would be to go into the DocumentType service and fix how it versions document types in versionAndSave to prevent this issue from occurring.

If such a fix was made then we could simply pass the root DocumentType into notifyCacheOfDocumentTypeChange and be gauranteed that we will see all appropriate children as we call getChildrenDocTypes().

One last note, we don't necesarily have to stop this cache flusing at the given DocumentType but there's no reason to duplicate the work that is going to be done in notifyCacheOfDocumentTypeChangeFromParent.




notifyCacheOfRuleChange
public void notifyCacheOfRuleChange(RuleBaseValues rule, DocumentType documentType)(Code)



putListInCache
protected void putListInCache(String ruleTemplateName, String documentTypeName, List<RuleBaseValues> rules)(Code)



route2
public Long route2(Long routeHeaderId, MyRules2 myRules, WorkflowUser user, String annotation, boolean blanketApprove) throws Exception(Code)



routeRuleWithDelegate
public Long routeRuleWithDelegate(Long routeHeaderId, RuleBaseValues parentRule, RuleBaseValues delegateRule, WorkflowUser user, String annotation, boolean blanketApprove) throws Exception(Code)



save2
public void save2(RuleBaseValues ruleBaseValues) throws Exception(Code)



save2
public void save2(RuleBaseValues ruleBaseValues, RuleDelegation ruleDelegation, boolean saveDelegations) throws Exception(Code)



saveDeactivationDate
public void saveDeactivationDate(RuleBaseValues rule)(Code)



search
public List search(String docTypeName, Long ruleId, Long ruleTemplateId, String ruleDescription, Long workgroupId, String workflowId, String roleName, Boolean delegateRule, Boolean activeInd, Map extensionValues)(Code)



search
public List search(String docTypeName, String ruleTemplateName, String ruleDescription, GroupId workgroupId, UserId userId, String roleName, Boolean workgroupMember, Boolean delegateRule, Boolean activeInd, Map extensionValues, Collection<String> actionRequestCodes) throws EdenUserNotFoundException(Code)



setRuleDAO
public void setRuleDAO(RuleDAO ruleDAO)(Code)



setRuleResponsibilityDAO
public void setRuleResponsibilityDAO(RuleResponsibilityDAO ruleResponsibilityDAO)(Code)



validate
public void validate(RuleBaseValues ruleBaseValues, List errors) throws EdenUserNotFoundException(Code)



validate2
public void validate2(RuleBaseValues ruleBaseValues, RuleDelegation ruleDelegation, List errors) throws EdenUserNotFoundException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.