Coverage Report - org.kuali.rice.kew.rule.ResolvedQualifiedRole
 
Classes in this File Line Coverage Branch Coverage Complexity
ResolvedQualifiedRole
0%
0/19
N/A
1
 
 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 java.io.Serializable;
 20  
 import java.util.ArrayList;
 21  
 import java.util.List;
 22  
 
 23  
 import org.kuali.rice.kew.actionrequest.ActionRequestValue;
 24  
 import org.kuali.rice.kew.identity.Id;
 25  
 
 26  
 
 27  
 /**
 28  
  * The resolution of a qualified role (role name + data) to a List of recipient
 29  
  * {@link Id}s.  In addition to the Ids of the recipients, a ResolvedQualifiedRole 
 30  
  * can also contain a label for the role (to be displayed on the Route Log) and
 31  
  * an annotation (to be displayed on the generated {@link ActionRequestValue}).
 32  
  * 
 33  
  * @see Id
 34  
  * @see ActionRequestValue
 35  
  *
 36  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 37  
  */
 38  
 public class ResolvedQualifiedRole implements Serializable {
 39  
 
 40  
         private static final long serialVersionUID = 5397269690550273869L;
 41  
         
 42  0
         private List<Id> recipients = new ArrayList<Id>();
 43  
     private String qualifiedRoleLabel;
 44  
     private String annotation;
 45  
 
 46  0
     public ResolvedQualifiedRole() {
 47  0
     }
 48  
 
 49  
     public ResolvedQualifiedRole(String qualifiedRoleLabel, List<Id> recipients) {
 50  0
         this(qualifiedRoleLabel, recipients, "");
 51  0
     }
 52  
     
 53  0
     public ResolvedQualifiedRole(String qualifiedRoleLabel, List<Id> recipients, String annotation) {
 54  0
         this.qualifiedRoleLabel = qualifiedRoleLabel;
 55  0
         this.recipients = recipients;
 56  0
         this.annotation = annotation;
 57  0
     }
 58  
     
 59  
     public List<Id> getRecipients() {
 60  0
         return recipients;
 61  
     }
 62  
     public void setRecipients(List<Id> users) {
 63  0
         this.recipients = users;
 64  0
     }
 65  
     public String getQualifiedRoleLabel() {
 66  0
         return qualifiedRoleLabel;
 67  
     }
 68  
     public void setQualifiedRoleLabel(String qualifiedRoleLabel) {
 69  0
         this.qualifiedRoleLabel = qualifiedRoleLabel;
 70  0
     }
 71  
     public String getAnnotation() {
 72  0
         return annotation;
 73  
     }
 74  
     public void setAnnotation(String annotation) {
 75  0
         this.annotation = annotation;
 76  0
     }
 77  
     
 78  
 }