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 int |
communityToLayoutTypeConverter(int communityType) |
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 saveImageId) |
static com.liferay.portal.model.Group |
updateGroup(javax.portlet.PortletRequest request,
boolean saveImageId,
long[] addedUsers,
long[] removedUsers,
long[] addedUserGroups,
long[] removedUserGroups,
java.util.Map<java.lang.Long,java.lang.Long> addedUserRoles,
java.util.Map<java.lang.Long,java.lang.Long> addedUserGroupRoles,
boolean isShareOp) |
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.
|
static boolean |
validateProjectInfo(java.lang.String projectInfo)
validate project, like name, description, and tag
|
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 saveImageId) throws java.lang.Exception
java.lang.Exception
public static com.liferay.portal.model.Group updateGroup(javax.portlet.PortletRequest request, boolean saveImageId, long[] addedUsers, long[] removedUsers, long[] addedUserGroups, long[] removedUserGroups, java.util.Map<java.lang.Long,java.lang.Long> addedUserRoles, java.util.Map<java.lang.Long,java.lang.Long> addedUserGroupRoles, boolean isShareOp) 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
public static int communityToLayoutTypeConverter(int communityType)
public static boolean validateProjectInfo(java.lang.String projectInfo)
projectInfo
- Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.