001/**
002 * Copyright 2005-2016 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.kns.web.struts.form;
017
018import org.kuali.rice.kns.web.struts.action.BackdoorAction;
019
020/**
021 * A Struts ActionForm for the {@link BackdoorAction}.
022 *
023 * @see BackdoorAction
024 *
025 * @author Kuali Rice Team (rice.collab@kuali.org)
026 */
027public class BackdoorForm extends KualiForm {
028
029        private static final long serialVersionUID = -2720178686804392055L;
030
031        private String methodToCall = "";
032    private String backdoorId;
033    private Boolean showBackdoorLogin;
034    private Boolean isAdmin;
035    private String linkTarget;
036    private String targetName;
037    //determines whether to show the backdoor login textbox in the backdoor links page
038    private String backdoorLinksBackdoorLogin;
039
040    private String graphic="yes";
041
042    public String getBackdoorId() {
043        return backdoorId;
044    }
045    public void setBackdoorId(String backdoorId) {
046        this.backdoorId = backdoorId;
047    }
048    public String getMethodToCall() {
049        return methodToCall;
050    }
051    public void setMethodToCall(String methodToCall) {
052        this.methodToCall = methodToCall;
053    }
054    public Boolean getIsAdmin() {
055        return isAdmin;
056    }
057    public void setIsAdmin(Boolean isAdmin) {
058        this.isAdmin = isAdmin;
059    }
060    public Boolean getShowBackdoorLogin() {
061        return showBackdoorLogin;
062    }
063    public void setShowBackdoorLogin(Boolean showBackdoorLogin) {
064        this.showBackdoorLogin = showBackdoorLogin;
065    }
066    public String getLinkTarget() {
067        return linkTarget;
068    }
069    public void setLinkTarget(String linkTarget) {
070        this.linkTarget = linkTarget;
071    }
072    /*
073    public String getTargetName() {
074        return targetName;
075    }
076    public void setTargetName(String targetName) {
077        this.targetName = targetName;
078    }
079    */
080    public String getGraphic(){
081        return this.graphic;
082    }
083    public void setGraphic(String choice){
084        if(!org.apache.commons.lang.StringUtils.isEmpty(choice)&&choice.trim().equals("no")){
085                this.graphic="no";
086        }else{
087                this.graphic="yes";
088        }
089    }
090        public String getBackdoorLinksBackdoorLogin() {
091                return backdoorLinksBackdoorLogin;
092        }
093        public void setBackdoorLinksBackdoorLogin(String backdoorLinksBackdoorLogin) {
094                this.backdoorLinksBackdoorLogin = backdoorLinksBackdoorLogin;
095        }
096}