Liferay 6.2-ce-ga5

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 Action


Field Summary
protected  File privateLARFile
           
protected  File publicLARFile
           
 
Constructor Summary
ServicePreAction()
           
 
Method Summary
protected  void addDefaultLayoutsByLAR(long userId, long groupId, boolean privateLayout, File larFile)
           
protected  void addDefaultUserPrivateLayoutByProperties(long userId, long groupId)
           
protected  void addDefaultUserPrivateLayouts(User user)
           
protected  void addDefaultUserPublicLayoutByProperties(long userId, long groupId)
           
protected  void addDefaultUserPublicLayouts(User user)
           
protected  void deleteDefaultUserPrivateLayouts(User user)
           
protected  void deleteDefaultUserPublicLayouts(User user)
           
protected  Object[] getDefaultLayout(javax.servlet.http.HttpServletRequest request, User user, boolean signedIn)
           
protected  String getFriendlyURL(String friendlyURL)
           
protected  Object[] getViewableLayouts(javax.servlet.http.HttpServletRequest request, User user, PermissionChecker permissionChecker, Layout layout, List<Layout> layouts, long doAsGroupId, String controlPanelCategory)
           
protected  boolean hasAccessPermission(PermissionChecker permissionChecker, Layout layout, long doAsGroupId, String controlPanelCategory, boolean checkViewableGroup)
           
protected  Boolean hasPowerUserRole(User user)
           
protected  void initImportLARFiles()
           
 ThemeDisplay initThemeDisplay(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  boolean isLoginRequest(javax.servlet.http.HttpServletRequest request)
           
protected  boolean isViewableCommunity(User user, long groupId, boolean privateLayout, PermissionChecker permissionChecker)
          Deprecated. As of 6.1.0
protected  boolean isViewableGroup(User user, long groupId, boolean privateLayout, long layoutId, String controlPanelCategory, PermissionChecker permissionChecker)
          Deprecated. As of 6.1.0
protected  List<Layout> mergeAdditionalLayouts(javax.servlet.http.HttpServletRequest request, User user, PermissionChecker permissionChecker, Layout layout, List<Layout> layouts, long doAsGroupId, String controlPanelCategory)
           
protected  void processControlPanelRedirects(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void rememberVisitedGroupIds(javax.servlet.http.HttpServletRequest request, long currentGroupId)
           
 void run(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void servicePre(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void updateUserLayouts(User user)
           
 
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 File privateLARFile

publicLARFile

protected File publicLARFile
Constructor Detail

ServicePreAction

public ServicePreAction()
Method Detail

initThemeDisplay

public ThemeDisplay initThemeDisplay(javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response)
                              throws Exception
Throws:
Exception

run

public void run(javax.servlet.http.HttpServletRequest request,
                javax.servlet.http.HttpServletResponse response)
         throws ActionException
Specified by:
run in class Action
Throws:
ActionException

addDefaultLayoutsByLAR

protected void addDefaultLayoutsByLAR(long userId,
                                      long groupId,
                                      boolean privateLayout,
                                      File larFile)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

addDefaultUserPrivateLayoutByProperties

protected void addDefaultUserPrivateLayoutByProperties(long userId,
                                                       long groupId)
                                                throws PortalException,
                                                       SystemException
Throws:
PortalException
SystemException

addDefaultUserPrivateLayouts

protected void addDefaultUserPrivateLayouts(User user)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

addDefaultUserPublicLayoutByProperties

protected void addDefaultUserPublicLayoutByProperties(long userId,
                                                      long groupId)
                                               throws PortalException,
                                                      SystemException
Throws:
PortalException
SystemException

addDefaultUserPublicLayouts

protected void addDefaultUserPublicLayouts(User user)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

deleteDefaultUserPrivateLayouts

protected void deleteDefaultUserPrivateLayouts(User user)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

deleteDefaultUserPublicLayouts

protected void deleteDefaultUserPublicLayouts(User user)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getDefaultLayout

protected Object[] getDefaultLayout(javax.servlet.http.HttpServletRequest request,
                                    User user,
                                    boolean signedIn)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getFriendlyURL

protected String getFriendlyURL(String friendlyURL)

getViewableLayouts

protected Object[] getViewableLayouts(javax.servlet.http.HttpServletRequest request,
                                      User user,
                                      PermissionChecker permissionChecker,
                                      Layout layout,
                                      List<Layout> layouts,
                                      long doAsGroupId,
                                      String controlPanelCategory)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

hasAccessPermission

protected boolean hasAccessPermission(PermissionChecker permissionChecker,
                                      Layout layout,
                                      long doAsGroupId,
                                      String controlPanelCategory,
                                      boolean checkViewableGroup)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

hasPowerUserRole

protected Boolean hasPowerUserRole(User user)
                            throws Exception
Throws:
Exception

initImportLARFiles

protected void initImportLARFiles()

isLoginRequest

protected boolean isLoginRequest(javax.servlet.http.HttpServletRequest request)

isViewableCommunity

protected boolean isViewableCommunity(User user,
                                      long groupId,
                                      boolean privateLayout,
                                      PermissionChecker permissionChecker)
                               throws PortalException,
                                      SystemException
Deprecated. As of 6.1.0

Throws:
PortalException
SystemException

isViewableGroup

protected boolean isViewableGroup(User user,
                                  long groupId,
                                  boolean privateLayout,
                                  long layoutId,
                                  String controlPanelCategory,
                                  PermissionChecker permissionChecker)
                           throws PortalException,
                                  SystemException
Deprecated. As of 6.1.0

Throws:
PortalException
SystemException

mergeAdditionalLayouts

protected List<Layout> mergeAdditionalLayouts(javax.servlet.http.HttpServletRequest request,
                                              User user,
                                              PermissionChecker permissionChecker,
                                              Layout layout,
                                              List<Layout> layouts,
                                              long doAsGroupId,
                                              String controlPanelCategory)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

processControlPanelRedirects

protected void processControlPanelRedirects(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response)
                                     throws Exception
Throws:
Exception

rememberVisitedGroupIds

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

servicePre

protected void servicePre(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws Exception
Throws:
Exception

updateUserLayouts

protected void updateUserLayouts(User user)
                          throws Exception
Throws:
Exception

Liferay 6.2-ce-ga5