KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > clipbuilder > util > JahiaUtils


1 package org.jahia.clipbuilder.util;
2
3 import org.springframework.context.ApplicationContext;
4 import javax.servlet.http.HttpServletRequest JavaDoc;
5
6 /*
7  * un-comment when integrated to jahia
8  * import org.jahia.bin.*;
9  * import org.jahia.services.sites.*;
10  * import org.jahia.params.*;
11  */

12 /**
13  * Jahia utils: make easier jahia inetgration When integreated whith jahia,
14  * uncomment java-code
15  *
16  *@author ktlili
17  */

18 public class JahiaUtils {
19     /**
20      * Gets the PortletDiretcoryPath attribute of the JahiaUtils class
21      *
22      *@return The PortletDiretcoryPath value
23      */

24     public static String JavaDoc getPortletDiretcoryPath(HttpServletRequest JavaDoc request) {
25
26         /*
27          * un-comment when integrated to jahia
28          * JahiaSite jSite = (JahiaSite) request.getSession().getAttribute(ProcessingContext.SESSION_SITE);
29          * String siteKey = jSite.getSiteKey();
30          * String webAppsDir = siteKey;
31          * return Jahia.getSettings().getJahiaNewWebAppsDiskPath()+File.separator + webAppsDir;
32          */

33         return null;
34     }
35
36
37     /**
38      * Gets the SpringApplicationContext attribute of the JahiaUtils class
39      *
40      *@return The SpringApplicationContext value
41      */

42     public static ApplicationContext getSpringApplicationContext() {
43         // un-comment when integrated to jahia
44
//return org.jahia.hibernate.manager.SpringContextSingleton.getInstance().getContext();
45
return null;
46     }
47
48 }
49
Popular Tags