com.liferay.portal.events
Class ServicePreAction

java.lang.Object
  extended by com.liferay.portal.kernel.events.Action
      extended by com.liferay.portal.events.ServicePreAction

public class ServicePreAction
extends com.liferay.portal.kernel.events.Action

View Source

Author:
Brian Wing Shun Chan, Felix Ventero

Field Summary
protected  java.io.File privateLARFile
           
protected  java.io.File publicLARFile
           
 
Constructor Summary
ServicePreAction()
           
 
Method Summary
protected  void addDefaultLayouts(com.liferay.portal.model.User user)
           
protected  void deleteDefaultLayouts(com.liferay.portal.model.User user)
           
protected  java.lang.Object[] getDefaultLayout(javax.servlet.http.HttpServletRequest req, com.liferay.portal.model.User user, boolean signedIn)
           
protected  java.lang.Object[] getViewableLayouts(javax.servlet.http.HttpServletRequest req, com.liferay.portal.model.User user, com.liferay.portal.security.permission.PermissionChecker permissionChecker, com.liferay.portal.model.Layout layout, java.util.List<com.liferay.portal.model.Layout> layouts)
           
protected  void importLayoutsByLAR(long userId, long groupId, boolean privateLayout, java.io.File larFile)
           
protected  void importLayoutsByProperties(long userId, long groupId)
           
protected  void initImportLARFiles()
           
protected  boolean isViewableCommunity(com.liferay.portal.model.User user, long groupId, boolean privateLayout, com.liferay.portal.security.permission.PermissionChecker permissionChecker)
           
protected  java.util.List<com.liferay.portal.model.Layout> mergeAdditionalLayouts(com.liferay.portal.model.User user, com.liferay.portal.model.Layout layout, java.util.List<com.liferay.portal.model.Layout> layouts, javax.servlet.http.HttpServletRequest req)
           
protected  void rememberVisitedGroupIds(long currentGroupId, javax.servlet.http.HttpServletRequest req)
           
 void run(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
protected  void servicePre(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 
Methods inherited from class com.liferay.portal.kernel.events.Action
run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

privateLARFile

protected java.io.File privateLARFile

publicLARFile

protected java.io.File publicLARFile
Constructor Detail

ServicePreAction

public ServicePreAction()
Method Detail

run

public void run(javax.servlet.http.HttpServletRequest req,
                javax.servlet.http.HttpServletResponse res)
         throws com.liferay.portal.kernel.events.ActionException
Specified by:
run in class com.liferay.portal.kernel.events.Action
Throws:
com.liferay.portal.kernel.events.ActionException

addDefaultLayouts

protected void addDefaultLayouts(com.liferay.portal.model.User user)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteDefaultLayouts

protected void deleteDefaultLayouts(com.liferay.portal.model.User user)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getDefaultLayout

protected java.lang.Object[] getDefaultLayout(javax.servlet.http.HttpServletRequest req,
                                              com.liferay.portal.model.User user,
                                              boolean signedIn)
                                       throws com.liferay.portal.PortalException,
                                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importLayoutsByLAR

protected void importLayoutsByLAR(long userId,
                                  long groupId,
                                  boolean privateLayout,
                                  java.io.File larFile)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importLayoutsByProperties

protected void importLayoutsByProperties(long userId,
                                         long groupId)
                                  throws com.liferay.portal.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getViewableLayouts

protected java.lang.Object[] getViewableLayouts(javax.servlet.http.HttpServletRequest req,
                                                com.liferay.portal.model.User user,
                                                com.liferay.portal.security.permission.PermissionChecker permissionChecker,
                                                com.liferay.portal.model.Layout layout,
                                                java.util.List<com.liferay.portal.model.Layout> layouts)
                                         throws com.liferay.portal.PortalException,
                                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

initImportLARFiles

protected void initImportLARFiles()

isViewableCommunity

protected boolean isViewableCommunity(com.liferay.portal.model.User user,
                                      long groupId,
                                      boolean privateLayout,
                                      com.liferay.portal.security.permission.PermissionChecker permissionChecker)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

mergeAdditionalLayouts

protected java.util.List<com.liferay.portal.model.Layout> mergeAdditionalLayouts(com.liferay.portal.model.User user,
                                                                                 com.liferay.portal.model.Layout layout,
                                                                                 java.util.List<com.liferay.portal.model.Layout> layouts,
                                                                                 javax.servlet.http.HttpServletRequest req)
                                                                          throws com.liferay.portal.PortalException,
                                                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

rememberVisitedGroupIds

protected void rememberVisitedGroupIds(long currentGroupId,
                                       javax.servlet.http.HttpServletRequest req)

servicePre

protected void servicePre(javax.servlet.http.HttpServletRequest req,
                          javax.servlet.http.HttpServletResponse res)
                   throws java.lang.Exception
Throws:
java.lang.Exception