1 /*
2 * Copyright 2013 Oracle Corporation. All Rights Reserved.
3 *
4 * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
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 com.fatwire.gst.foundation.controller.action.support;
17
18 import com.fatwire.gst.foundation.controller.action.ActionFrameworkController;
19
20 import COM.FutureTense.Interfaces.FTValList;
21 import COM.FutureTense.Interfaces.IPS;
22 import COM.FutureTense.XML.Template.Seed2;
23
24 /**
25 *
26 * A Seed2 interface to be used in an XML element to the Action Framework. This delegates to the ActionFrameworkController.
27 * @author Dolf Dijkstra
28 * @see ActionFrameworkController
29 *
30 */
31 public class ActionController implements Seed2 {
32
33 private ActionFrameworkController controller;
34
35 @Override
36 public String Execute(FTValList in, FTValList out) {
37 try {
38 controller.doExecute();
39 } catch (Exception t) {
40 controller.doExecute();
41
42 }
43 return "";
44 }
45
46 @Override
47 public void SetAppLogic(IPS ips) {
48 controller = new ActionFrameworkController(ips.GetICSObject());
49 }
50
51 }