org.kuali.rice.kew.rule.dao.impl
Class RuleDAOJpa

java.lang.Object
  extended by org.kuali.rice.kew.rule.dao.impl.RuleDAOJpa
All Implemented Interfaces:
RuleDAO

public class RuleDAOJpa
extends Object
implements RuleDAO


Constructor Summary
RuleDAOJpa()
           
 
Method Summary
 void delete(String ruleBaseValuesId)
           
 List<RuleBaseValues> fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateId, List documentTypes)
           
 List<RuleBaseValues> fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateId, List documentTypes, Timestamp effectiveDate)
           
 List<RuleBaseValues> fetchAllRules(boolean currentRules)
           
 List<RuleBaseValues> findByDocumentId(String documentId)
           
 List<RuleBaseValues> findByPreviousRuleId(String previousRuleId)
           
 RuleBaseValues findDefaultRuleByRuleTemplateId(String ruleTemplateId)
           
 List findOldDelegations(RuleBaseValues oldRule, RuleBaseValues newRule)
           
 String findResponsibilityIdForRule(String ruleName, String ruleResponsibilityName, String ruleResponsibilityType)
           
 RuleBaseValues findRuleBaseValuesById(String ruleBaseValuesId)
           
 RuleBaseValues findRuleBaseValuesByName(String name)
           
 List<RuleBaseValues> findRuleBaseValuesByResponsibilityReviewer(String reviewerName, String type)
           
 List<RuleBaseValues> findRuleBaseValuesByResponsibilityReviewerTemplateDoc(String ruleTemplateName, String documentType, String reviewerName, String type)
           
 RuleResponsibilityBo findRuleResponsibility(String responsibilityId)
           
 List<Predicate> generateFromToDatePredicate(Date date)
           
 DataObjectService getDataObjectService()
           
 javax.persistence.EntityManager getEntityManager()
           
 RuleBaseValues getParentRule(String ruleBaseValuesId)
           
 void retrieveAllReferences(RuleBaseValues rule)
           
 RuleBaseValues save(RuleBaseValues ruleBaseValues)
           
 List<RuleBaseValues> search(String docTypeName, String ruleTemplateId, String ruleDescription, Collection<String> workgroupIds, String workflowId, Boolean delegateRule, Boolean activeInd, Map extensionValues, Collection actionRequestCodes)
           
 List<RuleBaseValues> search(String docTypeName, String ruleId, String ruleTemplateId, String ruleDescription, String groupId, String principalId, Boolean delegateRule, Boolean activeInd, Map extensionValues, String workflowIdDirective)
           
 void setDataObjectService(DataObjectService dataObjectService)
           
 void setEntityManager(javax.persistence.EntityManager entityManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleDAOJpa

public RuleDAOJpa()
Method Detail

save

public RuleBaseValues save(RuleBaseValues ruleBaseValues)
Specified by:
save in interface RuleDAO

fetchAllCurrentRulesForTemplateDocCombination

public List<RuleBaseValues> fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateId,
                                                                          List documentTypes)
Specified by:
fetchAllCurrentRulesForTemplateDocCombination in interface RuleDAO

fetchAllCurrentRulesForTemplateDocCombination

public List<RuleBaseValues> fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateId,
                                                                          List documentTypes,
                                                                          Timestamp effectiveDate)
Specified by:
fetchAllCurrentRulesForTemplateDocCombination in interface RuleDAO

generateFromToDatePredicate

public List<Predicate> generateFromToDatePredicate(Date date)

fetchAllRules

public List<RuleBaseValues> fetchAllRules(boolean currentRules)
Specified by:
fetchAllRules in interface RuleDAO

delete

public void delete(String ruleBaseValuesId)
Specified by:
delete in interface RuleDAO

findByDocumentId

public List<RuleBaseValues> findByDocumentId(String documentId)
Specified by:
findByDocumentId in interface RuleDAO

findRuleBaseValuesByName

public RuleBaseValues findRuleBaseValuesByName(String name)
Specified by:
findRuleBaseValuesByName in interface RuleDAO

findRuleBaseValuesById

public RuleBaseValues findRuleBaseValuesById(String ruleBaseValuesId)
Specified by:
findRuleBaseValuesById in interface RuleDAO

findRuleBaseValuesByResponsibilityReviewer

public List<RuleBaseValues> findRuleBaseValuesByResponsibilityReviewer(String reviewerName,
                                                                       String type)
Specified by:
findRuleBaseValuesByResponsibilityReviewer in interface RuleDAO

findRuleBaseValuesByResponsibilityReviewerTemplateDoc

public List<RuleBaseValues> findRuleBaseValuesByResponsibilityReviewerTemplateDoc(String ruleTemplateName,
                                                                                  String documentType,
                                                                                  String reviewerName,
                                                                                  String type)
Specified by:
findRuleBaseValuesByResponsibilityReviewerTemplateDoc in interface RuleDAO

findRuleResponsibility

public RuleResponsibilityBo findRuleResponsibility(String responsibilityId)
Specified by:
findRuleResponsibility in interface RuleDAO

search

public List<RuleBaseValues> search(String docTypeName,
                                   String ruleId,
                                   String ruleTemplateId,
                                   String ruleDescription,
                                   String groupId,
                                   String principalId,
                                   Boolean delegateRule,
                                   Boolean activeInd,
                                   Map extensionValues,
                                   String workflowIdDirective)
Specified by:
search in interface RuleDAO

search

public List<RuleBaseValues> search(String docTypeName,
                                   String ruleTemplateId,
                                   String ruleDescription,
                                   Collection<String> workgroupIds,
                                   String workflowId,
                                   Boolean delegateRule,
                                   Boolean activeInd,
                                   Map extensionValues,
                                   Collection actionRequestCodes)
Specified by:
search in interface RuleDAO

findByPreviousRuleId

public List<RuleBaseValues> findByPreviousRuleId(String previousRuleId)
Specified by:
findByPreviousRuleId in interface RuleDAO

findDefaultRuleByRuleTemplateId

public RuleBaseValues findDefaultRuleByRuleTemplateId(String ruleTemplateId)
Specified by:
findDefaultRuleByRuleTemplateId in interface RuleDAO

retrieveAllReferences

public void retrieveAllReferences(RuleBaseValues rule)
Specified by:
retrieveAllReferences in interface RuleDAO

getParentRule

public RuleBaseValues getParentRule(String ruleBaseValuesId)
Specified by:
getParentRule in interface RuleDAO

findOldDelegations

public List findOldDelegations(RuleBaseValues oldRule,
                               RuleBaseValues newRule)
Specified by:
findOldDelegations in interface RuleDAO

findResponsibilityIdForRule

public String findResponsibilityIdForRule(String ruleName,
                                          String ruleResponsibilityName,
                                          String ruleResponsibilityType)
Specified by:
findResponsibilityIdForRule in interface RuleDAO

getEntityManager

public javax.persistence.EntityManager getEntityManager()

setEntityManager

public void setEntityManager(javax.persistence.EntityManager entityManager)

getDataObjectService

public DataObjectService getDataObjectService()

setDataObjectService

public void setDataObjectService(DataObjectService dataObjectService)


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.