|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.endeca.portal.util.ApplicationUtil
public class ApplicationUtil
Field Summary | |
---|---|
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 Summary | |
---|---|
ApplicationUtil()
|
Method Summary | |
---|---|
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 void |
updateApplicationDataSourceBindings(com.liferay.portal.model.Group group)
Wrapper for implementation above when setting all portlets to the same datasource. |
static void |
updateApplicationDataSourceBindings(com.liferay.portal.model.Group group,
boolean maintainPortletPreferences)
|
static void |
updateApplicationDataSourceBindings(com.liferay.portal.model.Layout layout,
java.lang.String dataSourceId,
java.lang.String dataSetId,
boolean maintainPortletPreferences)
Update the data source and/or data set for all portlets present on a given page. |
static void |
updateApplicationDataSourceBindings(long applicationId,
java.lang.String dataSourceId)
|
static void |
updateApplicationDataSourceBindings(long applicationId,
java.lang.String dataSourceId,
boolean maintainPortletPreferences)
Update the dataSourceId for all portlets present in an application. |
static void |
updateApplicationDataSourceBindings(long applicationId,
java.lang.String dataSourceId,
java.lang.String dataSetId,
boolean maintainPortletPreferences)
Update the data source and/or data set for all portlets present in an application. |
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 void |
validateAndRepairDataSourceBindings(long applicationId,
boolean maintainPortletPreferences)
This utility method will loop over all pages and portlets to make sure that the portlet datasource is in the family of the application's datasource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public ApplicationUtil()
Method Detail |
---|
public static void updateApplicationDataSourceBindings(com.liferay.portal.model.Layout layout, java.lang.String dataSourceId, java.lang.String dataSetId, boolean maintainPortletPreferences) throws com.liferay.portal.SystemException, javax.portlet.ReadOnlyException, javax.portlet.ValidatorException, java.io.IOException
layout
- the page containing the portlets to be updateddataSourceId
- the data source to which portlets should be updateddataSetId
- the data set to which portlets should be updatedmaintainPortletPreferences
- true if portlets should attempt to preserve some/all of their config
com.liferay.portal.SystemException
- on error inspecting the page or portlets
javax.portlet.ReadOnlyException
- on error updating a portlet's preferences
javax.portlet.ValidatorException
- on error saving a portlet's preferences
java.io.IOException
- on error saving a portlet's preferencespublic static void updateApplicationDataSourceBindings(long applicationId, java.lang.String dataSourceId, java.lang.String dataSetId, boolean maintainPortletPreferences) throws com.liferay.portal.SystemException, javax.portlet.ReadOnlyException, javax.portlet.ValidatorException, java.io.IOException
applicationId
- dataSourceId
- dataSetId
- maintainPortletPreferences
-
com.liferay.portal.SystemException
javax.portlet.ReadOnlyException
javax.portlet.ValidatorException
java.io.IOException
public static void updateApplicationDataSourceBindings(long applicationId, java.lang.String dataSourceId, boolean maintainPortletPreferences) throws com.liferay.portal.SystemException, javax.portlet.ReadOnlyException, javax.portlet.ValidatorException, java.io.IOException
groupId
- dataSourceId
-
com.liferay.portal.SystemException
javax.portlet.ReadOnlyException
java.io.IOException
javax.portlet.ValidatorException
public static void updateApplicationDataSourceBindings(com.liferay.portal.model.Group group) throws com.liferay.portal.SystemException, javax.portlet.ReadOnlyException, javax.portlet.ValidatorException, java.io.IOException
group
-
com.liferay.portal.SystemException
javax.portlet.ReadOnlyException
javax.portlet.ValidatorException
java.io.IOException
public static void updateApplicationDataSourceBindings(long applicationId, java.lang.String dataSourceId) throws com.liferay.portal.SystemException, javax.portlet.ReadOnlyException, javax.portlet.ValidatorException, java.io.IOException
com.liferay.portal.SystemException
javax.portlet.ReadOnlyException
javax.portlet.ValidatorException
java.io.IOException
public static void updateApplicationDataSourceBindings(com.liferay.portal.model.Group group, boolean maintainPortletPreferences) throws com.liferay.portal.SystemException, javax.portlet.ReadOnlyException, javax.portlet.ValidatorException, java.io.IOException
com.liferay.portal.SystemException
javax.portlet.ReadOnlyException
javax.portlet.ValidatorException
java.io.IOException
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 void validateAndRepairDataSourceBindings(long applicationId, boolean maintainPortletPreferences) throws com.liferay.portal.SystemException, javax.portlet.ReadOnlyException, javax.portlet.ValidatorException, java.io.IOException, com.liferay.portal.PortalException
applicationId
- - groupId or applicationId of the application to be correctedmaintainPortletPreferences
- - should the portlet maintain configuration even if changing datasource binding.
com.liferay.portal.SystemException
javax.portlet.ReadOnlyException
javax.portlet.ValidatorException
java.io.IOException
com.liferay.portal.PortalException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |