Clover Coverage Report - Implementation 2.0.0-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
../../../../../img/srcFileCovDistChart0.png 0% of files have more coverage
179   648   123   2.08
68   495   0.69   86
86     1.43  
1    
 
  RuleBaseValues       Line # 55 179 0% 123 333 0% 0.0
 
No Tests
 
1    /*
2    * Copyright 2005-2007 The Kuali Foundation
3    *
4    *
5    * Licensed under the Educational Community License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    *
9    * http://www.opensource.org/licenses/ecl2.php
10    *
11    * Unless required by applicable law or agreed to in writing, software
12    * distributed under the License is distributed on an "AS IS" BASIS,
13    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    * See the License for the specific language governing permissions and
15    * limitations under the License.
16    */
17    package org.kuali.rice.kew.rule;
18   
19    import org.hibernate.annotations.Fetch;
20    import org.hibernate.annotations.FetchMode;
21    import org.hibernate.annotations.GenericGenerator;
22    import org.hibernate.annotations.Parameter;
23    import org.kuali.rice.core.util.RiceConstants;
24    import org.kuali.rice.kew.doctype.bo.DocumentType;
25    import org.kuali.rice.kew.lookupable.MyColumns;
26    import org.kuali.rice.kew.routeheader.DocumentContent;
27    import org.kuali.rice.kew.rule.bo.RuleAttribute;
28    import org.kuali.rice.kew.rule.bo.RuleTemplate;
29    import org.kuali.rice.kew.rule.bo.RuleTemplateAttribute;
30    import org.kuali.rice.kew.rule.service.RuleService;
31    import org.kuali.rice.kew.rule.xmlrouting.GenericXMLRuleAttribute;
32    import org.kuali.rice.kew.service.KEWServiceLocator;
33    import org.kuali.rice.kew.util.CodeTranslator;
34    import org.kuali.rice.kew.util.KEWConstants;
35    import org.kuali.rice.kim.bo.impl.GroupImpl;
36    import org.kuali.rice.kim.bo.impl.PersonImpl;
37    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
38    import org.kuali.rice.kns.web.ui.Field;
39    import org.kuali.rice.kns.web.ui.Row;
40    import org.springframework.util.AutoPopulatingList;
41   
42    import javax.persistence.*;
43    import java.sql.Timestamp;
44    import java.util.*;
45   
46   
47    /**
48    * A model bean for a Rule within the KEW rules engine.
49    *
50    * @author Kuali Rice Team (rice.collab@kuali.org)
51    */
52    @Entity
53    @Table(name="KREW_RULE_T")
54    //@Sequence(name="KREW_RTE_TMPL_S", property="ruleBaseValuesId")
 
