View Javadoc

1   /*
2    * Copyright 2000-2004 The Apache Software Foundation.
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 org.apache.portals.bridges.frameworks.model;
17  
18  import java.util.Map;
19  import java.util.ResourceBundle;
20  
21  import javax.portlet.PortletConfig;
22  import javax.portlet.PortletException;
23  
24  
25  /***
26   * PortletApplicationModel
27   * 
28   * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
29   * @version $Id: PortletApplicationModel.java 187935 2004-11-12 07:28:56 +0100 (Fri, 12 Nov 2004) taylor $
30   */
31  public interface PortletApplicationModel
32  {
33      void init(PortletConfig config)
34      throws PortletException;
35      
36      ModelBean getModelBean(String view);
37  
38      String getTemplate(String view);
39      
40      Object createBean(ModelBean mb);
41      Object lookupBean(ModelBean mb, String key);
42      
43      Map createPrefsBean(ModelBean mb, Map prefs);
44      
45      Map validate(Object bean, String view, ResourceBundle bundle)
46      throws PortletException;
47          
48      String getForward(String view, String status);
49      
50      String getForward(String actionForward);
51      void setExternalSupport(Map map);
52  }