public interface BulkLayoutConverter
| Modifier and Type | Method and Description |
|---|---|
void |
convertLayout(long plid)
Converts a layout of type
LayoutConstants#TYPE_PORTLET into a
layout of type LayoutConstants#TYPE_CONTENT |
long[] |
convertLayouts(long groupId)
Converts all convertible layouts in the group of type
LayoutConstants#TYPE_PORTLET into layouts of type LayoutConstants#TYPE_CONTENT |
long[] |
convertLayouts(long[] plids)
Converts multiple layouts of type
LayoutConstants#TYPE_PORTLET
into layouts of type LayoutConstants#TYPE_CONTENT |
com.liferay.portal.kernel.model.Layout |
generatePreviewLayout(long plid)
Deprecated.
As of Athanasius (7.3.x), replaced by
generatePreviewLayout(long, Locale) |
default LayoutConversionResult |
generatePreviewLayout(long plid,
java.util.Locale locale) |
long[] |
getConvertibleLayoutPlids(long groupId)
Returns the plids of the convertible layouts in the group
|
void convertLayout(long plid)
throws com.liferay.portal.kernel.exception.PortalException
LayoutConstants#TYPE_PORTLET into a
layout of type LayoutConstants#TYPE_CONTENTplid - the primary key of the layoutcom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredlong[] convertLayouts(long groupId)
throws com.liferay.portal.kernel.exception.PortalException
LayoutConstants#TYPE_PORTLET into layouts of type LayoutConstants#TYPE_CONTENT
This method handles the conversion of each layout within a transaction.
groupId - the primary key of the groupcom.liferay.portal.kernel.exception.PortalExceptionlong[] convertLayouts(long[] plids)
LayoutConstants#TYPE_PORTLET
into layouts of type LayoutConstants#TYPE_CONTENT
This method handles the conversion of each layout within a transaction.
plids - an array with the primary keys of the layouts to be
converted@Deprecated
com.liferay.portal.kernel.model.Layout generatePreviewLayout(long plid)
throws java.lang.Exception
generatePreviewLayout(long, Locale)java.lang.Exceptiondefault LayoutConversionResult generatePreviewLayout(long plid, java.util.Locale locale) throws java.lang.Exception
java.lang.Exceptionlong[] getConvertibleLayoutPlids(long groupId)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupcom.liferay.portal.kernel.exception.PortalException