Copyright 2005-2013 The Kuali Foundation
Licensed under the Educational Community License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This class is the maintainable implementation for Routing Rules
in KEW (represented by the
- Kuali Rice Team (email@example.com)
Override the getSections method on this maintainable so that the Section Containing the various Rule Attributes
can be dynamically generated based on the RuleTemplate which is selected.
On creation of a new rule document, we must validate that a rule template and document type are set.
This is a hack to get around the fact that when a document is first created, this value is
true which causes issues if you want to be able to initialize fields on the document using
request parameters. See SectionBridge.toSection for the "if" block where it populates
Field.propertyValue to see why this causes problems
A complete override of the implementation for saving a Rule
Returns the new RuleBaseValues business object.
Returns the old RuleBaseValues business object.
Returns the RuleBaseValues business object associated with this Maintainable.
Overridden implementation of maintenance locks. The default locking for Routing Rules
is based on previous version (can't route more than one rule based off the same
previous verison). However, for the first version of a rule, the previous version id
will be null.
So for a new Route Rule maintenance document we don't want any locks generated.
TODO can we just let the locking key be the primary key? (ruleBaseValuesId)
This overridden method ...
- See also:
- See also:
org.kuali.rice.krad.maintenance.KualiMaintainableImpl#setNewCollectionLineDefaultValues(java.lang.String , org.kuali.rice.krad.bo.PersistableBusinessObject )