KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > views > engines > JahiaEngineViewHelper


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12

13 package org.jahia.views.engines;
14
15 import org.jahia.data.JahiaData;
16 import org.jahia.exceptions.JahiaException;
17 import org.jahia.params.ParamBean;
18 import org.jahia.settings.SettingsBean;
19
20 /**
21  *
22  * <p>Title: Helper object for Jahia Engine </p>
23  * <p>Description: </p>
24  * <p>Copyright: Copyright (c) 2002</p>
25  * <p>Company: </p>
26  * @author Khue Nguyen
27  * @version 1.0
28  */

29 public class JahiaEngineViewHelper implements JahiaEngineViewHelperInterface {
30
31     private static final String JavaDoc CLASS_NAME = JahiaEngineViewHelper.class.getName();
32     public static final String JavaDoc ENGINE_VIEW_HELPER
33             = "jahiaEngineViewHelper";
34
35     protected String JavaDoc engineURL;
36     protected JahiaEngineCommonDataInterface engineCommonData;
37
38     /**
39      *
40      * @param request
41      * @param engineCommonData
42      * @throws JahiaException
43      */

44     public JahiaEngineViewHelper(){
45
46     }
47
48     /**
49      *
50      * @param engineCommonData
51      * @throws JahiaException
52      */

53     public JahiaEngineViewHelper(JahiaEngineCommonDataInterface engineCommonData)
54     throws JahiaException {
55         this.engineCommonData
56                 = engineCommonData;
57     }
58
59     public JahiaEngineCommonDataInterface getEngineCommonData(){
60         return this.engineCommonData;
61     }
62
63     public void setEngineCommonData(JahiaEngineCommonDataInterface engineCommonData){
64         this.engineCommonData = engineCommonData;
65     }
66
67     public JahiaData getJahiaData(){
68         return this.engineCommonData.getJahiaData();
69     }
70
71     public ParamBean getParamBean(){
72         return this.engineCommonData.getParamBean();
73     }
74
75     public SettingsBean getSettings(){
76         return this.getParamBean().settings();
77     }
78
79 }
80
81
Popular Tags