public class ApplicationUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPONENT_CONTAINER_PORTLET_NAME |
static java.lang.String |
TABBED_COMPONENT_CONTAINER_PORTLET_NAME |
static java.lang.String |
UPDATE_APPLICATION_CONFIGURATION_INFO |
Constructor and Description |
---|
ApplicationUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
getPortletIdList(com.liferay.portal.model.Layout layout,
java.lang.String containerPortletId)
Get the list of all portletIds present in the passed layout.
|
static boolean |
portletIsContainer(com.liferay.portal.model.Portlet portlet)
Check if the portlet is a container portlet.
|
static com.liferay.portal.model.Group |
updateGroup(javax.portlet.PortletRequest request) |
static com.liferay.portal.model.Group |
updateGroup(javax.portlet.PortletRequest request,
boolean resetPagesPermission) |
static com.liferay.portal.model.Group |
updateGroup(javax.portlet.PortletRequest request,
boolean resetPagesPermission,
boolean saveImageId) |
static void |
updatePortletViewBindings(long groupId,
java.lang.String fromViewKey,
java.lang.String toViewKey,
boolean maintainPortletPrefs)
For each portlet within a project, changes its view key binding if the portlet is currently bound to the
specified fromViewKey.
|
public static final java.lang.String TABBED_COMPONENT_CONTAINER_PORTLET_NAME
public static final java.lang.String COMPONENT_CONTAINER_PORTLET_NAME
public static final java.lang.String UPDATE_APPLICATION_CONFIGURATION_INFO
public static java.util.List<java.lang.String> getPortletIdList(com.liferay.portal.model.Layout layout, java.lang.String containerPortletId) throws com.liferay.portal.SystemException
layout
- containerPortletId
- - PortletId of the container portlet. This value can be null.com.liferay.portal.SystemException
public static boolean portletIsContainer(com.liferay.portal.model.Portlet portlet)
portlet
- public static com.liferay.portal.model.Group updateGroup(javax.portlet.PortletRequest request) throws java.lang.Exception
java.lang.Exception
public static com.liferay.portal.model.Group updateGroup(javax.portlet.PortletRequest request, boolean resetPagesPermission) throws java.lang.Exception
java.lang.Exception
public static com.liferay.portal.model.Group updateGroup(javax.portlet.PortletRequest request, boolean resetPagesPermission, boolean saveImageId) throws java.lang.Exception
java.lang.Exception
public static void updatePortletViewBindings(long groupId, java.lang.String fromViewKey, java.lang.String toViewKey, boolean maintainPortletPrefs) throws com.liferay.portal.SystemException, javax.portlet.PortletException, java.io.IOException
groupId
- project idfromViewKey
- only update binding if currently using this view keytoViewKey
- new view key to update tomaintainPortletPrefs
- if the portlet preferences should be maintained or discardedcom.liferay.portal.SystemException
javax.portlet.ReadOnlyException
java.io.IOException
javax.portlet.ValidatorException
javax.portlet.PortletException
Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.