55    public class RuleBaseValues extends PersistableBusinessObjectBase {
56   
57    private static final long serialVersionUID = 6137765574728530156L;
58    @Id
59    @GeneratedValue(generator="KREW_RTE_TMPL_S")
60    @GenericGenerator(name="KREW_RTE_TMPL_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={
61    @Parameter(name="sequence_name",value="KREW_RTE_TMPL_S"),
62    @Parameter(name="value_column",value="id")
63    })
64    @Column(name="RULE_ID")
65    private Long ruleBaseValuesId;
66    /**
67    * Unique Rule name
68    */
69    @Column(name="NM")
70    private String name;
71    @Column(name="RULE_TMPL_ID", insertable=false, updatable=false)
72    private Long ruleTemplateId;
73    @Column(name="PREV_RULE_VER_NBR")
74    private Long previousVersionId;
75    @Column(name="ACTV_IND")
76    private Boolean activeInd;
77    @Column(name="RULE_BASE_VAL_DESC")
78    private String description;
79    @Column(name="DOC_TYP_NM")
80    private String docTypeName;
81    @Column(name="DOC_HDR_ID")
82    private Long routeHeaderId;
83    @Column(name="FRM_DT")
84    private Timestamp fromDate;
85    @Column(name="TO_DT")
86    private Timestamp toDate;
87    @Column(name="DACTVN_DT")
88    private Timestamp deactivationDate;
89    @Column(name="CUR_IND")
90    private Boolean currentInd;
91    @Column(name="RULE_VER_NBR")
92    private Integer versionNbr;
93    @Column(name="FRC_ACTN")
94    private Boolean forceAction;
95    @Fetch(value = FetchMode.SELECT)
96    @OneToMany(fetch=FetchType.EAGER,cascade={CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE},mappedBy="ruleBaseValues")
97    private List<RuleResponsibility> responsibilities;
98    @Fetch(value = FetchMode.SELECT)
99    @OneToMany(fetch=FetchType.EAGER,cascade={CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE},mappedBy="ruleBaseValues")
100    private List<RuleExtension> ruleExtensions;
101    @ManyToOne(fetch=FetchType.EAGER)
102    @JoinColumn(name="RULE_TMPL_ID")
103    private RuleTemplate ruleTemplate;
104    @OneToOne(fetch=FetchType.EAGER, cascade={CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE})
105    @JoinColumn(name="RULE_EXPR_ID")
106    private RuleExpressionDef ruleExpressionDef;
107    @Transient
108    private RuleBaseValues previousVersion;
109    @Column(name="ACTVN_DT")
110    private Timestamp activationDate;
111    @Column(name="DLGN_IND")
112    private Boolean delegateRule = Boolean.FALSE;
113    /**
114    * Indicator that signifies that this rule is a defaults/template rule which contains
115    * template-defined rule defaults for other rules which use the associated template
116    */
117    @Column(name="TMPL_RULE_IND")
118    private Boolean templateRuleInd = Boolean.FALSE;
119   
120    // required to be lookupable
121    @Transient
122    private String returnUrl;
123    @Transient
124    private String destinationUrl;
125    @Transient
126    private MyColumns myColumns;
127    @Transient
128    private List<PersonRuleResponsibility> personResponsibilities;
129    @Transient
130    private List<GroupRuleResponsibility> groupResponsibilities;
131    @Transient
132    private List<RoleRuleResponsibility> roleResponsibilities;
133    @Transient
134    private Map<String, String> fieldValues;
135    @Transient
136    private String groupReviewerName;
137    @Transient
138    private String groupReviewerNamespace;
139    @Transient
140    private String personReviewer;
141    @Transient
142    private String personReviewerType;
143   
 
144  0 toggle public RuleBaseValues() {
145  0 responsibilities = new ArrayList<RuleResponsibility>();
146  0 ruleExtensions = new ArrayList<RuleExtension>();
147  0 personResponsibilities = new AutoPopulatingList(PersonRuleResponsibility.class);
148  0 groupResponsibilities = new AutoPopulatingList(GroupRuleResponsibility.class);
149  0 roleResponsibilities = new AutoPopulatingList(RoleRuleResponsibility.class);
150  0 fieldValues = new HashMap<String, String>();
151    }
152   
153    /**
154    * @return the rule expression definition for this rule, if defined
155    */
 
156  0 toggle public RuleExpressionDef getRuleExpressionDef() {
157  0 return ruleExpressionDef;
158    }
159   
160    /**
161    * @param ruleExpressionDef the rule expression definition to set for this rule
162    */
 
163  0 toggle public void setRuleExpressionDef(RuleExpressionDef ruleExpressionDef) {
164  0 this.ruleExpressionDef = ruleExpressionDef;
165    }
166   
 
