public class LayoutAdminPortlet
extends com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet
| Modifier and Type | Field and Description |
|---|---|
protected com.liferay.document.library.kernel.service.DLAppLocalService |
dlAppLocalService |
protected com.liferay.portal.kernel.service.GroupLocalService |
groupLocalService |
protected com.liferay.application.list.GroupProvider |
groupProvider |
protected com.liferay.portal.kernel.service.GroupService |
groupService |
protected com.liferay.portal.kernel.service.LayoutLocalService |
layoutLocalService |
protected com.liferay.portal.kernel.service.LayoutPrototypeLocalService |
layoutPrototypeLocalService |
protected com.liferay.portal.kernel.service.LayoutPrototypeService |
layoutPrototypeService |
protected com.liferay.portal.kernel.service.LayoutRevisionLocalService |
layoutRevisionLocalService |
protected com.liferay.portal.kernel.service.LayoutService |
layoutService |
protected com.liferay.portal.kernel.service.LayoutSetLocalService |
layoutSetLocalService |
protected com.liferay.portal.kernel.service.LayoutSetService |
layoutSetService |
protected com.liferay.mobile.device.rules.service.MDRActionLocalService |
mdrActionLocalService |
protected com.liferay.mobile.device.rules.service.MDRActionService |
mdrActionService |
protected com.liferay.mobile.device.rules.service.MDRRuleGroupInstanceLocalService |
mdrRuleGroupInstanceLocalService |
protected com.liferay.mobile.device.rules.service.MDRRuleGroupInstanceService |
mdrRuleGroupInstanceService |
protected com.liferay.portal.kernel.service.PortletLocalService |
portletLocalService |
protected com.liferay.portal.kernel.service.ThemeLocalService |
themeLocalService |
| Constructor and Description |
|---|
LayoutAdminPortlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayout(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
void |
copyApplications(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
void |
deleteEmbeddedPortlets(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
void |
deleteLayout(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
protected void |
deleteThemeSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
java.lang.String device) |
protected void |
doDispatch(javax.portlet.RenderRequest renderRequest,
javax.portlet.RenderResponse renderResponse) |
void |
editLayout(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
void |
editLayoutSet(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
void |
enableLayout(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
protected java.lang.String |
getColorSchemeId(long companyId,
java.lang.String themeId,
java.lang.String colorSchemeId) |
protected com.liferay.portal.kernel.model.Group |
getGroup(javax.portlet.PortletRequest portletRequest) |
protected byte[] |
getIconBytes(com.liferay.portal.kernel.upload.UploadPortletRequest uploadPortletRequest,
java.lang.String iconFileName) |
protected void |
inheritMobileRuleGroups(com.liferay.portal.kernel.model.Layout layout,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected boolean |
isAlwaysSendRedirect() |
protected boolean |
isSessionErrorException(java.lang.Throwable cause) |
void |
resetCustomizationView(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
void |
resetMergeFailCountAndMerge(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
Resets the number of failed merge attempts for the page template, which
is accessed from the action request's
layoutPrototypeId
param. |
void |
resetPrototype(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
protected void |
setDLAppLocalService(com.liferay.document.library.kernel.service.DLAppLocalService dlAppLocalService) |
protected void |
setGroupLocalService(com.liferay.portal.kernel.service.GroupLocalService groupLocalService) |
protected void |
setGroupProvider(com.liferay.application.list.GroupProvider groupProvider) |
protected void |
setGroupService(com.liferay.portal.kernel.service.GroupService groupService) |
protected void |
setLayoutLocalService(com.liferay.portal.kernel.service.LayoutLocalService layoutLocalService) |
protected void |
setLayoutPrototypeLocalService(com.liferay.portal.kernel.service.LayoutPrototypeLocalService layoutPrototypeLocalService) |
protected void |
setLayoutPrototypeService(com.liferay.portal.kernel.service.LayoutPrototypeService layoutPrototypeService) |
protected void |
setLayoutRevisionLocalService(com.liferay.portal.kernel.service.LayoutRevisionLocalService layoutRevisionLocalService) |
protected void |
setLayoutService(com.liferay.portal.kernel.service.LayoutService layoutService) |
protected void |
setLayoutSetLocalService(com.liferay.portal.kernel.service.LayoutSetLocalService layoutSetLocalService) |
protected void |
setLayoutSetService(com.liferay.portal.kernel.service.LayoutSetService layoutSetService) |
protected void |
setMDRActionLocalService(com.liferay.mobile.device.rules.service.MDRActionLocalService mdrActionLocalService) |
protected void |
setMDRActionService(com.liferay.mobile.device.rules.service.MDRActionService mdrActionService) |
protected void |
setMDRRuleGroupInstanceLocalService(com.liferay.mobile.device.rules.service.MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) |
protected void |
setMDRRuleGroupInstanceService(com.liferay.mobile.device.rules.service.MDRRuleGroupInstanceService mdrRuleGroupInstanceService) |
protected void |
setPortletLocalService(com.liferay.portal.kernel.service.PortletLocalService portletLocalService) |
protected void |
setThemeLocalService(com.liferay.portal.kernel.service.ThemeLocalService themeLocalService) |
protected void |
setThemeSettingProperties(javax.portlet.ActionRequest actionRequest,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
java.util.Map<java.lang.String,com.liferay.portal.kernel.model.ThemeSetting> themeSettings,
java.lang.String device,
boolean isLayout) |
void |
toggleCustomizedView(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse) |
protected void |
updateLogo(javax.portlet.ActionRequest actionRequest,
long liveGroupId,
long stagingGroupId,
boolean privateLayout) |
protected void |
updateLookAndFeel(javax.portlet.ActionRequest actionRequest,
long companyId,
long liveGroupId,
long stagingGroupId,
boolean privateLayout,
long layoutId,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) |
protected void |
updateLookAndFeel(javax.portlet.ActionRequest actionRequest,
long companyId,
long liveGroupId,
long stagingGroupId,
boolean privateLayout,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) |
protected void |
updateMergePages(javax.portlet.ActionRequest actionRequest,
long liveGroupId) |
protected void |
updateRobots(javax.portlet.ActionRequest actionRequest,
long liveGroupId,
boolean privateLayout) |
protected void |
updateSettings(javax.portlet.ActionRequest actionRequest,
long liveGroupId,
long stagingGroupId,
boolean privateLayout,
com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) |
protected com.liferay.portal.kernel.util.UnicodeProperties |
updateThemeSettingsProperties(javax.portlet.ActionRequest actionRequest,
long companyId,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
java.lang.String device,
java.lang.String deviceThemeId,
boolean isLayout) |
callActionMethod, callResourceMethod, checkPath, checkPermissions, destroy, doAbout, doConfig, doEdit, doEditDefaults, doEditGuest, doHelp, doPreview, doPrint, doView, getMVCPathAttributeName, getPath, hideDefaultErrorMessage, hideDefaultSuccessMessage, include, include, include, include, include, init, invokeHideDefaultSuccessMessage, invokeTaglibDiscussion, invokeTaglibDiscussionPagination, processAction, render, serveResourceaddSuccessMessage, getActionMethod, getJSONContentType, getRedirect, getResourceMethod, getServletContext, getTitle, isEmptySessionMessages, isProcessActionRequest, isProcessPortletRequest, isProcessRenderRequest, isProcessResourceRequest, sendRedirect, translate, translate, writeJSON, writeJSONdoHeaders, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, init, processEventprotected com.liferay.document.library.kernel.service.DLAppLocalService dlAppLocalService
protected com.liferay.portal.kernel.service.GroupLocalService groupLocalService
protected com.liferay.application.list.GroupProvider groupProvider
protected com.liferay.portal.kernel.service.GroupService groupService
protected com.liferay.portal.kernel.service.LayoutLocalService layoutLocalService
protected com.liferay.portal.kernel.service.LayoutPrototypeLocalService layoutPrototypeLocalService
protected com.liferay.portal.kernel.service.LayoutPrototypeService layoutPrototypeService
protected com.liferay.portal.kernel.service.LayoutRevisionLocalService layoutRevisionLocalService
protected com.liferay.portal.kernel.service.LayoutService layoutService
protected com.liferay.portal.kernel.service.LayoutSetLocalService layoutSetLocalService
protected com.liferay.portal.kernel.service.LayoutSetService layoutSetService
protected com.liferay.mobile.device.rules.service.MDRActionLocalService mdrActionLocalService
protected com.liferay.mobile.device.rules.service.MDRActionService mdrActionService
protected com.liferay.mobile.device.rules.service.MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService
protected com.liferay.mobile.device.rules.service.MDRRuleGroupInstanceService mdrRuleGroupInstanceService
protected com.liferay.portal.kernel.service.PortletLocalService portletLocalService
protected com.liferay.portal.kernel.service.ThemeLocalService themeLocalService
public void addLayout(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exceptionpublic void copyApplications(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exceptionpublic void deleteEmbeddedPortlets(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exceptionpublic void deleteLayout(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exceptionpublic void editLayout(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exceptionpublic void editLayoutSet(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exceptionpublic void enableLayout(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exceptionpublic void resetCustomizationView(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exceptionpublic void resetMergeFailCountAndMerge(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
layoutPrototypeId
param. Once the counter is reset, the modified page template is merged
back into its linked page, which is accessed from the action request's
selPlid param.
If the number of failed merge attempts is not equal to zero after the
merge, an error key is submitted into the SessionErrors.
actionRequest - the action requestjava.lang.Exception - if an exception occurredpublic void resetPrototype(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exceptionpublic void toggleCustomizedView(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
throws java.lang.Exception
java.lang.Exceptionprotected void deleteThemeSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
java.lang.String device)
protected void doDispatch(javax.portlet.RenderRequest renderRequest,
javax.portlet.RenderResponse renderResponse)
throws java.io.IOException,
javax.portlet.PortletException
doDispatch in class com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortletjava.io.IOExceptionjavax.portlet.PortletExceptionprotected java.lang.String getColorSchemeId(long companyId,
java.lang.String themeId,
java.lang.String colorSchemeId)
throws java.lang.Exception
java.lang.Exceptionprotected com.liferay.portal.kernel.model.Group getGroup(javax.portlet.PortletRequest portletRequest)
throws java.lang.Exception
java.lang.Exceptionprotected byte[] getIconBytes(com.liferay.portal.kernel.upload.UploadPortletRequest uploadPortletRequest,
java.lang.String iconFileName)
protected void inheritMobileRuleGroups(com.liferay.portal.kernel.model.Layout layout,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected boolean isAlwaysSendRedirect()
isAlwaysSendRedirect in class com.liferay.portal.kernel.portlet.LiferayPortletprotected boolean isSessionErrorException(java.lang.Throwable cause)
isSessionErrorException in class com.liferay.portal.kernel.portlet.LiferayPortletprotected void setDLAppLocalService(com.liferay.document.library.kernel.service.DLAppLocalService dlAppLocalService)
protected void setGroupLocalService(com.liferay.portal.kernel.service.GroupLocalService groupLocalService)
protected void setGroupProvider(com.liferay.application.list.GroupProvider groupProvider)
protected void setGroupService(com.liferay.portal.kernel.service.GroupService groupService)
protected void setLayoutLocalService(com.liferay.portal.kernel.service.LayoutLocalService layoutLocalService)
protected void setLayoutPrototypeLocalService(com.liferay.portal.kernel.service.LayoutPrototypeLocalService layoutPrototypeLocalService)
protected void setLayoutPrototypeService(com.liferay.portal.kernel.service.LayoutPrototypeService layoutPrototypeService)
protected void setLayoutRevisionLocalService(com.liferay.portal.kernel.service.LayoutRevisionLocalService layoutRevisionLocalService)
protected void setLayoutService(com.liferay.portal.kernel.service.LayoutService layoutService)
protected void setLayoutSetLocalService(com.liferay.portal.kernel.service.LayoutSetLocalService layoutSetLocalService)
protected void setLayoutSetService(com.liferay.portal.kernel.service.LayoutSetService layoutSetService)
protected void setMDRActionLocalService(com.liferay.mobile.device.rules.service.MDRActionLocalService mdrActionLocalService)
protected void setMDRActionService(com.liferay.mobile.device.rules.service.MDRActionService mdrActionService)
protected void setMDRRuleGroupInstanceLocalService(com.liferay.mobile.device.rules.service.MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService)
protected void setMDRRuleGroupInstanceService(com.liferay.mobile.device.rules.service.MDRRuleGroupInstanceService mdrRuleGroupInstanceService)
protected void setPortletLocalService(com.liferay.portal.kernel.service.PortletLocalService portletLocalService)
protected void setThemeLocalService(com.liferay.portal.kernel.service.ThemeLocalService themeLocalService)
protected void setThemeSettingProperties(javax.portlet.ActionRequest actionRequest,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
java.util.Map<java.lang.String,com.liferay.portal.kernel.model.ThemeSetting> themeSettings,
java.lang.String device,
boolean isLayout)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void updateLogo(javax.portlet.ActionRequest actionRequest,
long liveGroupId,
long stagingGroupId,
boolean privateLayout)
throws java.lang.Exception
java.lang.Exceptionprotected void updateLookAndFeel(javax.portlet.ActionRequest actionRequest,
long companyId,
long liveGroupId,
long stagingGroupId,
boolean privateLayout,
long layoutId,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
throws java.lang.Exception
java.lang.Exceptionprotected void updateLookAndFeel(javax.portlet.ActionRequest actionRequest,
long companyId,
long liveGroupId,
long stagingGroupId,
boolean privateLayout,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
throws java.lang.Exception
java.lang.Exceptionprotected void updateMergePages(javax.portlet.ActionRequest actionRequest,
long liveGroupId)
throws java.lang.Exception
java.lang.Exceptionprotected void updateRobots(javax.portlet.ActionRequest actionRequest,
long liveGroupId,
boolean privateLayout)
throws java.lang.Exception
java.lang.Exceptionprotected void updateSettings(javax.portlet.ActionRequest actionRequest,
long liveGroupId,
long stagingGroupId,
boolean privateLayout,
com.liferay.portal.kernel.util.UnicodeProperties settingsProperties)
throws java.lang.Exception
java.lang.Exceptionprotected com.liferay.portal.kernel.util.UnicodeProperties updateThemeSettingsProperties(javax.portlet.ActionRequest actionRequest,
long companyId,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
java.lang.String device,
java.lang.String deviceThemeId,
boolean isLayout)
throws java.lang.Exception
java.lang.Exception