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