167  0 toggle public Map getRuleExtensionValueLabels() {
168  0 Map extensionLabels = new HashMap();
169  0 for (Iterator iterator2 = getRuleExtensions().iterator(); iterator2.hasNext();) {
170  0 RuleExtension ruleExtension = (RuleExtension) iterator2.next();
171  0 if (!ruleExtension.getRuleTemplateAttribute().isWorkflowAttribute()) {
172  0 continue;
173    }
174  0 WorkflowAttribute workflowAttribute = ruleExtension.getRuleTemplateAttribute().getWorkflowAttribute();
175   
176  0 RuleAttribute ruleAttribute = ruleExtension.getRuleTemplateAttribute().getRuleAttribute();
177  0 if (ruleAttribute.getType().equals(KEWConstants.RULE_XML_ATTRIBUTE_TYPE)) {
178  0 ((GenericXMLRuleAttribute) workflowAttribute).setRuleAttribute(ruleAttribute);
179    }
180  0 for (Iterator iterator = workflowAttribute.getRuleRows().iterator(); iterator.hasNext();) {
181  0 Row row = (Row) iterator.next();
182  0 for (Iterator iterator3 = row.getFields().iterator(); iterator3.hasNext();) {
183  0 Field field = (Field) iterator3.next();
184  0 if (ruleAttribute.getType().equals(KEWConstants.RULE_XML_ATTRIBUTE_TYPE)) {
185  0 extensionLabels.put(field.getPropertyName(), field.getFieldLabel());
186    //} else if (!org.apache.commons.lang.StringUtils.isEmpty(field.getDefaultLookupableName())) {
187    // extensionLabels.put(field.getDefaultLookupableName(), field.getFieldLabel());
188    } else {
189  0 extensionLabels.put(field.getPropertyName(), field.getFieldLabel());
190    }
191    }
192    }
193    }
194  0 return extensionLabels;
195    }
196   
 
197  0 toggle public String getRuleTemplateName() {
198  0 if (ruleTemplate != null) {
199  0 return ruleTemplate.getName();
200    }
201  0 return null;
202    }
203   
 
204  0 toggle public RuleBaseValues getPreviousVersion() {
205  0 if (previousVersion == null && previousVersionId != null) {
206  0 RuleService ruleService = (RuleService) KEWServiceLocator.getService(KEWServiceLocator.RULE_SERVICE);
207  0 return ruleService.findRuleBaseValuesById(previousVersionId);
208    }
209  0 return previousVersion;
210    }
211   
 
212  0 toggle public void setPreviousVersion(RuleBaseValues previousVersion) {
213  0 this.previousVersion = previousVersion;
214    }
215   
 
216  0 toggle public RuleResponsibility getResponsibility(int index) {
217  0 while (getResponsibilities().size() <= index) {
218  0 RuleResponsibility ruleResponsibility = new RuleResponsibility();
219  0 ruleResponsibility.setRuleBaseValues(this);
220  0 getResponsibilities().add(ruleResponsibility);
221    }
222  0 return (RuleResponsibility) getResponsibilities().get(index);
223    }
224   
 
225  0 toggle public RuleExtension getRuleExtension(int index) {
226  0 while (getRuleExtensions().size() <= index) {
227  0 getRuleExtensions().add(new RuleExtension());
228    }
229  0 return (RuleExtension) getRuleExtensions().get(index);
230    }
231   
 
232  0 toggle public RuleExtensionValue getRuleExtensionValue(String key) {
233  0 for (Iterator iter = getRuleExtensions().iterator(); iter.hasNext();) {
234  0 RuleExtension ruleExtension = (RuleExtension) iter.next();
235  0 for (Iterator iterator = ruleExtension.getExtensionValues().iterator(); iterator.hasNext();) {
236  0 RuleExtensionValue ruleExtensionValue = (RuleExtensionValue) iterator.next();
237  0 if (ruleExtensionValue.getKey().equals(key)) {
238  0 return ruleExtensionValue;
239    }
240    }
241    }
242  0 return null;
243    }
244   
 
