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