Liferay 7.0-ce-b4

com.liferay.portal.events
Class ServicePreAction

java.lang.Object
  extended by com.liferay.portal.kernel.events.Action
      extended by com.liferay.portal.events.ServicePreAction
All Implemented Interfaces:
LifecycleAction
Direct Known Subclasses:
TestServicePreAction

public class ServicePreAction
extends Action


Nested Class Summary
protected  class ServicePreAction.LayoutComposite
           
 
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  ServicePreAction.LayoutComposite getDefaultUserPersonalSiteLayoutComposite(User user)
           
protected  ServicePreAction.LayoutComposite getDefaultUserSitesLayoutComposite(User user)
           
protected  ServicePreAction.LayoutComposite getDefaultViewableLayoutComposite(javax.servlet.http.HttpServletRequest request, User user, PermissionChecker permissionChecker, long doAsGroupId, boolean signedIn)
           
protected  ServicePreAction.LayoutComposite getDefaultVirtualHostLayoutComposite(javax.servlet.http.HttpServletRequest request)
           
protected  String getFriendlyURL(String friendlyURL)
           
protected  ServicePreAction.LayoutComposite getGuestSiteLayoutComposite(User user)
           
protected  ServicePreAction.LayoutComposite getViewableLayoutComposite(javax.servlet.http.HttpServletRequest request, User user, PermissionChecker permissionChecker, Layout layout, List<Layout> layouts, long doAsGroupId)
           
protected  ServicePreAction.LayoutComposite getViewableLayoutComposite(javax.servlet.http.HttpServletRequest request, User user, PermissionChecker permissionChecker, ServicePreAction.LayoutComposite defaultLayoutComposite, long doAsGroupId)
           
protected  boolean hasAccessPermission(PermissionChecker permissionChecker, Layout layout, long doAsGroupId, 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)
           
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
processLifecycleEvent, 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
Throws:
PortalException

addDefaultUserPrivateLayoutByProperties

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

addDefaultUserPrivateLayouts

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

addDefaultUserPublicLayoutByProperties

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

addDefaultUserPublicLayouts

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

deleteDefaultUserPrivateLayouts

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

deleteDefaultUserPublicLayouts

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

getDefaultUserPersonalSiteLayoutComposite

protected ServicePreAction.LayoutComposite getDefaultUserPersonalSiteLayoutComposite(User user)

getDefaultUserSitesLayoutComposite

protected ServicePreAction.LayoutComposite getDefaultUserSitesLayoutComposite(User user)
                                                                       throws PortalException
Throws:
PortalException

getDefaultViewableLayoutComposite

protected ServicePreAction.LayoutComposite getDefaultViewableLayoutComposite(javax.servlet.http.HttpServletRequest request,
                                                                             User user,
                                                                             PermissionChecker permissionChecker,
                                                                             long doAsGroupId,
                                                                             boolean signedIn)
                                                                      throws PortalException
Throws:
PortalException

getDefaultVirtualHostLayoutComposite

protected ServicePreAction.LayoutComposite getDefaultVirtualHostLayoutComposite(javax.servlet.http.HttpServletRequest request)
                                                                         throws PortalException
Throws:
PortalException

getFriendlyURL

protected String getFriendlyURL(String friendlyURL)

getGuestSiteLayoutComposite

protected ServicePreAction.LayoutComposite getGuestSiteLayoutComposite(User user)
                                                                throws PortalException
Throws:
PortalException

getViewableLayoutComposite

protected ServicePreAction.LayoutComposite getViewableLayoutComposite(javax.servlet.http.HttpServletRequest request,
                                                                      User user,
                                                                      PermissionChecker permissionChecker,
                                                                      Layout layout,
                                                                      List<Layout> layouts,
                                                                      long doAsGroupId)
                                                               throws PortalException
Throws:
PortalException

getViewableLayoutComposite

protected ServicePreAction.LayoutComposite getViewableLayoutComposite(javax.servlet.http.HttpServletRequest request,
                                                                      User user,
                                                                      PermissionChecker permissionChecker,
                                                                      ServicePreAction.LayoutComposite defaultLayoutComposite,
                                                                      long doAsGroupId)
                                                               throws PortalException
Throws:
PortalException

hasAccessPermission

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

hasPowerUserRole

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

initImportLARFiles

protected void initImportLARFiles()

isLoginRequest

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

isViewableCommunity

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

Throws:
PortalException

isViewableGroup

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

Throws:
PortalException

mergeAdditionalLayouts

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

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 7.0-ce-b4