245  0 toggle public RuleExtensionValue getRuleExtensionValue(Long ruleTemplateAttributeId, String key) {
246  0 for (Iterator iter = getRuleExtensions().iterator(); iter.hasNext();) {
247  0 RuleExtension ruleExtension = (RuleExtension) iter.next();
248  0 if (ruleExtension.getRuleTemplateAttributeId().equals(ruleTemplateAttributeId)) {
249  0 for (Iterator iterator = ruleExtension.getExtensionValues().iterator(); iterator.hasNext();) {
250  0 RuleExtensionValue ruleExtensionValue = (RuleExtensionValue) iterator.next();
251  0 if (ruleExtensionValue.getKey().equals(key)) {
252  0 return ruleExtensionValue;
253    }
254    }
255    }
256    }
257  0 return null;
258    }
259   
 
260  0 toggle public Long getPreviousVersionId() {
261  0 return previousVersionId;
262    }
263   
 
264  0 toggle public void setPreviousVersionId(Long previousVersion) {
265  0 this.previousVersionId = previousVersion;
266    }
267   
 
268  0 toggle public void addRuleResponsibility(RuleResponsibility ruleResponsibility) {
269  0 addRuleResponsibility(ruleResponsibility, new Integer(getResponsibilities().size()));
270    }
271   
 
272  0 toggle public void addRuleResponsibility(RuleResponsibility ruleResponsibility, Integer counter) {
273  0 boolean alreadyAdded = false;
274  0 int location = 0;
275  0 if (counter != null) {
276  0 for (Iterator responsibilitiesIter = getResponsibilities().iterator(); responsibilitiesIter.hasNext();) {
277  0 RuleResponsibility ruleResponsibilityRow = (RuleResponsibility) responsibilitiesIter.next();
278  0 if (counter.intValue() == location) {
279  0 ruleResponsibilityRow.setPriority(ruleResponsibility.getPriority());
280  0 ruleResponsibilityRow.setActionRequestedCd(ruleResponsibility.getActionRequestedCd());
281  0 ruleResponsibilityRow.setVersionNumber(ruleResponsibility.getVersionNumber());
282  0 ruleResponsibilityRow.setRuleBaseValuesId(ruleResponsibility.getRuleBaseValuesId());
283  0 ruleResponsibilityRow.setRuleResponsibilityName(ruleResponsibility.getRuleResponsibilityName());
284  0 ruleResponsibilityRow.setRuleResponsibilityType(ruleResponsibility.getRuleResponsibilityType());
285    //ruleResponsibilityRow.setDelegationRules(ruleResponsibility.getDelegationRules());
286  0 ruleResponsibilityRow.setApprovePolicy(ruleResponsibility.getApprovePolicy());
287  0 alreadyAdded = true;
288    }
289  0 location++;
290    }
291    }
292  0 if (!alreadyAdded) {
293  0 getResponsibilities().add(ruleResponsibility);
294    }
295    }
296   
 
297  0 toggle public RuleTemplate getRuleTemplate() {
298  0 return ruleTemplate;
299    }
300   
 
301  0 toggle public void setRuleTemplate(RuleTemplate ruleTemplate) {
302  0 this.ruleTemplate = ruleTemplate;
303    }
304   
 
305  0 toggle public Long getRuleTemplateId() {
306  0 return ruleTemplateId;
307    }
308   
 
309  0 toggle public void setRuleTemplateId(Long ruleTemplateId) {
310  0 this.ruleTemplateId = ruleTemplateId;
311    }
312   
 
313  0 toggle public DocumentType getDocumentType() {
314  0 return KEWServiceLocator.getDocumentTypeService().findByName(getDocTypeName());
315    }
316   
 
317  0 toggle public String getDocTypeName() {
318  0 return docTypeName;
319    }
320   
 
321  0 toggle public void setDocTypeName(String docTypeName) {
322  0 this.docTypeName = docTypeName;
323    }
324   
 
325  0 toggle public List<RuleExtension> getRuleExtensions() {
326  0 return ruleExtensions;
327    }
328   
 
