Coverage Report - org.kuali.rice.kew.rule.Role
 
Classes in this File Line Coverage Branch Coverage Complexity
Role
0%
0/18
N/A
1
 
 1  
 /*
 2  
  * Copyright 2005-2008 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  
 
 20  
 /**
 21  
  * A defined role on a {@link RoleAttribute}.
 22  
  *
 23  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 24  
  */
 25  
 public class Role implements java.io.Serializable {
 26  
 
 27  
         private static final long serialVersionUID = 1211399058525182383L;
 28  
         private String name;
 29  
     private String baseName;
 30  
     private String label;
 31  
     
 32  
     private String returnUrl;;
 33  
     
 34  0
     public Role() {
 35  0
     }
 36  
     
 37  
     public String getReturnUrl() {
 38  0
         return returnUrl;
 39  
     }
 40  
     public void setReturnUrl(String returnUrl) {
 41  0
         this.returnUrl = returnUrl;
 42  0
     }
 43  
     
 44  0
     public Role(Class attributeClass, String roleName, String roleLabel) {
 45  0
         this.label = roleLabel;
 46  0
         this.baseName = roleName;
 47  0
         this.name = constructRoleValue(attributeClass.getName(), roleName);
 48  0
     }
 49  
     
 50  
     public String getLabel() {
 51  0
         return label;
 52  
     }
 53  
     
 54  
     public void setLabel(String roleLabel) {
 55  0
         this.label = roleLabel;
 56  0
     }
 57  
     
 58  
     public String getName() {
 59  0
         return name;
 60  
     }
 61  
     
 62  
     public void setName(String roleName) {
 63  0
         this.name = roleName;
 64  0
     }
 65  
     public String getBaseName() {
 66  0
         return baseName;
 67  
     }
 68  
     
 69  
     public static String constructRoleValue(String attributeClassName, String roleName) {
 70  0
             return attributeClassName + "!" + roleName;
 71  
     }
 72  
 }