Coverage Report - org.kuali.rice.kew.web.AppSpecificRouteRecipient
 
Classes in this File Line Coverage Branch Coverage Complexity
AppSpecificRouteRecipient
0%
0/20
0%
0/4
1.273
 
 1  
 /**
 2  
  * Copyright 2005-2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.kew.web;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.Map;
 20  
 
 21  
 import org.kuali.rice.kew.api.util.CodeTranslator;
 22  
 
 23  
 /**
 24  
  * A bean for the web-tier when represents the recipient of an Ad Hoc request.
 25  
  *
 26  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 27  
  */
 28  0
 public class AppSpecificRouteRecipient implements Serializable {
 29  
 
 30  
         private static final long serialVersionUID = 6587140192756322878L;
 31  
 
 32  0
         private static Map actionRequestCds = CodeTranslator.arLabels;
 33  
 
 34  
     protected String type;
 35  
     protected String actionRequested;
 36  
     protected String id;  //can be networkId or groupId (although, currently, it's being treated as principal name or group name)
 37  
     protected String namespaceCode; // Can be a group namespace code or a person name
 38  
     protected String actionRequestId; // The action request ID of the AdHoc route action that was sent for this app specific recipient, if any.
 39  
 
 40  
     public String getActionRequested() {
 41  0
         return actionRequested;
 42  
     }
 43  
     public void setActionRequested(String actionRequested) {
 44  0
         this.actionRequested = actionRequested;
 45  0
     }
 46  
     public String getId() {
 47  0
         return id;
 48  
     }
 49  
     public void setId(String id) {
 50  0
         this.id = id;
 51  0
     }
 52  
     public String getType() {
 53  0
         return type;
 54  
     }
 55  
     public void setType(String type) {
 56  0
         this.type = type;
 57  0
     }
 58  
     
 59  
     public String getNamespaceCode() {
 60  0
             return namespaceCode;
 61  
     }
 62  
     public void setNamespaceCode(String namespaceCode) {
 63  0
             this.namespaceCode = namespaceCode;
 64  0
     }
 65  
 
 66  
     public String getActionRequestId() {
 67  0
             return actionRequestId;
 68  
     }
 69  
     
 70  
     public void setActionRequestId(String actionRequestId) {
 71  0
             this.actionRequestId = actionRequestId;
 72  0
     }
 73  
     
 74  
     public String getActionRequestedValue(){
 75  0
         if(getActionRequested() != null && !getActionRequested().trim().equals("")){
 76  0
             return (String) actionRequestCds.get(getActionRequested());
 77  
         }
 78  0
         return null;
 79  
     }
 80  
     
 81  
 }