1 /*
2 * Copyright 2008 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.ole.sys.service.impl;
17
18 import java.util.Map;
19
20 import org.apache.struts.action.ActionForward;
21 import org.apache.struts.action.ActionMapping;
22 import org.kuali.ole.sys.service.ElectronicFundTransferActionHelper;
23 import org.kuali.ole.sys.web.struts.ElectronicFundTransferForm;
24
25 /**
26 * An Electronic Funds Transfer action which simply returns to the portal.
27 */
28 public class ElectronicFundTransferCancelActionHelper implements ElectronicFundTransferActionHelper {
29 private static final String PORTAL_FORWARD = "portal";
30
31 /**
32 * Just return to the portal.
33 * @see org.kuali.ole.sys.service.ElectronicFundTransferActionHelper#performAction(org.kuali.rice.kns.web.struts.form.KualiForm, org.apache.struts.action.ActionMapping)
34 */
35 public ActionForward performAction(ElectronicFundTransferForm form, ActionMapping mapping, Map paramsMap, String basePath) {
36 return mapping.findForward(ElectronicFundTransferCancelActionHelper.PORTAL_FORWARD);
37 }
38
39 }