Liferay 7.0-ce-m3

com.liferay.portlet.sites.action
Class EditGroupAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by com.liferay.portal.struts.PortletAction
          extended by com.liferay.portlet.sites.action.EditGroupAction

public class EditGroupAction
extends PortletAction


Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
EditGroupAction()
           
 
Method Summary
protected  void deleteGroups(ActionRequest actionRequest)
           
protected  String getGroupFriendlyURL(Group liveGroup)
           
protected  Group getLiveGroup(PortletRequest portletRequest)
           
protected  long getRefererGroupId(ThemeDisplay themeDisplay)
           
protected  long getRefererPlid(Group liveGroup, long scopeGroupId, String redirect)
           
protected  List<Role> getRoles(PortletRequest portletRequest)
           
protected  String getStagingGroupFriendlyURL(Group liveGroup)
           
protected  List<Team> getTeams(PortletRequest portletRequest)
           
 void processAction(org.apache.struts.action.ActionMapping actionMapping, org.apache.struts.action.ActionForm actionForm, PortletConfig portletConfig, ActionRequest actionRequest, ActionResponse actionResponse)
           
 org.apache.struts.action.ActionForward render(org.apache.struts.action.ActionMapping actionMapping, org.apache.struts.action.ActionForm actionForm, PortletConfig portletConfig, RenderRequest renderRequest, RenderResponse renderResponse)
           
protected  void resetMergeFailCountAndMerge(ActionRequest actionRequest)
          Resets the number of failed merge attempts for the site template, which is accessed by retrieving the layout set prototype ID.
protected  void updateActive(ActionRequest actionRequest, String cmd)
           
protected  Group updateGroup(ActionRequest actionRequest)
           
 
Methods inherited from class com.liferay.portal.struts.PortletAction
addSuccessMessage, execute, getForward, getForward, getForwardKey, getForwardKey, getModuleConfig, getResources, getResources, getResources, getStrictPortletSetup, getStrictPortletSetup, hideDefaultErrorMessage, hideDefaultSuccessMessage, hideDefaultSuccessMessage, isCheckMethodOnProcessAction, isDisplaySuccessMessage, processEvent, redirectToLogin, sendRedirect, sendRedirect, sendRedirect, serveResource, setForward, strutsExecute, writeJSON, writeJSON
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditGroupAction

public EditGroupAction()
Method Detail

processAction

public void processAction(org.apache.struts.action.ActionMapping actionMapping,
                          org.apache.struts.action.ActionForm actionForm,
                          PortletConfig portletConfig,
                          ActionRequest actionRequest,
                          ActionResponse actionResponse)
                   throws Exception
Overrides:
processAction in class PortletAction
Throws:
Exception

render

public org.apache.struts.action.ActionForward render(org.apache.struts.action.ActionMapping actionMapping,
                                                     org.apache.struts.action.ActionForm actionForm,
                                                     PortletConfig portletConfig,
                                                     RenderRequest renderRequest,
                                                     RenderResponse renderResponse)
                                              throws Exception
Overrides:
render in class PortletAction
Throws:
Exception

deleteGroups

protected void deleteGroups(ActionRequest actionRequest)
                     throws Exception
Throws:
Exception

getGroupFriendlyURL

protected String getGroupFriendlyURL(Group liveGroup)

getLiveGroup

protected Group getLiveGroup(PortletRequest portletRequest)
                      throws PortalException
Throws:
PortalException

getRefererGroupId

protected long getRefererGroupId(ThemeDisplay themeDisplay)
                          throws Exception
Throws:
Exception

getRefererPlid

protected long getRefererPlid(Group liveGroup,
                              long scopeGroupId,
                              String redirect)

getRoles

protected List<Role> getRoles(PortletRequest portletRequest)
                       throws Exception
Throws:
Exception

getStagingGroupFriendlyURL

protected String getStagingGroupFriendlyURL(Group liveGroup)

getTeams

protected List<Team> getTeams(PortletRequest portletRequest)
                       throws Exception
Throws:
Exception

resetMergeFailCountAndMerge

protected void resetMergeFailCountAndMerge(ActionRequest actionRequest)
                                    throws Exception
Resets the number of failed merge attempts for the site template, which is accessed by retrieving the layout set prototype ID. Once the counter is reset, the modified site template is merged back into its linked site, which is accessed by retrieving the group ID and private layout set.

If the number of failed merge attempts is not equal to zero after the merge, an error key is submitted to SessionErrors.

Parameters:
actionRequest - the portlet request used to retrieve parameters
Throws:
Exception - if an exception occurred

updateActive

protected void updateActive(ActionRequest actionRequest,
                            String cmd)
                     throws Exception
Throws:
Exception

updateGroup

protected Group updateGroup(ActionRequest actionRequest)
                     throws Exception
Throws:
Exception

Liferay 7.0-ce-m3