KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > data > fields > ExpressionContext


1 package org.jahia.data.fields;
2
3 import org.jahia.params.ParamBean;
4 import org.jahia.data.beans.PageBean;
5 import org.jahia.data.beans.SiteBean;
6 import org.jahia.data.beans.JahiaBean;
7 import org.jahia.data.beans.RequestBean;
8 import org.jahia.gui.GuiBean;
9
10 /**
11  * <p>Title: Expression evaluator context</p>
12  * <p>Description: </p>
13  * <p>Copyright: Copyright (c) 2002</p>
14  * <p>Company: Jahia Ltd</p>
15  * @author Serge Huber
16  * @version 1.0
17  */

18
19 public class ExpressionContext {
20
21     private org.jahia.data.beans.PageBean pageBean;
22     private org.jahia.data.beans.SiteBean siteBean;
23     private org.jahia.data.beans.RequestBean requestBean;
24     private org.jahia.data.beans.JahiaBean jahiaBean;
25     private org.jahia.services.usermanager.JahiaUser user;
26     private org.jahia.params.ParamBean paramBean;
27
28     public ExpressionContext(ParamBean paramBean) {
29         pageBean = new PageBean(paramBean.getPage(), paramBean);
30         siteBean = new SiteBean(paramBean.getSite(), paramBean);
31         jahiaBean = new JahiaBean(paramBean);
32         user = paramBean.getUser();
33         requestBean = new RequestBean(new GuiBean(paramBean), paramBean);
34     }
35
36     public org.jahia.data.beans.PageBean getPageBean() {
37         return pageBean;
38     }
39     public void setPageBean(org.jahia.data.beans.PageBean pageBean) {
40         this.pageBean = pageBean;
41     }
42     public org.jahia.data.beans.SiteBean getSiteBean() {
43         return siteBean;
44     }
45     public void setSiteBean(org.jahia.data.beans.SiteBean siteBean) {
46         this.siteBean = siteBean;
47     }
48     public org.jahia.data.beans.RequestBean getRequestBean() {
49         return requestBean;
50     }
51     public void setRequestBean(org.jahia.data.beans.RequestBean requestBean) {
52         this.requestBean = requestBean;
53     }
54     public org.jahia.data.beans.JahiaBean getJahiaBean() {
55         return jahiaBean;
56     }
57     public void setJahiaBean(org.jahia.data.beans.JahiaBean jahiaBean) {
58         this.jahiaBean = jahiaBean;
59     }
60     public org.jahia.services.usermanager.JahiaUser getUser() {
61         return user;
62     }
63     public void setUser(org.jahia.services.usermanager.JahiaUser user) {
64         this.user = user;
65     }
66     public org.jahia.params.ParamBean getParamBean() {
67         return paramBean;
68     }
69     public void setParamBean(org.jahia.params.ParamBean paramBean) {
70         this.paramBean = paramBean;
71     }
72
73 }
Popular Tags