Package com.liferay.layout.util
Interface BulkLayoutConverter
public interface BulkLayoutConverter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
convertLayout
(long plid) Converts a layout of typeLayoutConstants#TYPE_PORTLET
into a layout of typeLayoutConstants#TYPE_CONTENT
long[]
convertLayouts
(long groupId) Converts all convertible layouts in the group of typeLayoutConstants#TYPE_PORTLET
into layouts of typeLayoutConstants#TYPE_CONTENT
long[]
convertLayouts
(long[] plids) Converts multiple layouts of typeLayoutConstants#TYPE_PORTLET
into layouts of typeLayoutConstants#TYPE_CONTENT
generatePreviewLayout
(long plid, Locale locale) long[]
getConvertibleLayoutPlids
(long groupId) Returns the plids of the convertible layouts in the group
-
Method Details
-
convertLayout
void convertLayout(long plid) throws com.liferay.portal.kernel.exception.PortalException Converts a layout of typeLayoutConstants#TYPE_PORTLET
into a layout of typeLayoutConstants#TYPE_CONTENT
- Parameters:
plid
- the primary key of the layout- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred
-
convertLayouts
long[] convertLayouts(long groupId) throws com.liferay.portal.kernel.exception.PortalException Converts all convertible layouts in the group of typeLayoutConstants#TYPE_PORTLET
into layouts of typeLayoutConstants#TYPE_CONTENT
This method handles the conversion of each layout within a transaction.
- Parameters:
groupId
- the primary key of the group- Returns:
- an array with the plids of the layouts that have been successfully converted
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
convertLayouts
long[] convertLayouts(long[] plids) Converts multiple layouts of typeLayoutConstants#TYPE_PORTLET
into layouts of typeLayoutConstants#TYPE_CONTENT
This method handles the conversion of each layout within a transaction.
- Parameters:
plids
- an array with the primary keys of the layouts to be converted- Returns:
- an array with the plids of the layouts that have been successfully converted
-
generatePreviewLayout
- Throws:
Exception
-
getConvertibleLayoutPlids
long[] getConvertibleLayoutPlids(long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the plids of the convertible layouts in the group- Parameters:
groupId
- the primary key of the group- Returns:
- an array with the plids of the convertible layouts in the group
- Throws:
com.liferay.portal.kernel.exception.PortalException
-