329  0 toggle public void setRuleExtensions(List<RuleExtension> ruleExtensions) {
330  0 this.ruleExtensions = ruleExtensions;
331    }
332   
 
333  0 toggle public List<RuleResponsibility> getResponsibilities() {
334  0 return responsibilities;
335    }
336   
 
337  0 toggle public void setResponsibilities(List<RuleResponsibility> responsibilities) {
338  0 this.responsibilities = responsibilities;
339    }
340   
 
341  0 toggle public RuleResponsibility getResponsibility(Long ruleResponsibilityKey) {
342  0 for (Iterator iterator = getResponsibilities().iterator(); iterator.hasNext();) {
343  0 RuleResponsibility responsibility = (RuleResponsibility) iterator.next();
344  0 if (responsibility.getRuleResponsibilityKey() != null
345    && responsibility.getRuleResponsibilityKey().equals(ruleResponsibilityKey)) {
346  0 return responsibility;
347    }
348    }
349  0 return null;
350    }
351   
 
352  0 toggle public void removeResponsibility(int index) {
353  0 getResponsibilities().remove(index);
354    }
355   
 
356  0 toggle public Boolean getActiveInd() {
357  0 return activeInd;
358    }
359   
 
360  0 toggle public void setActiveInd(Boolean activeInd) {
361  0 this.activeInd = activeInd;
362    }
363   
 
364  0 toggle public String getActiveIndDisplay() {
365  0 if (getActiveInd() == null) {
366  0 return KEWConstants.INACTIVE_LABEL_LOWER;
367    }
368  0 return CodeTranslator.getActiveIndicatorLabel(getActiveInd());
369    }
370   
 
371  0 toggle public Boolean getCurrentInd() {
372  0 return currentInd;
373    }
374   
 
375  0 toggle public void setCurrentInd(Boolean currentInd) {
376  0 this.currentInd = currentInd;
377    }
378   
 
379  0 toggle public Timestamp getFromDate() {
380  0 return fromDate;
381    }
382   
 
383  0 toggle public void setFromDate(Timestamp fromDate) {
384  0 this.fromDate = fromDate;
385    }
386   
 
387  0 toggle public String getDescription() {
388  0 return description;
389    }
390   
 
391  0 toggle public void setDescription(String description) {
392  0 this.description = description;
393    }
394   
 
395  0 toggle public Long getRuleBaseValuesId() {
396  0 return ruleBaseValuesId;
397    }
398   
 
399  0 toggle public void setRuleBaseValuesId(Long ruleBaseValuesId) {
400  0 this.ruleBaseValuesId = ruleBaseValuesId;
401    }
402   
 
403  0 toggle public Timestamp getToDate() {
404  0 return toDate;
405    }
406   
 
407  0 toggle public void setToDate(Timestamp toDate) {
408  0 this.toDate = toDate;
409    }
410   
 
411  0 toggle public Integer getVersionNbr() {
412  0 return versionNbr;
413    }
414   
 
415  0 toggle public void setVersionNbr(Integer versionNbr) {
416  0 this.versionNbr = versionNbr;
417    }
418   
 
419  0 toggle public String getReturnUrl() {
420  0 return returnUrl;
421    }
422   
 
423  0 toggle public void setReturnUrl(String returnUrl) {
424  0 this.returnUrl = returnUrl;
425    }
426   
 
427  0 toggle public String getFromDateString() {
428  0 if (this.fromDate != null) {
429  0 return RiceConstants.getDefaultDateFormat().format(this.fromDate);
430    }
431  0 return null;
432    }
433   
 
434  0 toggle public String getToDateString() {
435  0 if (this.toDate != null) {
436  0 return RiceConstants.getDefaultDateFormat().format(this.toDate);
437    }
438  0 return null;
439    }
440   
 
441  0 toggle public Boolean getForceAction() {
442  0 return forceAction;
443    }
444   
 
