01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/metaobj/tags/sakai_2-4-1/metaobj-util/tool-lib/src/java/org/sakaiproject/metaobj/utils/mvc/intf/CustomCommandController.java $
03: * $Id: CustomCommandController.java 14230 2006-09-05 18:02:51Z chmaurer@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.metaobj.utils.mvc.intf;
21:
22: import java.util.Map;
23:
24: /*
25: * $URL: https://source.sakaiproject.org/svn/metaobj/tags/sakai_2-4-1/metaobj-util/tool-lib/src/java/org/sakaiproject/metaobj/utils/mvc/intf/CustomCommandController.java $
26: * $Revision: 14230 $
27: * $Date: 2006-09-05 14:02:51 -0400 (Tue, 05 Sep 2006) $
28: */
29:
30: /**
31: * Use this controller when you need to override the way the backing object is created.
32: * If all you are doing is return new MyBackingObject() you won't need to implement this,
33: * Spring will handle that for you. Do not use this method to populate helping data
34: * into the model. This method does not get called if there is an error in validation.
35: * If you rely on this information for putting stuff in the request, you will not have
36: * it there in the case of validation error. If you need to put helping data in the model,
37: * implement FormController's referenceData method.
38: *
39: * @author John Ellis (john.ellis@rsmart.com)
40: * @author John Bush (john.bush@rsmart.com)
41: * @see Controller
42: */
43: public interface CustomCommandController extends Controller {
44: public Object formBackingObject(Map request, Map session,
45: Map application);
46: }
|