Coverage Report - org.kuali.rice.kns.web.struts.form.BackdoorForm
 
Classes in this File Line Coverage Branch Coverage Complexity
BackdoorForm
0%
0/26
0%
0/4
1.143
 
 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.kns.web.struts.form;
 18  
 
 19  
 import org.kuali.rice.kns.web.struts.action.BackdoorAction;
 20  
 
 21  
 /**
 22  
  * A Struts ActionForm for the {@link BackdoorAction}.
 23  
  *
 24  
  * @see BackdoorAction
 25  
  *
 26  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 27  
  */
 28  0
 public class BackdoorForm extends KualiForm {
 29  
 
 30  
         private static final long serialVersionUID = -2720178686804392055L;
 31  
 
 32  0
         private String methodToCall = "";
 33  
     private String backdoorId;
 34  
     private Boolean showBackdoorLogin;
 35  
     private Boolean isAdmin;
 36  
     private String linkTarget;
 37  
     private String targetName;
 38  
     //determines whether to show the backdoor login textbox in the backdoor links page
 39  
     private String backdoorLinksBackdoorLogin;
 40  
 
 41  0
     private String graphic="yes";
 42  
 
 43  
     public String getBackdoorId() {
 44  0
         return backdoorId;
 45  
     }
 46  
     public void setBackdoorId(String backdoorId) {
 47  0
         this.backdoorId = backdoorId;
 48  0
     }
 49  
     public String getMethodToCall() {
 50  0
         return methodToCall;
 51  
     }
 52  
     public void setMethodToCall(String methodToCall) {
 53  0
         this.methodToCall = methodToCall;
 54  0
     }
 55  
     public Boolean getIsAdmin() {
 56  0
         return isAdmin;
 57  
     }
 58  
     public void setIsAdmin(Boolean isAdmin) {
 59  0
         this.isAdmin = isAdmin;
 60  0
     }
 61  
     public Boolean getShowBackdoorLogin() {
 62  0
         return showBackdoorLogin;
 63  
     }
 64  
     public void setShowBackdoorLogin(Boolean showBackdoorLogin) {
 65  0
         this.showBackdoorLogin = showBackdoorLogin;
 66  0
     }
 67  
     public String getLinkTarget() {
 68  0
         return linkTarget;
 69  
     }
 70  
     public void setLinkTarget(String linkTarget) {
 71  0
         this.linkTarget = linkTarget;
 72  0
     }
 73  
     /*
 74  
     public String getTargetName() {
 75  
         return targetName;
 76  
     }
 77  
     public void setTargetName(String targetName) {
 78  
         this.targetName = targetName;
 79  
     }
 80  
     */
 81  
     public String getGraphic(){
 82  0
             return this.graphic;
 83  
     }
 84  
     public void setGraphic(String choice){
 85  0
             if(!org.apache.commons.lang.StringUtils.isEmpty(choice)&&choice.trim().equals("no")){
 86  0
                     this.graphic="no";
 87  
             }else{
 88  0
                     this.graphic="yes";
 89  
             }
 90  0
     }
 91  
         public String getBackdoorLinksBackdoorLogin() {
 92  0
                 return backdoorLinksBackdoorLogin;
 93  
         }
 94  
         public void setBackdoorLinksBackdoorLogin(String backdoorLinksBackdoorLogin) {
 95  0
                 this.backdoorLinksBackdoorLogin = backdoorLinksBackdoorLogin;
 96  0
         }
 97  
 }