445  0 toggle public void setForceAction(Boolean forceAction) {
446  0 this.forceAction = forceAction;
447    }
448   
 
449  0 toggle public boolean isActive(Date date) {
450  0 boolean isAfterFromDate = getFromDate() == null || date.after(getFromDate());
451  0 boolean isBeforeToDate = getToDate() == null || date.before(getToDate());
452  0 return getActiveInd() && isAfterFromDate && isBeforeToDate;
453    }
454   
 
455  0 toggle public boolean isMatch(DocumentContent docContent) {
456  0 for (Iterator iter = getRuleTemplate().getActiveRuleTemplateAttributes().iterator(); iter.hasNext();) {
457  0 RuleTemplateAttribute ruleTemplateAttribute = (RuleTemplateAttribute) iter.next();
458  0 if (!ruleTemplateAttribute.isWorkflowAttribute()) {
459  0 continue;
460    }
461  0 WorkflowAttribute routingAttribute = (WorkflowAttribute) ruleTemplateAttribute.getWorkflowAttribute();
462   
463  0 RuleAttribute ruleAttribute = ruleTemplateAttribute.getRuleAttribute();
464  0 if (ruleAttribute.getType().equals(KEWConstants.RULE_XML_ATTRIBUTE_TYPE)) {
465  0 ((GenericXMLRuleAttribute) routingAttribute).setRuleAttribute(ruleAttribute);
466    }
467  0 String className = ruleAttribute.getClassName();
468  0 List<RuleExtension> editedRuleExtensions = new ArrayList<RuleExtension>();
469  0 for (Iterator iter2 = getRuleExtensions().iterator(); iter2.hasNext();) {
470  0 RuleExtension extension = (RuleExtension) iter2.next();
471  0 if (extension.getRuleTemplateAttribute().getRuleAttribute().getClassName().equals(className)) {
472  0 editedRuleExtensions.add(extension);
473    }
474    }
475  0 if (!routingAttribute.isMatch(docContent, editedRuleExtensions)) {
476  0 return false;
477    }
478    }
479  0 return true;
480    }
481   
 
482  0 toggle public RuleResponsibility findResponsibility(String roleName) {
483  0 for (Iterator iter = getResponsibilities().iterator(); iter.hasNext();) {
484  0 RuleResponsibility resp = (RuleResponsibility) iter.next();
485  0 if (KEWConstants.RULE_RESPONSIBILITY_ROLE_ID.equals(resp.getRuleResponsibilityType())
486    && roleName.equals(resp.getRuleResponsibilityName())) {
487  0 return resp;
488    }
489    }
490  0 return null;
491    }
492   
 
493  0 toggle public Long getRouteHeaderId() {
494  0 return routeHeaderId;
495    }
496   
 
497  0 toggle public void setRouteHeaderId(Long routeHeaderId) {
498  0 this.routeHeaderId = routeHeaderId;
499    }
500   
 
501  0 toggle public Boolean getDelegateRule() {
502  0 return delegateRule;
503    }
504   
 
505  0 toggle public void setDelegateRule(Boolean isDelegateRule) {
506  0 this.delegateRule = isDelegateRule;
507    }
508   
 
509  0 toggle public Timestamp getActivationDate() {
510  0 return activationDate;
511    }
512   
 
513  0 toggle public void setActivationDate(Timestamp activationDate) {
514  0 this.activationDate = activationDate;
515    }
516   
 
517  0 toggle public MyColumns getMyColumns() {
518  0 return myColumns;
519    }
520   
 
521  0 toggle public void setMyColumns(MyColumns additionalColumns) {
522  0 this.myColumns = additionalColumns;
523    }
524   
 
525  0 toggle public String getDestinationUrl() {
526  0 return destinationUrl;
527    }
528   
 
529  0 toggle public void setDestinationUrl(String destinationUrl) {
530  0 this.destinationUrl = destinationUrl;
531    }
532   
 
