Package com.liferay.layout.util
Interface BulkLayoutConverter
public interface BulkLayoutConverter
-
Method Summary
Modifier and TypeMethodDescriptionvoidconvertLayout(long plid) Converts a layout of typeLayoutConstants#TYPE_PORTLETinto a layout of typeLayoutConstants#TYPE_CONTENTlong[]convertLayouts(long groupId) Converts all convertible layouts in the group of typeLayoutConstants#TYPE_PORTLETinto layouts of typeLayoutConstants#TYPE_CONTENTlong[]convertLayouts(long[] plids) Converts multiple layouts of typeLayoutConstants#TYPE_PORTLETinto layouts of typeLayoutConstants#TYPE_CONTENTgeneratePreviewLayout(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_PORTLETinto 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_PORTLETinto layouts of typeLayoutConstants#TYPE_CONTENTThis 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_PORTLETinto layouts of typeLayoutConstants#TYPE_CONTENTThis 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
-