|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.rule.web.WebRuleUtils
public class WebRuleUtils
Some utilities which are utilized by the RuleAction
.
Field Summary | |
---|---|
static String |
DOCUMENT_TYPE_NAME_PARAM
|
private static String |
ID_SEPARATOR
|
static String |
RESPONSIBILITY_ID_PARAM
|
private static String |
ROLES_MAINTENANCE_SECTION_ID
|
private static String |
RULE_ATTRIBUTES_SECTION_ID
|
private static String |
RULE_ATTRIBUTES_SECTION_TITLE
|
static String |
RULE_TEMPLATE_ID_PARAM
|
static String |
RULE_TEMPLATE_NAME_PARAM
|
Constructor Summary | |
---|---|
WebRuleUtils()
|
Method Summary | |
---|---|
static void |
clearKeysForCopy(RuleBaseValues rule)
|
static void |
clearKeysForSave(RuleBaseValues rule)
Since editing of a Rule should actually result in a rule with a new ID and new entries in the rule and rule responsibility tables, we need to clear out the primary keys of the rule and related objects. |
static void |
clearKeysForSave(RuleDelegation ruleDelegation)
|
private static void |
clearResponsibilityKeys(RuleResponsibility responsibility)
|
static void |
copyResponsibility(RuleResponsibility source,
RuleResponsibility target)
|
static WebRuleBaseValues |
copyRuleOntoExistingDocument(WebRuleBaseValues rule)
Copies the existing rule onto the current document. |
static WebRuleBaseValues |
copyToNewRule(WebRuleBaseValues webRuleBaseValues)
Makes a copy of the rule and clears the document id on the rule and any of its delegates. |
static List |
customizeSections(RuleBaseValues rule,
List<Section> sections,
boolean delegateRule)
|
static void |
establishDefaultRuleValues(RuleBaseValues rule)
|
static Map<String,String> |
getFieldMapForRuleTemplateAttribute(RuleBaseValues rule,
RuleTemplateAttribute ruleTemplateAttribute)
Based on original logic implemented in Rule system. |
static List<Row> |
getRuleTemplateRows(RuleBaseValues rule,
boolean delegateRule)
|
private static boolean |
hasRoles(RuleBaseValues rule)
|
private static void |
initializeRuleAfterNew(RuleBaseValues rule,
RuleTemplate ruleTemplate,
String documentTypeName)
|
static void |
populateForCopyOrEdit(RuleBaseValues oldRule,
RuleBaseValues newRule)
|
static void |
populateRuleMaintenanceFields(RuleBaseValues rule)
This method populates fields on RuleBaseValues which are used only for maintenance purposes. |
static void |
processRuleForCopy(String documentNumber,
RuleBaseValues oldRule,
RuleBaseValues newRule)
|
static void |
processRuleForDelegationSave(RuleDelegation ruleDelegation)
|
static List<Row> |
transformAndPopulateAttributeRows(List<Row> attributeRows,
RuleTemplateAttribute ruleTemplateAttribute,
RuleBaseValues rule,
Map<String,String> fieldNameMap,
boolean delegateRule)
Processes the Fields on the various attributes Rows to assign an appropriate field name to them so that the field name rendered in the maintenance HTML will properly assign the value to RuleBaseValues.fieldValues. |
static void |
transformFieldConversions(List<Row> rows,
Map<String,String> fieldNameMap)
|
static void |
translateFieldValuesForSave(RuleBaseValues rule)
|
static void |
translateResponsibilitiesForLoad(RuleBaseValues rule)
|
static void |
translateResponsibilitiesForSave(RuleBaseValues rule)
|
static void |
translateRuleExtensionsForLoad(RuleBaseValues rule)
|
static void |
validateRuleAndResponsibility(RuleDelegation oldRuleDelegation,
RuleDelegation newRuleDelegation,
Map<String,String[]> parameters)
|
static void |
validateRuleTemplateAndDocumentType(RuleBaseValues oldRule,
RuleBaseValues newRule,
Map<String,String[]> parameters)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String RULE_TEMPLATE_ID_PARAM
public static final String RULE_TEMPLATE_NAME_PARAM
public static final String DOCUMENT_TYPE_NAME_PARAM
public static final String RESPONSIBILITY_ID_PARAM
private static final String ID_SEPARATOR
private static final String RULE_ATTRIBUTES_SECTION_ID
private static final String RULE_ATTRIBUTES_SECTION_TITLE
private static final String ROLES_MAINTENANCE_SECTION_ID
Constructor Detail |
---|
public WebRuleUtils()
Method Detail |
---|
public static WebRuleBaseValues copyRuleOntoExistingDocument(WebRuleBaseValues rule) throws Exception
Exception
public static WebRuleBaseValues copyToNewRule(WebRuleBaseValues webRuleBaseValues) throws Exception
webRuleBaseValues
-
Exception
public static void validateRuleTemplateAndDocumentType(RuleBaseValues oldRule, RuleBaseValues newRule, Map<String,String[]> parameters)
private static void initializeRuleAfterNew(RuleBaseValues rule, RuleTemplate ruleTemplate, String documentTypeName)
public static void validateRuleAndResponsibility(RuleDelegation oldRuleDelegation, RuleDelegation newRuleDelegation, Map<String,String[]> parameters)
public static void establishDefaultRuleValues(RuleBaseValues rule)
public static List customizeSections(RuleBaseValues rule, List<Section> sections, boolean delegateRule)
public static List<Row> getRuleTemplateRows(RuleBaseValues rule, boolean delegateRule)
public static void transformFieldConversions(List<Row> rows, Map<String,String> fieldNameMap)
private static boolean hasRoles(RuleBaseValues rule)
public static List<Row> transformAndPopulateAttributeRows(List<Row> attributeRows, RuleTemplateAttribute ruleTemplateAttribute, RuleBaseValues rule, Map<String,String> fieldNameMap, boolean delegateRule)
public static void clearKeysForSave(RuleBaseValues rule)
public static void clearKeysForSave(RuleDelegation ruleDelegation)
public static void translateResponsibilitiesForSave(RuleBaseValues rule)
public static void translateFieldValuesForSave(RuleBaseValues rule)
public static Map<String,String> getFieldMapForRuleTemplateAttribute(RuleBaseValues rule, RuleTemplateAttribute ruleTemplateAttribute)
public static void processRuleForDelegationSave(RuleDelegation ruleDelegation)
public static void populateForCopyOrEdit(RuleBaseValues oldRule, RuleBaseValues newRule)
public static void populateRuleMaintenanceFields(RuleBaseValues rule)
public static void translateResponsibilitiesForLoad(RuleBaseValues rule)
public static void copyResponsibility(RuleResponsibility source, RuleResponsibility target)
public static void translateRuleExtensionsForLoad(RuleBaseValues rule)
public static void processRuleForCopy(String documentNumber, RuleBaseValues oldRule, RuleBaseValues newRule)
public static void clearKeysForCopy(RuleBaseValues rule)
private static void clearResponsibilityKeys(RuleResponsibility responsibility)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |