Liferay 7.0-ce-b4

com.liferay.portal.events.test
Class TestServicePreAction

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

public class TestServicePreAction
extends ServicePreAction


Nested Class Summary
 
Nested classes/interfaces inherited from class com.liferay.portal.events.ServicePreAction
ServicePreAction.LayoutComposite
 
Field Summary
static TestServicePreAction INSTANCE
           
 
Fields inherited from class com.liferay.portal.events.ServicePreAction
privateLARFile, publicLARFile
 
Constructor Summary
TestServicePreAction()
           
 
Method Summary
 void addDefaultLayoutsByLAR(long userId, long groupId, boolean privateLayout, File larFile)
           
 void addDefaultUserPrivateLayoutByProperties(long userId, long groupId)
           
 void addDefaultUserPrivateLayouts(User user)
           
 void addDefaultUserPublicLayoutByProperties(long userId, long groupId)
           
 void addDefaultUserPublicLayouts(User user)
           
 void deleteDefaultUserPrivateLayouts(User user)
           
 void deleteDefaultUserPublicLayouts(User user)
           
 ServicePreAction.LayoutComposite getDefaultUserPersonalSiteLayoutComposite(User user)
           
 ServicePreAction.LayoutComposite getDefaultUserSitesLayoutComposite(User user)
           
 ServicePreAction.LayoutComposite getDefaultViewableLayoutComposite(javax.servlet.http.HttpServletRequest request, User user, PermissionChecker permissionChecker, long doAsGroupId, boolean signedIn)
           
 ServicePreAction.LayoutComposite getDefaultVirtualHostLayoutComposite(javax.servlet.http.HttpServletRequest request)
           
 ServicePreAction.LayoutComposite getGuestSiteLayoutComposite(User user)
           
 ServicePreAction.LayoutComposite getViewableLayoutComposite(javax.servlet.http.HttpServletRequest request, User user, PermissionChecker permissionChecker, Layout layout, List<Layout> layouts, long doAsGroupId)
           
 boolean hasAccessPermission(PermissionChecker permissionChecker, Layout layout, long doAsGroupId, boolean checkViewableGroup)
           
 void initImportLARFiles()
           
 boolean isLoginRequest(javax.servlet.http.HttpServletRequest request)
           
 List<Layout> mergeAdditionalLayouts(javax.servlet.http.HttpServletRequest request, User user, PermissionChecker permissionChecker, Layout layout, List<Layout> layouts, long doAsGroupId)
           
 void rememberVisitedGroupIds(javax.servlet.http.HttpServletRequest request, long currentGroupId)
           
 void servicePre(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void updateUserLayouts(User user)
           
 
Methods inherited from class com.liferay.portal.events.ServicePreAction
getFriendlyURL, getViewableLayoutComposite, hasPowerUserRole, initThemeDisplay, isViewableCommunity, isViewableGroup, run
 
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

INSTANCE

public static TestServicePreAction INSTANCE
Constructor Detail

TestServicePreAction

public TestServicePreAction()
Method Detail

addDefaultLayoutsByLAR

public void addDefaultLayoutsByLAR(long userId,
                                   long groupId,
                                   boolean privateLayout,
                                   File larFile)
                            throws PortalException
Overrides:
addDefaultLayoutsByLAR in class ServicePreAction
Throws:
PortalException

addDefaultUserPrivateLayoutByProperties

public void addDefaultUserPrivateLayoutByProperties(long userId,
                                                    long groupId)
                                             throws PortalException
Overrides:
addDefaultUserPrivateLayoutByProperties in class ServicePreAction
Throws:
PortalException

addDefaultUserPrivateLayouts

public void addDefaultUserPrivateLayouts(User user)
                                  throws PortalException
Overrides:
addDefaultUserPrivateLayouts in class ServicePreAction
Throws:
PortalException

addDefaultUserPublicLayoutByProperties

public void addDefaultUserPublicLayoutByProperties(long userId,
                                                   long groupId)
                                            throws PortalException
Overrides:
addDefaultUserPublicLayoutByProperties in class ServicePreAction
Throws:
PortalException

addDefaultUserPublicLayouts

public void addDefaultUserPublicLayouts(User user)
                                 throws PortalException
Overrides:
addDefaultUserPublicLayouts in class ServicePreAction
Throws:
PortalException

deleteDefaultUserPrivateLayouts

public void deleteDefaultUserPrivateLayouts(User user)
                                     throws PortalException
Overrides:
deleteDefaultUserPrivateLayouts in class ServicePreAction
Throws:
PortalException

deleteDefaultUserPublicLayouts

public void deleteDefaultUserPublicLayouts(User user)
                                    throws PortalException
Overrides:
deleteDefaultUserPublicLayouts in class ServicePreAction
Throws:
PortalException

getDefaultUserPersonalSiteLayoutComposite

public ServicePreAction.LayoutComposite getDefaultUserPersonalSiteLayoutComposite(User user)
Overrides:
getDefaultUserPersonalSiteLayoutComposite in class ServicePreAction

getDefaultUserSitesLayoutComposite

public ServicePreAction.LayoutComposite getDefaultUserSitesLayoutComposite(User user)
                                                                    throws PortalException
Overrides:
getDefaultUserSitesLayoutComposite in class ServicePreAction
Throws:
PortalException

getDefaultViewableLayoutComposite

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

getDefaultVirtualHostLayoutComposite

public ServicePreAction.LayoutComposite getDefaultVirtualHostLayoutComposite(javax.servlet.http.HttpServletRequest request)
                                                                      throws PortalException
Overrides:
getDefaultVirtualHostLayoutComposite in class ServicePreAction
Throws:
PortalException

getGuestSiteLayoutComposite

public ServicePreAction.LayoutComposite getGuestSiteLayoutComposite(User user)
                                                             throws PortalException
Overrides:
getGuestSiteLayoutComposite in class ServicePreAction
Throws:
PortalException

getViewableLayoutComposite

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

hasAccessPermission

public boolean hasAccessPermission(PermissionChecker permissionChecker,
                                   Layout layout,
                                   long doAsGroupId,
                                   boolean checkViewableGroup)
                            throws PortalException
Overrides:
hasAccessPermission in class ServicePreAction
Throws:
PortalException

initImportLARFiles

public void initImportLARFiles()
Overrides:
initImportLARFiles in class ServicePreAction

isLoginRequest

public boolean isLoginRequest(javax.servlet.http.HttpServletRequest request)
Overrides:
isLoginRequest in class ServicePreAction

mergeAdditionalLayouts

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

rememberVisitedGroupIds

public void rememberVisitedGroupIds(javax.servlet.http.HttpServletRequest request,
                                    long currentGroupId)
Overrides:
rememberVisitedGroupIds in class ServicePreAction

servicePre

public void servicePre(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws Exception
Overrides:
servicePre in class ServicePreAction
Throws:
Exception

updateUserLayouts

public void updateUserLayouts(User user)
                       throws Exception
Overrides:
updateUserLayouts in class ServicePreAction
Throws:
Exception

Liferay 7.0-ce-b4