533  0 toggle public Timestamp getDeactivationDate() {
534  0 return deactivationDate;
535    }
536   
 
537  0 toggle public void setDeactivationDate(Timestamp deactivationDate) {
538  0 this.deactivationDate = deactivationDate;
539    }
540   
541    /**
542    * @return whether this is a defaults/template rule
543    */
 
544  0 toggle public Boolean getTemplateRuleInd() {
545  0 return templateRuleInd;
546    }
547   
548    /**
549    * @param templateRuleInd whether this is a defaults/template rule
550    */
 
551  0 toggle public void setTemplateRuleInd(Boolean templateRuleInd) {
552  0 this.templateRuleInd = templateRuleInd;
553    }
554   
555    /**
556    * Get the rule name
557    * @return the rule name
558    */
 
559  0 toggle public String getName() {
560  0 return name;
561    }
562   
563    /**
564    * Set the rule name
565    * @param name the rule name
566    */
 
567  0 toggle public void setName(String name) {
568  0 this.name = name;
569    }
570   
 
571  0 toggle public List<PersonRuleResponsibility> getPersonResponsibilities() {
572  0 return this.personResponsibilities;
573    }
574   
 
575  0 toggle public void setPersonResponsibilities(List<PersonRuleResponsibility> personResponsibilities) {
576  0 this.personResponsibilities = personResponsibilities;
577    }
578   
 
579  0 toggle public List<GroupRuleResponsibility> getGroupResponsibilities() {
580  0 return this.groupResponsibilities;
581    }
582   
 
583  0 toggle public void setGroupResponsibilities(List<GroupRuleResponsibility> groupResponsibilities) {
584  0 this.groupResponsibilities = groupResponsibilities;
585    }
586   
 
587  0 toggle public List<RoleRuleResponsibility> getRoleResponsibilities() {
588  0 return this.roleResponsibilities;
589    }
590   
 
591  0 toggle public void setRoleResponsibilities(List<RoleRuleResponsibility> roleResponsibilities) {
592  0 this.roleResponsibilities = roleResponsibilities;
593    }
594   
595    /**
596    * @return the fieldValues
597    */
 
598  0 toggle public Map<String, String> getFieldValues() {
599  0 return this.fieldValues;
600    }
601   
602    /**
603    * @param fieldValues the fieldValues to set
604    */
 
605  0 toggle public void setFieldValues(Map<String, String> fieldValues) {
606  0 this.fieldValues = fieldValues;
607    }
608   
 
609  0 toggle public String getGroupReviewerName() {
610  0 return this.groupReviewerName;
611    }
612   
 
613  0 toggle public String getGroupReviewerNamespace() {
614  0 return this.groupReviewerNamespace;
615    }
616   
 
617  0 toggle public String getPersonReviewer() {
618  0 return this.personReviewer;
619    }
620   
 
621  0 toggle public void setGroupReviewerName(String groupReviewerName) {
622  0 this.groupReviewerName = groupReviewerName;
623    }
624   
 
625  0 toggle public void setGroupReviewerNamespace(String groupReviewerNamespace) {
626  0 this.groupReviewerNamespace = groupReviewerNamespace;
627    }
628   
 
629  0 toggle public void setPersonReviewer(String personReviewer) {
630  0 this.personReviewer = personReviewer;
631    }
632   
 
633  0 toggle public GroupImpl getKimGroupImpl() {
634  0 return new GroupImpl();
635    }
636   
 
637  0 toggle public PersonImpl getPersonImpl() {
638  0 return new PersonImpl();
639    }
640   
 
641  0 toggle public String getPersonReviewerType() {
642  0 return this.personReviewerType;
643    }
644   
 
645  0 toggle public void setPersonReviewerType(String personReviewerType) {
646  0 this.personReviewerType = personReviewerType;
647    }
648    }