public class LayoutLocalServiceImpl extends LayoutLocalServiceBaseImpl
| Modifier and Type | Field and Description |
|---|---|
protected LayoutLocalServiceHelper |
layoutLocalServiceHelper |
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, backgroundTaskLocalService, backgroundTaskPersistence, backgroundTaskService, classNameLocalService, classNamePersistence, classNameService, counterLocalService, expandoRowLocalService, expandoRowPersistence, exportImportConfigurationLocalService, exportImportConfigurationPersistence, exportImportConfigurationService, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, layoutFinder, layoutFriendlyURLLocalService, layoutFriendlyURLPersistence, layoutLocalService, layoutPersistence, layoutPrototypeLocalService, layoutPrototypePersistence, layoutPrototypeService, layoutService, layoutSetLocalService, layoutSetPersistence, layoutSetPrototypeLocalService, layoutSetPrototypePersistence, layoutSetPrototypeService, layoutSetService, persistedModelLocalServiceRegistry, pluginSettingLocalService, pluginSettingPersistence, pluginSettingService, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceLocalService, resourcePermissionFinder, resourcePermissionLocalService, resourcePermissionPersistence, resourcePermissionService, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, userService| Constructor and Description |
|---|
LayoutLocalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portal.model.Layout |
addLayout(long userId,
long groupId,
boolean privateLayout,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Map<java.util.Locale,java.lang.String> keywordsMap,
java.util.Map<java.util.Locale,java.lang.String> robotsMap,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
com.liferay.portal.service.ServiceContext serviceContext)
Deprecated.
|
com.liferay.portal.model.Layout |
addLayout(long userId,
long groupId,
boolean privateLayout,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Map<java.util.Locale,java.lang.String> keywordsMap,
java.util.Map<java.util.Locale,java.lang.String> robotsMap,
java.lang.String type,
java.lang.String typeSettings,
boolean hidden,
java.util.Map<java.util.Locale,java.lang.String> friendlyURLMap,
com.liferay.portal.service.ServiceContext serviceContext)
Adds a layout with additional parameters.
|
com.liferay.portal.model.Layout |
addLayout(long userId,
long groupId,
boolean privateLayout,
long parentLayoutId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
com.liferay.portal.service.ServiceContext serviceContext)
Adds a layout with single entry maps for name, title, and description to
the default locale.
|
void |
deleteLayout(com.liferay.portal.model.Layout layout,
boolean updateLayoutSet,
com.liferay.portal.service.ServiceContext serviceContext)
Deletes the layout, its child layouts, and its associated resources.
|
void |
deleteLayout(long groupId,
boolean privateLayout,
long layoutId,
com.liferay.portal.service.ServiceContext serviceContext)
Deletes the layout with the primary key, also deleting the layout's child
layouts, and associated resources.
|
void |
deleteLayout(long plid,
com.liferay.portal.service.ServiceContext serviceContext)
Deletes the layout with the plid, also deleting the layout's child
layouts, and associated resources.
|
void |
deleteLayouts(long groupId,
boolean privateLayout,
com.liferay.portal.service.ServiceContext serviceContext)
Deletes the group's private or non-private layouts, also deleting the
layouts' child layouts, and associated resources.
|
byte[] |
exportLayouts(long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
Deprecated.
As of 7.0.0, with no direct replacement
|
byte[] |
exportLayouts(long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
Deprecated.
As of 7.0.0, with no direct replacement
|
java.io.File |
exportLayoutsAsFile(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.exportLayoutsAsFile(
ExportImportConfiguration) |
java.io.File |
exportLayoutsAsFile(long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
Deprecated.
As of 7.0.0, with no direct replacement
|
long |
exportLayoutsAsFileInBackground(long userId,
com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.exportLayoutsAsFileInBackground(
long, ExportImportConfiguration) |
long |
exportLayoutsAsFileInBackground(long userId,
long exportImportConfigurationId)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.exportLayoutsAsFileInBackground(
long, long) |
long |
exportLayoutsAsFileInBackground(long userId,
java.lang.String taskName,
long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
Deprecated.
As of 7.0.0, with no direct replacement
|
long |
exportLayoutsAsFileInBackground(long userId,
java.lang.String taskName,
long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String fileName)
Deprecated.
As of 7.0.0, with no direct replacement
|
byte[] |
exportPortletInfo(long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
Deprecated.
As of 7.0.0, with no direct replacement
|
byte[] |
exportPortletInfo(long companyId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
Deprecated.
As of 7.0.0, with no direct replacement
|
java.io.File |
exportPortletInfoAsFile(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.exportPortletInfoAsFile(
ExportImportConfiguration)} |
java.io.File |
exportPortletInfoAsFile(long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
Deprecated.
As of 7.0.0, with no direct replacement
|
java.io.File |
exportPortletInfoAsFile(long companyId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
Deprecated.
As of 7.0.0, with no direct replacement
|
long |
exportPortletInfoAsFileInBackground(long userId,
com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.exportPortletInfoAsFileInBackground(
long, ExportImportConfiguration)} |
long |
exportPortletInfoAsFileInBackground(long userId,
long exportImportConfigurationId)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.exportPortletInfoAsFileInBackground(
long, long)} |
long |
exportPortletInfoAsFileInBackground(long userId,
java.lang.String taskName,
long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String fileName)
Deprecated.
As of 7.0.0, with no direct replacement
|
long |
exportPortletInfoAsFileInBackground(long userId,
java.lang.String taskName,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String fileName)
Deprecated.
As of 7.0.0, with no direct replacement
|
com.liferay.portal.model.Layout |
fetchFirstLayout(long groupId,
boolean privateLayout,
long parentLayoutId) |
com.liferay.portal.model.Layout |
fetchLayout(long groupId,
boolean privateLayout,
long layoutId) |
com.liferay.portal.model.Layout |
fetchLayoutByFriendlyURL(long groupId,
boolean privateLayout,
java.lang.String friendlyURL) |
static java.lang.String |
getCounterName(long groupId,
boolean privateLayout)
Returns the object counter's name.
|
long |
getDefaultPlid(long groupId)
Returns the primary key of the default layout for the group
|
long |
getDefaultPlid(long groupId,
boolean privateLayout)
Returns primary key of the matching default layout for the group
|
long |
getDefaultPlid(long groupId,
boolean privateLayout,
java.lang.String portletId)
Returns primary key of the default portlet layout for the group
|
com.liferay.portal.model.Layout |
getFriendlyURLLayout(long groupId,
boolean privateLayout,
java.lang.String friendlyURL)
Returns the layout for the friendly URL
|
com.liferay.portal.model.Layout |
getLayout(long groupId,
boolean privateLayout,
long layoutId)
Returns the layout matching the primary key, group, and privacy; throws a
NoSuchLayoutException otherwise. |
com.liferay.portal.model.Layout |
getLayoutByIconImageId(long iconImageId)
Returns the layout for the icon image; throws a
NoSuchLayoutException otherwise. |
java.util.List<com.liferay.portal.model.Layout> |
getLayouts(long groupId,
boolean privateLayout)
Returns all the layouts belonging to the group.
|
java.util.List<com.liferay.portal.model.Layout> |
getLayouts(long groupId,
boolean privateLayout,
long parentLayoutId)
Returns all the layouts belonging to the group that are children of the
parent layout.
|
java.util.List<com.liferay.portal.model.Layout> |
getLayouts(long groupId,
boolean privateLayout,
long[] layoutIds)
Returns all the layouts that match the layout IDs and belong to the
group.
|
java.util.List<com.liferay.portal.model.Layout> |
getLayouts(long groupId,
boolean privateLayout,
long parentLayoutId,
boolean incomplete,
int start,
int end)
Returns a range of all the layouts belonging to the group that are
children of the parent layout.
|
java.util.List<com.liferay.portal.model.Layout> |
getLayouts(long groupId,
boolean privateLayout,
java.lang.String type)
Returns all the layouts that match the type and belong to the group.
|
com.liferay.portal.model.LayoutReference[] |
getLayouts(long companyId,
java.lang.String portletId,
java.lang.String preferencesKey,
java.lang.String preferencesValue)
Returns the layout references for all the layouts that belong to the
company and belong to the portlet that matches the preferences.
|
java.util.List<com.liferay.portal.model.Layout> |
getLayoutsByLayoutPrototypeUuid(java.lang.String layoutPrototypeUuid) |
int |
getLayoutsByLayoutPrototypeUuidCount(java.lang.String layoutPrototypeUuid) |
int |
getLayoutsCount(com.liferay.portal.model.Group group,
boolean privateLayout) |
int |
getLayoutsCount(com.liferay.portal.model.Group group,
boolean privateLayout,
boolean includeUserGroups) |
int |
getLayoutsCount(com.liferay.portal.model.Group group,
boolean privateLayout,
long parentLayoutId) |
int |
getLayoutsCount(com.liferay.portal.model.User user,
boolean privateLayout) |
int |
getLayoutsCount(com.liferay.portal.model.User user,
boolean privateLayout,
boolean includeUserGroups) |
long |
getNextLayoutId(long groupId,
boolean privateLayout)
Returns the primary key to use for the next layout.
|
java.util.List<com.liferay.portal.model.Layout> |
getNoPermissionLayouts(long roleId)
Returns all the layouts without resource permissions
|
java.util.List<com.liferay.portal.model.Layout> |
getNullFriendlyURLLayouts()
Returns all the layouts whose friendly URLs are
null |
com.liferay.portal.model.Layout |
getParentLayout(com.liferay.portal.model.Layout layout) |
java.util.List<com.liferay.portal.model.Layout> |
getScopeGroupLayouts(long groupId,
boolean privateLayout)
Returns all the layouts within scope of the group
|
boolean |
hasLayouts(com.liferay.portal.model.Group group,
boolean privateLayout) |
boolean |
hasLayouts(com.liferay.portal.model.Group group,
boolean privateLayout,
boolean includeUserGroups) |
boolean |
hasLayouts(long groupId,
boolean privateLayout,
long parentLayoutId)
Returns
true if the group has any layouts;
false otherwise. |
boolean |
hasLayouts(com.liferay.portal.model.User user,
boolean privateLayout) |
boolean |
hasLayouts(com.liferay.portal.model.User user,
boolean privateLayout,
boolean includeUserGroups) |
boolean |
hasLayoutSetPrototypeLayout(long layoutSetPrototypeId,
java.lang.String layoutUuid) |
boolean |
hasLayoutSetPrototypeLayout(java.lang.String layoutSetPrototypeUuid,
long companyId,
java.lang.String layoutUuid) |
void |
importLayouts(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.importLayouts(
ExportImportConfiguration, File)} |
void |
importLayouts(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.InputStream is)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.importLayouts(
ExportImportConfiguration, InputStream)} |
void |
importLayouts(long userId,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
byte[] bytes)
Deprecated.
As of 7.0.0, with no direct replacement
|
void |
importLayouts(long userId,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
Deprecated.
As of 7.0.0, with no direct replacement
|
void |
importLayouts(long userId,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
Deprecated.
As of 7.0.0, with no direct replacement
|
void |
importLayoutsDataDeletions(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.importLayoutsDataDeletions(
ExportImportConfiguration, File) |
long |
importLayoutsInBackground(long userId,
com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.importLayoutsInBackground(
long, ExportImportConfiguration, File) |
long |
importLayoutsInBackground(long userId,
long exportImportConfigurationId,
java.io.File file)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.importLayoutsInBackground(
long, long, File) |
long |
importLayoutsInBackground(long userId,
java.lang.String taskName,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
Deprecated.
As of 7.0.0, with no direct replacement
|
long |
importLayoutsInBackground(long userId,
java.lang.String taskName,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
Deprecated.
As of 7.0.0, with no direct replacement
|
void |
importPortletDataDeletions(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.importPortletDataDeletions(
ExportImportConfiguration, File) |
void |
importPortletInfo(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.importPortletInfo(
ExportImportConfiguration, File) |
void |
importPortletInfo(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.InputStream is)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.importPortletInfo(
ExportImportConfiguration, InputStream) |
void |
importPortletInfo(long userId,
long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
Deprecated.
As of 7.0.0, with no direct replacement
|
void |
importPortletInfo(long userId,
long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
Deprecated.
As of 7.0.0, with no direct replacement
|
void |
importPortletInfo(long userId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
Deprecated.
As of 7.0.0, with no direct replacement
|
void |
importPortletInfo(long userId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
Deprecated.
As of 7.0.0, with no direct replacement
|
long |
importPortletInfoInBackground(long userId,
com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.importPortletInfoInBackground(
long, ExportImportConfiguration, File) |
long |
importPortletInfoInBackground(long userId,
long exportImportConfigurationId,
java.io.File file)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.importPortletInfoInBackground(
long, long, File) |
long |
importPortletInfoInBackground(long userId,
java.lang.String taskName,
long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
Deprecated.
As of 7.0.0, with no direct replacement
|
long |
importPortletInfoInBackground(long userId,
java.lang.String taskName,
long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
Deprecated.
As of 7.0.0, with no direct replacement
|
long |
importPortletInfoInBackground(long userId,
java.lang.String taskName,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
Deprecated.
As of 7.0.0, with no direct replacement
|
long |
importPortletInfoInBackground(long userId,
java.lang.String taskName,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
Deprecated.
As of 7.0.0, with no direct replacement
|
void |
setLayouts(long groupId,
boolean privateLayout,
long parentLayoutId,
long[] layoutIds,
com.liferay.portal.service.ServiceContext serviceContext)
Sets the layouts for the group, replacing and prioritizing all layouts of
the parent layout.
|
void |
updateAsset(long userId,
com.liferay.portal.model.Layout layout,
long[] assetCategoryIds,
java.lang.String[] assetTagNames) |
com.liferay.portal.model.Layout |
updateFriendlyURL(long userId,
long plid,
java.lang.String friendlyURL,
java.lang.String languageId)
Updates the friendly URL of the layout.
|
com.liferay.portal.model.Layout |
updateFriendlyURL(long plid,
java.lang.String friendlyURL,
java.lang.String languageId)
Deprecated.
As of 7.0.0, replaced by
updateFriendlyURL(long,
long, String, String) |
com.liferay.portal.model.Layout |
updateIconImage(long plid,
byte[] bytes) |
com.liferay.portal.model.Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Map<java.util.Locale,java.lang.String> keywordsMap,
java.util.Map<java.util.Locale,java.lang.String> robotsMap,
java.lang.String type,
boolean hidden,
java.util.Map<java.util.Locale,java.lang.String> friendlyURLMap,
boolean iconImage,
byte[] iconBytes,
com.liferay.portal.service.ServiceContext serviceContext)
Updates the layout.
|
com.liferay.portal.model.Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Map<java.util.Locale,java.lang.String> keywordsMap,
java.util.Map<java.util.Locale,java.lang.String> robotsMap,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
java.lang.Boolean iconImage,
byte[] iconBytes,
com.liferay.portal.service.ServiceContext serviceContext)
Deprecated.
|
com.liferay.portal.model.Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String typeSettings)
Updates the layout replacing its type settings.
|
com.liferay.portal.model.Layout |
updateLookAndFeel(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String themeId,
java.lang.String colorSchemeId,
java.lang.String css,
boolean wapTheme)
Updates the look and feel of the layout.
|
com.liferay.portal.model.Layout |
updateName(com.liferay.portal.model.Layout layout,
java.lang.String name,
java.lang.String languageId)
Updates the name of the layout.
|
com.liferay.portal.model.Layout |
updateName(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String name,
java.lang.String languageId)
Updates the name of the layout matching the group, layout ID, and
privacy.
|
com.liferay.portal.model.Layout |
updateName(long plid,
java.lang.String name,
java.lang.String languageId)
Updates the name of the layout matching the primary key.
|
com.liferay.portal.model.Layout |
updateParentLayoutId(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId)
Updates the parent layout ID of the layout matching the group, layout ID,
and privacy.
|
com.liferay.portal.model.Layout |
updateParentLayoutId(long plid,
long parentPlid)
Updates the parent layout ID of the layout matching the primary key.
|
com.liferay.portal.model.Layout |
updateParentLayoutIdAndPriority(long plid,
long parentPlid,
int priority)
Updates the parent layout ID and priority of the layout.
|
void |
updatePriorities(long groupId,
boolean privateLayout)
Updates the priorities of the layouts.
|
com.liferay.portal.model.Layout |
updatePriority(com.liferay.portal.model.Layout layout,
int priority)
Updates the priority of the layout.
|
com.liferay.portal.model.Layout |
updatePriority(long groupId,
boolean privateLayout,
long layoutId,
int priority)
Updates the priority of the layout matching the group, layout ID, and
privacy.
|
com.liferay.portal.model.Layout |
updatePriority(long groupId,
boolean privateLayout,
long layoutId,
long nextLayoutId,
long previousLayoutId)
Updates the priority of the layout matching the group, layout ID, and
privacy, setting the layout's priority based on the priorities of the
next and previous layouts.
|
com.liferay.portal.model.Layout |
updatePriority(long plid,
int priority)
Updates the priority of the layout matching the primary key.
|
void |
updateScopedPortletNames(long groupId,
boolean privateLayout,
long layoutId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.List<java.util.Locale> nameMapModifiedLocales)
Deprecated.
As of 6.2.0, with no direct replacement
|
void |
updateScopedPortletNames(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String name,
java.lang.String languageId)
Deprecated.
As of 6.2.0, with no direct replacement
|
com.liferay.portlet.exportimport.lar.MissingReferences |
validateImportLayoutsFile(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.validateImportLayoutsFile(
ExportImportConfiguration, File) |
com.liferay.portlet.exportimport.lar.MissingReferences |
validateImportLayoutsFile(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.InputStream inputStream)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.validateImportLayoutsFile(
ExportImportConfiguration, InputStream) |
com.liferay.portlet.exportimport.lar.MissingReferences |
validateImportLayoutsFile(long userId,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
Deprecated.
As of 7.0.0, with no direct replacement
|
com.liferay.portlet.exportimport.lar.MissingReferences |
validateImportLayoutsFile(long userId,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream inputStream)
Deprecated.
As of 7.0.0, with no direct replacement
|
com.liferay.portlet.exportimport.lar.MissingReferences |
validateImportPortletInfo(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.validateImportPortletInfo(
ExportImportConfiguration, File) |
com.liferay.portlet.exportimport.lar.MissingReferences |
validateImportPortletInfo(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.InputStream inputStream)
Deprecated.
As of 7.0.0, replaced by
ExportImportLocalService.validateImportPortletInfo(
ExportImportConfiguration, InputStream) |
com.liferay.portlet.exportimport.lar.MissingReferences |
validateImportPortletInfo(long userId,
long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
Deprecated.
As of 7.0.0, with no direct replacement
|
com.liferay.portlet.exportimport.lar.MissingReferences |
validateImportPortletInfo(long userId,
long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream inputStream)
Deprecated.
As of 7.0.0, with no direct replacement
|
protected void |
validateTypeSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) |
addLayout, afterPropertiesSet, createLayout, deleteLayout, deleteLayout, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchLayout, fetchLayoutByUuidAndGroupId, getActionableDynamicQuery, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBackgroundTaskLocalService, getBackgroundTaskPersistence, getBackgroundTaskService, getBeanIdentifier, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCounterLocalService, getExpandoRowLocalService, getExpandoRowPersistence, getExportActionableDynamicQuery, getExportImportConfigurationLocalService, getExportImportConfigurationPersistence, getExportImportConfigurationService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getLayout, getLayoutByUuidAndGroupId, getLayoutFinder, getLayoutFriendlyURLLocalService, getLayoutFriendlyURLPersistence, getLayoutLocalService, getLayoutPersistence, getLayoutPrototypeLocalService, getLayoutPrototypePersistence, getLayoutPrototypeService, getLayouts, getLayoutsByUuidAndCompanyId, getLayoutsByUuidAndCompanyId, getLayoutsCount, getLayoutService, getLayoutSetLocalService, getLayoutSetPersistence, getLayoutSetPrototypeLocalService, getLayoutSetPrototypePersistence, getLayoutSetPrototypeService, getLayoutSetService, getModelClass, getModelClassName, getPersistedModel, getPluginSettingLocalService, getPluginSettingPersistence, getPluginSettingService, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceLocalService, getResourcePermissionFinder, getResourcePermissionLocalService, getResourcePermissionPersistence, getResourcePermissionService, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, initActionableDynamicQuery, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBackgroundTaskLocalService, setBackgroundTaskPersistence, setBackgroundTaskService, setBeanIdentifier, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCounterLocalService, setExpandoRowLocalService, setExpandoRowPersistence, setExportImportConfigurationLocalService, setExportImportConfigurationPersistence, setExportImportConfigurationService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setLayoutFinder, setLayoutFriendlyURLLocalService, setLayoutFriendlyURLPersistence, setLayoutLocalService, setLayoutPersistence, setLayoutPrototypeLocalService, setLayoutPrototypePersistence, setLayoutPrototypeService, setLayoutService, setLayoutSetLocalService, setLayoutSetPersistence, setLayoutSetPrototypeLocalService, setLayoutSetPrototypePersistence, setLayoutSetPrototypeService, setLayoutSetService, setPluginSettingLocalService, setPluginSettingPersistence, setPluginSettingService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceLocalService, setResourcePermissionFinder, setResourcePermissionLocalService, setResourcePermissionPersistence, setResourcePermissionService, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateLayout@BeanReference(type=LayoutLocalServiceHelper.class) protected LayoutLocalServiceHelper layoutLocalServiceHelper
public static java.lang.String getCounterName(long groupId,
boolean privateLayout)
groupId - the primary key of the groupprivateLayout - whether layout is private to the group@Deprecated
public com.liferay.portal.model.Layout addLayout(long userId,
long groupId,
boolean privateLayout,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Map<java.util.Locale,java.lang.String> keywordsMap,
java.util.Map<java.util.Locale,java.lang.String> robotsMap,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
addLayout(long, long,
boolean, long, Map, Map, Map, Map, Map, String, String,
boolean, Map, ServiceContext)This method handles the creation of the layout including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, ... etc.
userId - the primary key of the usergroupId - the primary key of the groupprivateLayout - whether the layout is private to the groupparentLayoutId - the primary key of the parent layout
(optionally LayoutConstants.DEFAULT_PARENT_LAYOUT_ID)nameMap - the layout's locales and localized namestitleMap - the layout's locales and localized titlesdescriptionMap - the layout's locales and localized
descriptionskeywordsMap - the layout's locales and localized keywordsrobotsMap - the layout's locales and localized robotstype - the layout's type (optionally LayoutConstants.TYPE_PORTLET). The possible types can be
found in LayoutConstants.hidden - whether the layout is hiddenfriendlyURL - the layout's friendly URL (optionally PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL or
PropsValues.DEFAULT_USER_PUBLIC_LAYOUT_FRIENDLY_URL).
The default values can be overridden in
portal-ext.properties by specifying new values
for the corresponding properties defined in PropsValues. To see how the URL is normalized when accessed,
see FriendlyURLNormalizerUtil.normalize(
String).serviceContext - the service context to be applied. Must set
the UUID for the layout. Can set the creation date,
modification date and the expando bridge attributes for the
layout. For layouts that belong to a layout set prototype, an
attribute named layoutUpdateable can be set to
specify whether site administrators can modify this page
within their site. For layouts that are created from a layout
prototype, attributes named layoutPrototypeUuid
and layoutPrototypeLinkedEnabled can be
specified to provide the unique identifier of the source
prototype and a boolean to determine whether a link to it
should be enabled to activate propagation of changes made to
the linked page in the prototype.com.liferay.portal.kernel.exception.PortalException - if a group or user with the primary key could
not be found, if layout values were invalid, or if a portal
exception occurredpublic com.liferay.portal.model.Layout addLayout(long userId,
long groupId,
boolean privateLayout,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Map<java.util.Locale,java.lang.String> keywordsMap,
java.util.Map<java.util.Locale,java.lang.String> robotsMap,
java.lang.String type,
java.lang.String typeSettings,
boolean hidden,
java.util.Map<java.util.Locale,java.lang.String> friendlyURLMap,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
This method handles the creation of the layout including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, ... etc.
userId - the primary key of the usergroupId - the primary key of the groupprivateLayout - whether the layout is private to the groupparentLayoutId - the primary key of the parent layout (optionally
LayoutConstants.DEFAULT_PARENT_LAYOUT_ID)nameMap - the layout's locales and localized namestitleMap - the layout's locales and localized titlesdescriptionMap - the layout's locales and localized descriptionskeywordsMap - the layout's locales and localized keywordsrobotsMap - the layout's locales and localized robotstype - the layout's type (optionally LayoutConstants.TYPE_PORTLET). The possible types can be found
in LayoutConstants.typeSettings - the settings to load the unicode properties object.
See #fastLoad(String).hidden - whether the layout is hiddenfriendlyURLMap - the layout's locales and localized friendly URLs.
To see how the URL is normalized when accessed, see FriendlyURLNormalizerUtil.normalize(
String).serviceContext - the service context to be applied. Must set the
UUID for the layout. Can set the creation date, modification
date, and expando bridge attributes for the layout. For layouts
that belong to a layout set prototype, an attribute named
layoutUpdateable can be set to specify whether site
administrators can modify this page within their site. For
layouts that are created from a layout prototype, attributes
named layoutPrototypeUuid and
layoutPrototypeLinkedEnabled can be specified to
provide the unique identifier of the source prototype and a
boolean to determine whether a link to it should be enabled to
activate propagation of changes made to the linked page in the
prototype.com.liferay.portal.kernel.exception.PortalException - if a group or user with the primary key could not
be found, if layout values were invalid, or if a portal exception
occurredpublic com.liferay.portal.model.Layout addLayout(long userId,
long groupId,
boolean privateLayout,
long parentLayoutId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
This method handles the creation of the layout including its resources, metadata, and internal data structures. It is not necessary to make subsequent calls to any methods to setup default groups, resources, ... etc.
userId - the primary key of the usergroupId - the primary key of the groupprivateLayout - whether the layout is private to the groupparentLayoutId - the primary key of the parent layout (optionally
LayoutConstants.DEFAULT_PARENT_LAYOUT_ID). The possible
values can be found in LayoutConstants.name - the layout's name (optionally PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_NAME or PropsValues.DEFAULT_USER_PUBLIC_LAYOUT_NAME). The default values
can be overridden in portal-ext.properties by
specifying new values for the corresponding properties defined in
PropsValuestitle - the layout's titledescription - the layout's descriptiontype - the layout's type (optionally LayoutConstants.TYPE_PORTLET). The possible types can be found
in LayoutConstants.hidden - whether the layout is hiddenfriendlyURL - the friendly URL of the layout (optionally PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL or PropsValues.DEFAULT_USER_PUBLIC_LAYOUT_FRIENDLY_URL). The
default values can be overridden in
portal-ext.properties by specifying new values for
the corresponding properties defined in PropsValues. To
see how the URL is normalized when accessed, see FriendlyURLNormalizerUtil.normalize(
String).serviceContext - the service context to be applied. Must set the
UUID for the layout. Can set the creation date and modification
date for the layout. For layouts that belong to a layout set
prototype, an attribute named layoutUpdateable can
be set to specify whether site administrators can modify this
page within their site.com.liferay.portal.kernel.exception.PortalException - if a group or user with the primary key could not
be found, or if a portal exception occurred@SystemEvent(action=1,
type=1)
public void deleteLayout(com.liferay.portal.model.Layout layout,
boolean updateLayoutSet,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
layout - the layoutupdateLayoutSet - whether the layout set's page counter needs to be
updatedserviceContext - the service context to be appliedcom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredpublic void deleteLayout(long groupId,
boolean privateLayout,
long layoutId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutId - the primary key of the layoutserviceContext - the service context to be appliedcom.liferay.portal.kernel.exception.PortalException - if a matching layout could not be found , or if
some other portal exception occurredpublic void deleteLayout(long plid,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
plid - the primary key of the layoutserviceContext - the service context to be appliedcom.liferay.portal.kernel.exception.PortalException - if a layout with the primary key could not be
found , or if some other portal exception occurredpublic void deleteLayouts(long groupId,
boolean privateLayout,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the groupserviceContext - the service context to be applied. The parent
layout set's page count will be updated by default, unless an
attribute named updatePageCount is set to
false.com.liferay.portal.kernel.exception.PortalException - if a group with the primary key could not be
found or if a layout set for the group and privacy could not be
found@Deprecated
public byte[] exportLayouts(long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutIds - the primary keys of the layouts to be exportedparameterMap - the mapping of parameters indicating which
information to export. For information on the keys used in
the map see PortletDataHandlerKeys.startDate - the export's start dateendDate - the export's end datecom.liferay.portal.kernel.exception.PortalException - if a group or any layout with the primary key
could not be found, or if some other portal exception
occurred@Deprecated
public byte[] exportLayouts(long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the groupparameterMap - the mapping of parameters indicating which
information to export. For information on the keys used in
the map see PortletDataHandlerKeys.startDate - the export's start dateendDate - the export's end datecom.liferay.portal.kernel.exception.PortalException - if a group with the primary key could not be
found or if some other portal exception occurred@Deprecated
public java.io.File exportLayoutsAsFile(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.exportLayoutsAsFile(
ExportImportConfiguration)com.liferay.portal.kernel.exception.PortalException@Deprecated
public java.io.File exportLayoutsAsFile(long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutIds - the primary keys of the layouts to be exported
(optionally null)parameterMap - the mapping of parameters indicating which
information to export. For information on the keys used in
the map see PortletDataHandlerKeys.startDate - the export's start dateendDate - the export's end datecom.liferay.portal.kernel.exception.PortalException - if a group or any layout with the primary key
could not be found, or if some other portal exception
occurred@Deprecated
public long exportLayoutsAsFileInBackground(long userId,
com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.exportLayoutsAsFileInBackground(
long, ExportImportConfiguration)com.liferay.portal.kernel.exception.PortalException@Deprecated
public long exportLayoutsAsFileInBackground(long userId,
long exportImportConfigurationId)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.exportLayoutsAsFileInBackground(
long, long)com.liferay.portal.kernel.exception.PortalException@Deprecated
public long exportLayoutsAsFileInBackground(long userId,
java.lang.String taskName,
long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public long exportLayoutsAsFileInBackground(long userId,
java.lang.String taskName,
long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public byte[] exportPortletInfo(long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.kernel.exception.PortalException
plid - the primary key of the layoutgroupId - the primary key of the groupportletId - the primary key of the portletparameterMap - the mapping of parameters indicating which
information to export. For information on the keys used in
the map see PortletDataHandlerKeys.startDate - the export's start dateendDate - the export's end datecom.liferay.portal.kernel.exception.PortalException - if a group or portlet with the primary key
could not be found, or if some other portal exception
occurred@Deprecated
public byte[] exportPortletInfo(long companyId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public java.io.File exportPortletInfoAsFile(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.exportPortletInfoAsFile(
ExportImportConfiguration)}com.liferay.portal.kernel.exception.PortalException@Deprecated
public java.io.File exportPortletInfoAsFile(long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.kernel.exception.PortalException
plid - the primary key of the layoutgroupId - the primary key of the groupportletId - the primary key of the portletparameterMap - the mapping of parameters indicating which
information to export. For information on the keys used in
the map see PortletDataHandlerKeys.startDate - the export's start dateendDate - the export's end datecom.liferay.portal.kernel.exception.PortalException - if a group or portlet with the primary key
could not be found, or if some other portal exception
occurred@Deprecated
public java.io.File exportPortletInfoAsFile(long companyId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public long exportPortletInfoAsFileInBackground(long userId,
com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.exportPortletInfoAsFileInBackground(
long, ExportImportConfiguration)}com.liferay.portal.kernel.exception.PortalException@Deprecated
public long exportPortletInfoAsFileInBackground(long userId,
long exportImportConfigurationId)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.exportPortletInfoAsFileInBackground(
long, long)}com.liferay.portal.kernel.exception.PortalException@Deprecated
public long exportPortletInfoAsFileInBackground(long userId,
java.lang.String taskName,
long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public long exportPortletInfoAsFileInBackground(long userId,
java.lang.String taskName,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.model.Layout fetchFirstLayout(long groupId,
boolean privateLayout,
long parentLayoutId)
public com.liferay.portal.model.Layout fetchLayout(long groupId,
boolean privateLayout,
long layoutId)
public com.liferay.portal.model.Layout fetchLayoutByFriendlyURL(long groupId,
boolean privateLayout,
java.lang.String friendlyURL)
public long getDefaultPlid(long groupId)
groupId - the primary key of the groupLayoutConstants.DEFAULT_PLID)public long getDefaultPlid(long groupId,
boolean privateLayout)
groupId - the primary key of the groupprivateLayout - whether the layout is private to the groupLayoutConstants.DEFAULT_PLID) otherwisepublic long getDefaultPlid(long groupId,
boolean privateLayout,
java.lang.String portletId)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the groupportletId - the primary key of the portletLayoutConstants.DEFAULT_PLID otherwisecom.liferay.portal.kernel.exception.PortalException - if a portlet with the primary key could not be
foundpublic com.liferay.portal.model.Layout getFriendlyURLLayout(long groupId,
boolean privateLayout,
java.lang.String friendlyURL)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the groupfriendlyURL - the friendly URL of the layoutcom.liferay.portal.kernel.exception.PortalException - if the friendly URL is null or a
matching layout could not be foundpublic com.liferay.portal.model.Layout getLayout(long groupId,
boolean privateLayout,
long layoutId)
throws com.liferay.portal.kernel.exception.PortalException
NoSuchLayoutException otherwise.groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutId - the primary key of the layoutcom.liferay.portal.kernel.exception.PortalException - if a matching layout could not be foundpublic com.liferay.portal.model.Layout getLayoutByIconImageId(long iconImageId)
throws com.liferay.portal.kernel.exception.PortalException
NoSuchLayoutException otherwise.iconImageId - the primary key of the icon imagecom.liferay.portal.kernel.exception.PortalException - if an icon image with the primary key could not
be foundpublic java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId,
boolean privateLayout)
groupId - the primary key of the groupprivateLayout - whether the layout is private to the groupnull if no matches were
foundpublic java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId,
boolean privateLayout,
long parentLayoutId)
groupId - the primary key of the groupprivateLayout - whether the layout is private to the groupparentLayoutId - the primary key of the parent layoutnull if no matches were
foundpublic java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId,
boolean privateLayout,
long parentLayoutId,
boolean incomplete,
int start,
int end)
Useful when paginating results. Returns a maximum of end -
start instances. start and end are not
primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end to QueryUtil.ALL_POS will return the full
result set.
groupId - the primary key of the groupprivateLayout - whether the layout is private to the groupparentLayoutId - the primary key of the parent layoutincomplete - whether the layout is incompletestart - the lower bound of the range of layoutsend - the upper bound of the range of layouts (not inclusive)null if no matches were
foundpublic java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId,
boolean privateLayout,
long[] layoutIds)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutIds - the primary keys of the layoutscom.liferay.portal.kernel.exception.PortalException - if a group or layout with the primary key could
not be foundpublic java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId,
boolean privateLayout,
java.lang.String type)
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouptype - the type of the layouts (optionally LayoutConstants.TYPE_PORTLET)null if no matches were
foundpublic com.liferay.portal.model.LayoutReference[] getLayouts(long companyId,
java.lang.String portletId,
java.lang.String preferencesKey,
java.lang.String preferencesValue)
companyId - the primary key of the companyportletId - the primary key of the portletpreferencesKey - the portlet's preference keypreferencesValue - the portlet's preference valuepublic java.util.List<com.liferay.portal.model.Layout> getLayoutsByLayoutPrototypeUuid(java.lang.String layoutPrototypeUuid)
public int getLayoutsByLayoutPrototypeUuidCount(java.lang.String layoutPrototypeUuid)
public int getLayoutsCount(com.liferay.portal.model.Group group,
boolean privateLayout)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic int getLayoutsCount(com.liferay.portal.model.Group group,
boolean privateLayout,
boolean includeUserGroups)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic int getLayoutsCount(com.liferay.portal.model.Group group,
boolean privateLayout,
long parentLayoutId)
public int getLayoutsCount(com.liferay.portal.model.User user,
boolean privateLayout)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic int getLayoutsCount(com.liferay.portal.model.User user,
boolean privateLayout,
boolean includeUserGroups)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic long getNextLayoutId(long groupId,
boolean privateLayout)
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouppublic java.util.List<com.liferay.portal.model.Layout> getNoPermissionLayouts(long roleId)
roleId - the primary key of the rolepublic java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
nullnullpublic com.liferay.portal.model.Layout getParentLayout(com.liferay.portal.model.Layout layout)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.portal.model.Layout> getScopeGroupLayouts(long groupId,
boolean privateLayout)
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouppublic boolean hasLayouts(com.liferay.portal.model.Group group,
boolean privateLayout)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic boolean hasLayouts(com.liferay.portal.model.Group group,
boolean privateLayout,
boolean includeUserGroups)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic boolean hasLayouts(long groupId,
boolean privateLayout,
long parentLayoutId)
true if the group has any layouts;
false otherwise.groupId - the primary key of the groupprivateLayout - whether the layout is private to the groupparentLayoutId - the primary key of the parent layouttrue if the group has any layouts;
false otherwisepublic boolean hasLayouts(com.liferay.portal.model.User user,
boolean privateLayout)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic boolean hasLayouts(com.liferay.portal.model.User user,
boolean privateLayout,
boolean includeUserGroups)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic boolean hasLayoutSetPrototypeLayout(long layoutSetPrototypeId,
java.lang.String layoutUuid)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic boolean hasLayoutSetPrototypeLayout(java.lang.String layoutSetPrototypeUuid,
long companyId,
java.lang.String layoutUuid)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public void importLayouts(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.importLayouts(
ExportImportConfiguration, File)}com.liferay.portal.kernel.exception.PortalException@Deprecated
public void importLayouts(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.InputStream is)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.importLayouts(
ExportImportConfiguration, InputStream)}com.liferay.portal.kernel.exception.PortalException@Deprecated
public void importLayouts(long userId,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
byte[] bytes)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the usergroupId - the primary key of the groupprivateLayout - whether the layout is private to the groupparameterMap - the mapping of parameters indicating which
information will be imported. For information on the keys
used in the map see PortletDataHandlerKeys.bytes - the byte array with the datacom.liferay.portal.kernel.exception.PortalException - if a group or user with the primary key could
not be found, or if some other portal exception occurredcom.liferay.portlet.exportimport.lar.LayoutImporter@Deprecated
public void importLayouts(long userId,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the usergroupId - the primary key of the groupprivateLayout - whether the layout is private to the groupparameterMap - the mapping of parameters indicating which
information will be imported. For information on the keys
used in the map see PortletDataHandlerKeys.file - the LAR file with the datacom.liferay.portal.kernel.exception.PortalException - if a group or user with the primary key could
not be found, or if some other portal exception occurredcom.liferay.portlet.exportimport.lar.LayoutImporter@Deprecated
public void importLayouts(long userId,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the usergroupId - the primary key of the groupprivateLayout - whether the layout is private to the groupparameterMap - the mapping of parameters indicating which
information will be imported. For information on the keys
used in the map see PortletDataHandlerKeys.is - the input streamcom.liferay.portal.kernel.exception.PortalException - if a group or user with the primary key could
not be found, or if some other portal exception occurredcom.liferay.portlet.exportimport.lar.LayoutImporter@Deprecated
public void importLayoutsDataDeletions(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.importLayoutsDataDeletions(
ExportImportConfiguration, File)com.liferay.portal.kernel.exception.PortalException@Deprecated
public long importLayoutsInBackground(long userId,
com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.importLayoutsInBackground(
long, ExportImportConfiguration, File)com.liferay.portal.kernel.exception.PortalException@Deprecated
public long importLayoutsInBackground(long userId,
long exportImportConfigurationId,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.importLayoutsInBackground(
long, long, File)com.liferay.portal.kernel.exception.PortalException@Deprecated
public long importLayoutsInBackground(long userId,
java.lang.String taskName,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public long importLayoutsInBackground(long userId,
java.lang.String taskName,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public void importPortletDataDeletions(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.importPortletDataDeletions(
ExportImportConfiguration, File)com.liferay.portal.kernel.exception.PortalException@Deprecated
public void importPortletInfo(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.importPortletInfo(
ExportImportConfiguration, File)com.liferay.portal.kernel.exception.PortalException@Deprecated
public void importPortletInfo(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.InputStream is)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.importPortletInfo(
ExportImportConfiguration, InputStream)com.liferay.portal.kernel.exception.PortalException@Deprecated
public void importPortletInfo(long userId,
long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the userplid - the primary key of the target layoutgroupId - the primary key of the target groupportletId - the primary key of the portletparameterMap - the mapping of parameters indicating which
information will be imported. For information on the keys
used in the map see PortletDataHandlerKeys.file - the LAR file with the datacom.liferay.portal.kernel.exception.PortalException - if a group, layout, portlet or user with the
primary key could not be found@Deprecated
public void importPortletInfo(long userId,
long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the userplid - the primary key of the layoutgroupId - the primary key of the groupportletId - the primary key of the portletparameterMap - the mapping of parameters indicating which
information will be imported. For information on the keys
used in the map see PortletDataHandlerKeys.is - the input streamcom.liferay.portal.kernel.exception.PortalException - if a group, portlet, layout or user with the
primary key could not be found@Deprecated
public void importPortletInfo(long userId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public void importPortletInfo(long userId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public long importPortletInfoInBackground(long userId,
com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.importPortletInfoInBackground(
long, ExportImportConfiguration, File)com.liferay.portal.kernel.exception.PortalException@Deprecated
public long importPortletInfoInBackground(long userId,
long exportImportConfigurationId,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.importPortletInfoInBackground(
long, long, File)com.liferay.portal.kernel.exception.PortalException@Deprecated
public long importPortletInfoInBackground(long userId,
java.lang.String taskName,
long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public long importPortletInfoInBackground(long userId,
java.lang.String taskName,
long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public long importPortletInfoInBackground(long userId,
java.lang.String taskName,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public long importPortletInfoInBackground(long userId,
java.lang.String taskName,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void setLayouts(long groupId,
boolean privateLayout,
long parentLayoutId,
long[] layoutIds,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the groupparentLayoutId - the primary key of the parent layoutlayoutIds - the primary keys of the layoutsserviceContext - the service context to be appliedcom.liferay.portal.kernel.exception.PortalException - if a group or layout with the primary key could
not be found, if no layouts were specified, if the first layout
was not page-able, if the first layout was hidden, or if some
other portal exception occurredpublic void updateAsset(long userId,
com.liferay.portal.model.Layout layout,
long[] assetCategoryIds,
java.lang.String[] assetTagNames)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.model.Layout updateFriendlyURL(long userId,
long plid,
java.lang.String friendlyURL,
java.lang.String languageId)
throws com.liferay.portal.kernel.exception.PortalException
userId - the primary key of the userplid - the primary key of the layoutfriendlyURL - the friendly URL to be assignedlanguageId - the primary key of the languagecom.liferay.portal.kernel.exception.PortalException - if a group or layout with the primary key could
not be found@Deprecated
public com.liferay.portal.model.Layout updateFriendlyURL(long plid,
java.lang.String friendlyURL,
java.lang.String languageId)
throws com.liferay.portal.kernel.exception.PortalException
updateFriendlyURL(long,
long, String, String)plid - the primary key of the layoutfriendlyURL - the friendly URL to be assignedlanguageId - the primary key of the languagecom.liferay.portal.kernel.exception.PortalException - if a group or layout with the primary key
could not be foundpublic com.liferay.portal.model.Layout updateIconImage(long plid,
byte[] bytes)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.model.Layout updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Map<java.util.Locale,java.lang.String> keywordsMap,
java.util.Map<java.util.Locale,java.lang.String> robotsMap,
java.lang.String type,
boolean hidden,
java.util.Map<java.util.Locale,java.lang.String> friendlyURLMap,
boolean iconImage,
byte[] iconBytes,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutId - the primary key of the layoutparentLayoutId - the primary key of the layout's new parent layoutnameMap - the locales and localized names to merge (optionally
null)titleMap - the locales and localized titles to merge (optionally
null)descriptionMap - the locales and localized descriptions to merge
(optionally null)keywordsMap - the locales and localized keywords to merge
(optionally null)robotsMap - the locales and localized robots to merge (optionally
null)type - the layout's new type (optionally LayoutConstants.TYPE_PORTLET)hidden - whether the layout is hiddenfriendlyURLMap - the layout's locales and localized friendly URLs.
To see how the URL is normalized when accessed, see FriendlyURLNormalizerUtil.normalize(
String).iconImage - whether the icon image will be updatediconBytes - the byte array of the layout's new icon imageserviceContext - the service context to be applied. Can set the
modification date and expando bridge attributes for the layout.
For layouts that are linked to a layout prototype, attributes
named layoutPrototypeUuid and
layoutPrototypeLinkedEnabled can be specified to
provide the unique identifier of the source prototype and a
boolean to determine whether a link to it should be enabled to
activate propagation of changes made to the linked page in the
prototype.com.liferay.portal.kernel.exception.PortalException - if a group or layout with the primary key could
not be found, if a unique friendly URL could not be generated, if
a valid parent layout ID to use could not be found, if the layout
parameters were invalid, or if a portal exception occurred@Deprecated
public com.liferay.portal.model.Layout updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Map<java.util.Locale,java.lang.String> keywordsMap,
java.util.Map<java.util.Locale,java.lang.String> robotsMap,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
java.lang.Boolean iconImage,
byte[] iconBytes,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
updateLayout(long, boolean,
long, long, Map, Map, Map, Map, Map, String, boolean, Map,
boolean, byte[], ServiceContext)groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutId - the primary key of the layoutparentLayoutId - the primary key of the layout's new parent
layoutnameMap - the locales and localized names to merge (optionally
null)titleMap - the locales and localized titles to merge
(optionally null)descriptionMap - the locales and localized descriptions to
merge (optionally null)keywordsMap - the locales and localized keywords to merge
(optionally null)robotsMap - the locales and localized robots to merge
(optionally null)type - the layout's new type (optionally LayoutConstants.TYPE_PORTLET)hidden - whether the layout is hiddenfriendlyURL - the layout's new friendly URL (optionally PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL or
PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL). The
default values can be overridden in
portal-ext.properties by specifying new values
for the corresponding properties defined in PropsValues. To see how the URL is normalized when accessed,
see FriendlyURLNormalizerUtil.normalize(
String).iconImage - whether the icon image will be updatediconBytes - the byte array of the layout's new icon imageserviceContext - the service context to be applied. Can set the
modification date and expando bridge attributes for the
layout. For layouts that are linked to a layout prototype,
attributes named layoutPrototypeUuid and
layoutPrototypeLinkedEnabled can be specified to
provide the unique identifier of the source prototype and a
boolean to determine whether a link to it should be enabled
to activate propagation of changes made to the linked page in
the prototype.com.liferay.portal.kernel.exception.PortalException - if a group or layout with the primary key
could not be found, if a unique friendly URL could not be
generated, if a valid parent layout ID to use could not be
found, if the layout parameters were invalid, or if a portal
exception occurredpublic com.liferay.portal.model.Layout updateLayout(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String typeSettings)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutId - the primary key of the layouttypeSettings - the settings to load the unicode properties object.
See #fastLoad(String).com.liferay.portal.kernel.exception.PortalException - if a matching layout could not be found or if a
portal exception occurredpublic com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String themeId,
java.lang.String colorSchemeId,
java.lang.String css,
boolean wapTheme)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutId - the primary key of the layoutthemeId - the primary key of the layout's new themecolorSchemeId - the primary key of the layout's new color schemecss - the layout's new CSSwapTheme - whether the theme is for WAP browserscom.liferay.portal.kernel.exception.PortalException - if a matching layout could not be foundpublic com.liferay.portal.model.Layout updateName(com.liferay.portal.model.Layout layout,
java.lang.String name,
java.lang.String languageId)
throws com.liferay.portal.kernel.exception.PortalException
layout - the layout to be updatedname - the layout's new namelanguageId - the primary key of the language. For more information
see Locale.com.liferay.portal.kernel.exception.PortalException - if the new name was nullpublic com.liferay.portal.model.Layout updateName(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String name,
java.lang.String languageId)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutId - the primary key of the layoutname - the layout's new namelanguageId - the primary key of the language. For more information
see Locale.com.liferay.portal.kernel.exception.PortalException - if a matching layout could not be found or if the
new name was nullpublic com.liferay.portal.model.Layout updateName(long plid,
java.lang.String name,
java.lang.String languageId)
throws com.liferay.portal.kernel.exception.PortalException
plid - the primary key of the layoutname - the name to be assignedlanguageId - the primary key of the language. For more information
see Locale.com.liferay.portal.kernel.exception.PortalException - if a layout with the primary key could not be
found or if the name was nullpublic com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutId - the primary key of the layoutparentLayoutId - the primary key to be assigned to the parent
layoutcom.liferay.portal.kernel.exception.PortalException - if a valid parent layout ID to use could not be
found or if a matching layout could not be foundpublic com.liferay.portal.model.Layout updateParentLayoutId(long plid,
long parentPlid)
throws com.liferay.portal.kernel.exception.PortalException
LayoutConstants.DEFAULT_PARENT_LAYOUT_ID is assigned.plid - the primary key of the layoutparentPlid - the primary key of the parent layoutcom.liferay.portal.kernel.exception.PortalException - if a layout with the primary key could not be
found or if a valid parent layout ID to use could not be foundpublic com.liferay.portal.model.Layout updateParentLayoutIdAndPriority(long plid,
long parentPlid,
int priority)
throws com.liferay.portal.kernel.exception.PortalException
plid - the primary key of the layoutparentPlid - the primary key of the parent layoutpriority - the layout's new prioritycom.liferay.portal.kernel.exception.PortalException - if a layout with the primary key could not be
found or if a valid parent layout ID could not be foundpublic void updatePriorities(long groupId,
boolean privateLayout)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the groupcom.liferay.portal.kernel.exception.PortalException - if a matching layout could not be foundpublic com.liferay.portal.model.Layout updatePriority(com.liferay.portal.model.Layout layout,
int priority)
throws com.liferay.portal.kernel.exception.PortalException
layout - the layout to be updatedpriority - the layout's new prioritycom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredpublic com.liferay.portal.model.Layout updatePriority(long groupId,
boolean privateLayout,
long layoutId,
int priority)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutId - the primary key of the layoutpriority - the layout's new prioritycom.liferay.portal.kernel.exception.PortalException - if a matching layout could not be foundpublic com.liferay.portal.model.Layout updatePriority(long groupId,
boolean privateLayout,
long layoutId,
long nextLayoutId,
long previousLayoutId)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutId - the primary key of the layoutnextLayoutId - the primary key of the next layoutpreviousLayoutId - the primary key of the previous layoutcom.liferay.portal.kernel.exception.PortalException - if a matching layout could not be foundpublic com.liferay.portal.model.Layout updatePriority(long plid,
int priority)
throws com.liferay.portal.kernel.exception.PortalException
plid - the primary key of the layoutpriority - the layout's new prioritycom.liferay.portal.kernel.exception.PortalException - if a layout with the primary key could not be
found@Deprecated
public void updateScopedPortletNames(long groupId,
boolean privateLayout,
long layoutId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.List<java.util.Locale> nameMapModifiedLocales)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public void updateScopedPortletNames(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String name,
java.lang.String languageId)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutId - the primary key of the layout whose UUID to matchname - the new name for the portletslanguageId - the primary key of the languagecom.liferay.portal.kernel.exception.PortalException - if a matching layout could not be foundcom.liferay.portlet.portletconfiguration.action.EditScopeAction@Deprecated
public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.validateImportLayoutsFile(
ExportImportConfiguration, File)com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.InputStream inputStream)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.validateImportLayoutsFile(
ExportImportConfiguration, InputStream)com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(long userId,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(long userId,
long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream inputStream)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.validateImportPortletInfo(
ExportImportConfiguration, File)com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.InputStream inputStream)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportLocalService.validateImportPortletInfo(
ExportImportConfiguration, InputStream)com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(long userId,
long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(long userId,
long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream inputStream)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void validateTypeSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException