本文整理汇总了Java中org.kuali.rice.kew.rule.RuleResponsibilityBo.setId方法的典型用法代码示例。如果您正苦于以下问题:Java RuleResponsibilityBo.setId方法的具体用法?Java RuleResponsibilityBo.setId怎么用?Java RuleResponsibilityBo.setId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.kew.rule.RuleResponsibilityBo
的用法示例。
在下文中一共展示了RuleResponsibilityBo.setId方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: clearResponsibilityKeys
import org.kuali.rice.kew.rule.RuleResponsibilityBo; //导入方法依赖的package包/类
private static void clearResponsibilityKeys(RuleResponsibilityBo responsibility) {
responsibility.setResponsibilityId(null);
responsibility.setId(null);
responsibility.setRuleBaseValuesId(null);
}
示例2: prepareHiddenDelegationsForRoute
import org.kuali.rice.kew.rule.RuleResponsibilityBo; //导入方法依赖的package包/类
public void prepareHiddenDelegationsForRoute() {
if (showDelegations) {
return;
}
fetchDelegations();
for (Iterator iter = getDelegationRules().iterator(); iter.hasNext();) {
RuleDelegationBo delegation = (RuleDelegationBo) iter.next();
delegation.setDelegateRuleId(null);
delegation.setVersionNumber(null);
delegation.setRuleDelegationId(null);
//delegation.setRuleResponsibility(this);
delegation.setResponsibilityId(null);
RuleBaseValues rule = delegation.getDelegationRule();
rule.setVersionNumber(null);
rule.setPreviousRuleId(rule.getId());
rule.setDocumentId(null);
rule.setId(null);
for (Iterator iterator = rule.getRuleResponsibilities().iterator(); iterator.hasNext();) {
RuleResponsibilityBo responsibility = (RuleResponsibilityBo) iterator.next();
responsibility.setVersionNumber(null);
responsibility.setRuleBaseValuesId(null);
responsibility.setRuleBaseValues(rule);
responsibility.setId(null);
}
for (Iterator iterator = rule.getRuleExtensions().iterator(); iterator.hasNext();) {
RuleExtensionBo extension = (RuleExtensionBo) iterator.next();
extension.setVersionNumber(null);
extension.setRuleBaseValues(rule);
extension.setRuleBaseValuesId(null);
extension.setRuleExtensionId(null);
for (Iterator iter2 = extension.getExtensionValues().iterator(); iter2.hasNext();) {
RuleExtensionValue value = (RuleExtensionValue) iter2.next();
value.setExtension(extension);
value.setLockVerNbr(null);
value.getExtension().setRuleExtensionId(null);
value.setRuleExtensionValueId(null);
}
}
}
}
示例3: createNewRuleVersion
import org.kuali.rice.kew.rule.RuleResponsibilityBo; //导入方法依赖的package包/类
protected RuleBaseValues createNewRuleVersion(RuleBaseValues existingRule, String documentId) throws Exception {
RuleBaseValues rule = new RuleBaseValues();
PropertyUtils.copyProperties(rule, existingRule);
rule.setPreviousVersion(existingRule);
rule.setPreviousRuleId(existingRule.getId());
rule.setId(null);
rule.setActivationDate(null);
rule.setDeactivationDate(null);
rule.setVersionNumber(null);
rule.setDocumentId(documentId);
// TODO: FIXME: need to copy the rule expression here too?
rule.setRuleResponsibilities(new ArrayList<RuleResponsibilityBo>());
for (RuleResponsibilityBo existingResponsibility : existingRule.getRuleResponsibilities()) {
RuleResponsibilityBo responsibility = new RuleResponsibilityBo();
PropertyUtils.copyProperties(responsibility, existingResponsibility);
responsibility.setRuleBaseValues(rule);
responsibility.setRuleBaseValuesId(null);
responsibility.setId(null);
responsibility.setVersionNumber(null);
rule.getRuleResponsibilities().add(responsibility);
// responsibility.setDelegationRules(new ArrayList());
// for (RuleDelegation existingDelegation : (List<RuleDelegation>)existingResponsibility.getDelegationRules()) {
// RuleDelegation delegation = new RuleDelegation();
// PropertyUtils.copyProperties(delegation, existingDelegation);
// delegation.setRuleDelegationId(null);
// delegation.setRuleResponsibility(responsibility);
// delegation.setRuleResponsibilityId(null);
// delegation.setVersionNumber(0L);
// // it's very important that we do NOT recurse down into the delegation rules and reversion those,
// // this is important to how rule versioning works
// responsibility.getDelegationRules().add(delegation);
// }
}
rule.setRuleExtensions(new ArrayList());
for (RuleExtensionBo existingExtension : existingRule.getRuleExtensions()) {
RuleExtensionBo extension = new RuleExtensionBo();
PropertyUtils.copyProperties(extension, existingExtension);
extension.setVersionNumber(new Long(0));
extension.setRuleBaseValues(rule);
extension.setRuleBaseValuesId(null);
extension.setRuleExtensionId(null);
rule.getRuleExtensions().add(extension);
extension.setExtensionValues(new ArrayList<RuleExtensionValue>());
for (RuleExtensionValue existingExtensionValue : extension.getExtensionValues()) {
RuleExtensionValue extensionValue = new RuleExtensionValue();
PropertyUtils.copyProperties(extensionValue, existingExtensionValue);
extensionValue.setExtension(extension);
extensionValue.getExtension().setRuleExtensionId(null);
extensionValue.setLockVerNbr(0);
extensionValue.setRuleExtensionValueId(null);
extension.getExtensionValues().add(extensionValue);
}
}
return rule;
}
示例4: prepareHiddenDelegationsForRoute
import org.kuali.rice.kew.rule.RuleResponsibilityBo; //导入方法依赖的package包/类
public void prepareHiddenDelegationsForRoute() {
if (showDelegations) {
return;
}
fetchDelegations();
for (Iterator iter = getDelegationRules().iterator(); iter.hasNext();) {
RuleDelegationBo delegation = (RuleDelegationBo) iter.next();
delegation.setDelegateRuleId(null);
delegation.setVersionNumber(null);
delegation.setRuleDelegationId(null);
//delegation.setRuleResponsibility(this);
delegation.setResponsibilityId(null);
RuleBaseValues rule = delegation.getDelegationRule();
rule.setVersionNumber(null);
rule.setPreviousRuleId(rule.getId());
rule.setDocumentId(null);
rule.setId(null);
for (Iterator iterator = rule.getRuleResponsibilities().iterator(); iterator.hasNext();) {
RuleResponsibilityBo responsibility = (RuleResponsibilityBo) iterator.next();
responsibility.setVersionNumber(null);
responsibility.setRuleBaseValuesId(null);
responsibility.setRuleBaseValues(rule);
responsibility.setId(null);
}
for (Iterator iterator = rule.getRuleExtensions().iterator(); iterator.hasNext();) {
RuleExtensionBo extension = (RuleExtensionBo) iterator.next();
extension.setVersionNumber(null);
extension.setRuleBaseValues(rule);
extension.setRuleBaseValuesId(null);
extension.setRuleExtensionId(null);
for (Iterator iter2 = extension.getExtensionValues().iterator(); iter2.hasNext();) {
RuleExtensionValue value = (RuleExtensionValue) iter2.next();
value.setExtension(extension);
value.setLockVerNbr(null);
value.setRuleExtensionId(null);
value.setRuleExtensionValueId(null);
}
}
}
}
示例5: findByRuleResponsibilityId
import org.kuali.rice.kew.rule.RuleResponsibilityBo; //导入方法依赖的package包/类
public RuleResponsibilityBo findByRuleResponsibilityId(String ruleResponsibilityId) {
RuleResponsibilityBo ruleResponsibility = new RuleResponsibilityBo();
ruleResponsibility.setId(ruleResponsibilityId);
return (RuleResponsibilityBo) this.getPersistenceBrokerTemplate().getObjectByQuery(new QueryByCriteria(ruleResponsibility));
}
示例6: createNewRuleVersion
import org.kuali.rice.kew.rule.RuleResponsibilityBo; //导入方法依赖的package包/类
protected RuleBaseValues createNewRuleVersion(RuleBaseValues existingRule, String documentId) throws Exception {
RuleBaseValues rule = new RuleBaseValues();
PropertyUtils.copyProperties(rule, existingRule);
rule.setPreviousVersion(existingRule);
rule.setPreviousRuleId(existingRule.getId());
rule.setId(null);
rule.setActivationDate(null);
rule.setDeactivationDate(null);
rule.setVersionNumber(0L);
rule.setDocumentId(documentId);
// TODO: FIXME: need to copy the rule expression here too?
rule.setRuleResponsibilities(new ArrayList());
for (RuleResponsibilityBo existingResponsibility : (List<RuleResponsibilityBo>)existingRule.getRuleResponsibilities()) {
RuleResponsibilityBo responsibility = new RuleResponsibilityBo();
PropertyUtils.copyProperties(responsibility, existingResponsibility);
responsibility.setRuleBaseValues(rule);
responsibility.setRuleBaseValuesId(null);
responsibility.setId(null);
responsibility.setVersionNumber(0L);
rule.getRuleResponsibilities().add(responsibility);
// responsibility.setDelegationRules(new ArrayList());
// for (RuleDelegation existingDelegation : (List<RuleDelegation>)existingResponsibility.getDelegationRules()) {
// RuleDelegation delegation = new RuleDelegation();
// PropertyUtils.copyProperties(delegation, existingDelegation);
// delegation.setRuleDelegationId(null);
// delegation.setRuleResponsibility(responsibility);
// delegation.setRuleResponsibilityId(null);
// delegation.setVersionNumber(0L);
// // it's very important that we do NOT recurse down into the delegation rules and reversion those,
// // this is important to how rule versioning works
// responsibility.getDelegationRules().add(delegation);
// }
}
rule.setRuleExtensions(new ArrayList());
for (RuleExtensionBo existingExtension : (List<RuleExtensionBo>)existingRule.getRuleExtensions()) {
RuleExtensionBo extension = new RuleExtensionBo();
PropertyUtils.copyProperties(extension, existingExtension);
extension.setVersionNumber(new Long(0));
extension.setRuleBaseValues(rule);
extension.setRuleBaseValuesId(null);
extension.setRuleExtensionId(null);
rule.getRuleExtensions().add(extension);
extension.setExtensionValues(new ArrayList<RuleExtensionValue>());
for (RuleExtensionValue existingExtensionValue : extension.getExtensionValues()) {
RuleExtensionValue extensionValue = new RuleExtensionValue();
PropertyUtils.copyProperties(extensionValue, existingExtensionValue);
extensionValue.setExtension(extension);
extensionValue.setRuleExtensionId(null);
extensionValue.setLockVerNbr(0);
extensionValue.setRuleExtensionValueId(null);
extension.getExtensionValues().add(extensionValue);
}
}
return rule;
}