public class LayoutServiceImpl extends LayoutServiceBaseImpl
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, pluginSettingLocalService, pluginSettingPersistence, pluginSettingService, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceLocalService, resourcePermissionFinder, resourcePermissionLocalService, resourcePermissionPersistence, resourcePermissionService, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, userService| Constructor and Description |
|---|
LayoutServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portal.model.Layout |
addLayout(long groupId,
boolean privateLayout,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
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 groupId,
boolean privateLayout,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
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 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.
|
com.liferay.portal.kernel.repository.model.FileEntry |
addTempFileEntry(long groupId,
java.lang.String folderName,
java.lang.String fileName,
java.io.InputStream inputStream,
java.lang.String mimeType) |
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 |
deleteTempFileEntry(long groupId,
java.lang.String folderName,
java.lang.String fileName) |
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
ExportImportService.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(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
Deprecated.
As of 7.0.0, replaced by
ExportImportService.exportLayoutsAsFileInBackground(
ExportImportConfiguration) |
long |
exportLayoutsAsFileInBackground(long exportImportConfigurationId)
Deprecated.
As of 7.0.0, replaced by
ExportImportService.exportLayoutsAsFileInBackground(
long) |
long |
exportLayoutsAsFileInBackground(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(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
ExportImportService.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(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(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(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
|
protected java.util.List<com.liferay.portal.model.Layout> |
filterLayouts(java.util.List<com.liferay.portal.model.Layout> layouts) |
java.util.List<com.liferay.portal.model.Layout> |
getAncestorLayouts(long plid)
Returns all the ancestor layouts of the layout.
|
long |
getDefaultPlid(long groupId,
long scopeGroupId,
boolean privateLayout,
java.lang.String portletId)
Returns the primary key of the default layout for the group.
|
long |
getDefaultPlid(long groupId,
long scopeGroupId,
java.lang.String portletId) |
com.liferay.portal.model.Layout |
getLayoutByUuidAndGroupId(java.lang.String uuid,
long groupId,
boolean privateLayout)
Returns the layout matching the UUID, group, and privacy.
|
java.lang.String |
getLayoutName(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String languageId)
Returns the name of the layout.
|
com.liferay.portal.model.LayoutReference[] |
getLayoutReferences(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> |
getLayouts(long groupId,
boolean privateLayout) |
java.util.List<com.liferay.portal.model.Layout> |
getLayouts(long groupId,
boolean privateLayout,
long parentLayoutId) |
java.util.List<com.liferay.portal.model.Layout> |
getLayouts(long groupId,
boolean privateLayout,
long parentLayoutId,
boolean incomplete,
int start,
int end) |
int |
getLayoutsCount(long groupId,
boolean privateLayout,
long parentLayoutId) |
java.lang.String[] |
getTempFileNames(long groupId,
java.lang.String folderName) |
void |
importLayouts(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
Deprecated.
As of 7.0.0, replaced by
ExportImportService.importLayouts(
ExportImportConfiguration, File) |
void |
importLayouts(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.InputStream is)
Deprecated.
As of 7.0.0, replaced by
ExportImportService.importLayouts(
ExportImportConfiguration, InputStream) |
void |
importLayouts(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 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 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
|
long |
importLayoutsInBackground(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(java.lang.String taskName,
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
|
void |
importPortletInfo(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
Deprecated.
As of 7.0.0, replaced by
ExportImportService.importPortletInfo(
ExportImportConfiguration, File) ( |
void |
importPortletInfo(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.InputStream is)
Deprecated.
As of 7.0.0, replaced by
ExportImportService.importPortletInfo(
ExportImportConfiguration, InputStream) ( |
void |
importPortletInfo(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 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(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(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(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(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
|
void |
importPortletInfoInBackground(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
|
void |
importPortletInfoInBackground(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 |
schedulePublishToLive(long sourceGroupId,
long targetGroupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.lang.String scope,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String groupName,
java.lang.String cronText,
java.util.Date schedulerStartDate,
java.util.Date schedulerEndDate,
java.lang.String description)
Schedules a range of layouts to be published.
|
void |
schedulePublishToLive(long sourceGroupId,
long targetGroupId,
boolean privateLayout,
java.util.Map<java.lang.Long,java.lang.Boolean> layoutIdMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.lang.String scope,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String groupName,
java.lang.String cronText,
java.util.Date schedulerStartDate,
java.util.Date schedulerEndDate,
java.lang.String description)
Deprecated.
|
void |
schedulePublishToRemote(long sourceGroupId,
boolean privateLayout,
java.util.Map<java.lang.Long,java.lang.Boolean> layoutIdMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.lang.String remoteAddress,
int remotePort,
java.lang.String remotePathContext,
boolean secureConnection,
long remoteGroupId,
boolean remotePrivateLayout,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String groupName,
java.lang.String cronText,
java.util.Date schedulerStartDate,
java.util.Date schedulerEndDate,
java.lang.String description)
Schedules a range of layouts to be stored.
|
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 |
unschedulePublishToLive(long groupId,
java.lang.String jobName,
java.lang.String groupName)
Deletes the job from the scheduler's queue.
|
void |
unschedulePublishToRemote(long groupId,
java.lang.String jobName,
java.lang.String groupName)
Deletes the job from the scheduler's persistent queue.
|
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> localeNamesMap,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
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 with additional parameters.
|
com.liferay.portal.model.Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
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(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.
|
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.
|
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
ExportImportService.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
ExportImportService.validateImportLayoutsFile(
ExportImportConfiguration, InputStream) |
com.liferay.portlet.exportimport.lar.MissingReferences |
validateImportLayoutsFile(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 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
ExportImportService.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
ExportImportService.validateImportPortletInfo(
ExportImportConfiguration, InputStream) |
com.liferay.portlet.exportimport.lar.MissingReferences |
validateImportPortletInfo(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 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
|
afterPropertiesSet, destroy, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBackgroundTaskLocalService, getBackgroundTaskPersistence, getBackgroundTaskService, getBeanIdentifier, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCounterLocalService, getExpandoRowLocalService, getExpandoRowPersistence, getExportImportConfigurationLocalService, getExportImportConfigurationPersistence, getExportImportConfigurationService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getLayoutFinder, getLayoutFriendlyURLLocalService, getLayoutFriendlyURLPersistence, getLayoutLocalService, getLayoutPersistence, getLayoutPrototypeLocalService, getLayoutPrototypePersistence, getLayoutPrototypeService, getLayoutService, getLayoutSetLocalService, getLayoutSetPersistence, getLayoutSetPrototypeLocalService, getLayoutSetPrototypePersistence, getLayoutSetPrototypeService, getLayoutSetService, getModelClass, getModelClassName, getPluginSettingLocalService, getPluginSettingPersistence, getPluginSettingService, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceLocalService, getResourcePermissionFinder, getResourcePermissionLocalService, getResourcePermissionPersistence, getResourcePermissionService, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, 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@Deprecated
public com.liferay.portal.model.Layout addLayout(long groupId,
boolean privateLayout,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
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, 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.
groupId - 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)localeNamesMap - the layout's locales and localized nameslocaleTitlesMap - 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 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 used to
specify whether site administrators can modify this page
within their site.com.liferay.portal.kernel.exception.PortalException - if a group with the primary key could not be
found, if the group did not have permission to manage the
layouts involved, if layout values were invalid, or if a
portal exception occurredpublic com.liferay.portal.model.Layout addLayout(long groupId,
boolean privateLayout,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
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.
groupId - 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)localeNamesMap - the layout's locales and localized nameslocaleTitlesMap - 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 used to specify whether site
administrators can modify this page within their site.com.liferay.portal.kernel.exception.PortalException - if a group with the primary key could not be
found, if the group did not have permission to manage the layouts
involved, if layout values were invalid, or if a portal exception
occurredpublic com.liferay.portal.model.Layout addLayout(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.
groupId - 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)name - the layout's locales and localized namestitle - the layout's locales and localized titlesdescription - the layout's locales and localized descriptionstype - 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 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 specify 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 used to specify whether site
administrators can modify this page within their site.com.liferay.portal.kernel.exception.PortalException - if a group with the primary key could not be
found, if the group did not have permission to manage the layouts
involved, if layout values were invalid, or if a portal exception
occurredpublic com.liferay.portal.kernel.repository.model.FileEntry addTempFileEntry(long groupId,
java.lang.String folderName,
java.lang.String fileName,
java.io.InputStream inputStream,
java.lang.String mimeType)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic 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 the user did not have permission to delete the
layout, 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 the user did not have permission to delete the
layout, if a layout with the primary key could not be found , or
if some other portal exception occurredpublic void deleteTempFileEntry(long groupId,
java.lang.String folderName,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException@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, if the group did not have permission to
manage the layouts, 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, if the group did not have permission to manage the
layouts, 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
ExportImportService.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, it the group did not have permission to
manage the layouts, or if some other portal exception
occurred@Deprecated
public long exportLayoutsAsFileInBackground(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportService.exportLayoutsAsFileInBackground(
ExportImportConfiguration)com.liferay.portal.kernel.exception.PortalException@Deprecated
public long exportLayoutsAsFileInBackground(long exportImportConfigurationId)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportService.exportLayoutsAsFileInBackground(
long)com.liferay.portal.kernel.exception.PortalException@Deprecated
public long exportLayoutsAsFileInBackground(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(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 layout, group, or portlet with the
primary key could not be found, if the group did not have
permission to manage the layouts involved, 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
ExportImportService.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 layout, group, or portlet with the
primary key could not be found, it the group did not have
permission to manage the layouts involved, or if some other
portal exception occurred@Deprecated
public java.io.File exportPortletInfoAsFile(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(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(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 java.util.List<com.liferay.portal.model.Layout> getAncestorLayouts(long plid)
throws com.liferay.portal.kernel.exception.PortalException
plid - the primary key of the layoutcom.liferay.portal.kernel.exception.PortalException - if a matching layout could not be found or if a
portal exception occurredpublic long getDefaultPlid(long groupId,
long scopeGroupId,
boolean privateLayout,
java.lang.String portletId)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupscopeGroupId - the primary key of the scope group. See ServiceContext.getScopeGroupId().privateLayout - whether the layout is private to the groupportletId - the primary key of the portletLayoutConstants.DEFAULT_PLID otherwisecom.liferay.portal.kernel.exception.PortalException - if a group, layout, or portlet with the primary
key could not be found@ThreadLocalCachable
public long getDefaultPlid(long groupId,
long scopeGroupId,
java.lang.String portletId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.model.Layout getLayoutByUuidAndGroupId(java.lang.String uuid,
long groupId,
boolean privateLayout)
throws com.liferay.portal.kernel.exception.PortalException
uuid - the layout's UUIDgroupId - 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 found, if the
user did not have permission to view the layout, or if some other
portal exception occurredpublic java.lang.String getLayoutName(long groupId,
boolean privateLayout,
long layoutId,
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 layoutlanguageId - the primary key of the language. For more information
See Locale.com.liferay.portal.kernel.exception.PortalException - if a matching layout could not be foundpublic com.liferay.portal.model.LayoutReference[] getLayoutReferences(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> getLayouts(long groupId,
boolean privateLayout)
public java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId,
boolean privateLayout,
long parentLayoutId)
public java.util.List<com.liferay.portal.model.Layout> getLayouts(long groupId,
boolean privateLayout,
long parentLayoutId,
boolean incomplete,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic int getLayoutsCount(long groupId,
boolean privateLayout,
long parentLayoutId)
public java.lang.String[] getTempFileNames(long groupId,
java.lang.String folderName)
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
ExportImportService.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
ExportImportService.importLayouts(
ExportImportConfiguration, InputStream)com.liferay.portal.kernel.exception.PortalException@Deprecated
public void importLayouts(long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
byte[] bytes)
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 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 with the primary key could not be
found, if the group did not have permission to manage the
layouts, or if some other portal exception occurredcom.liferay.portlet.exportimport.lar.LayoutImporter@Deprecated
public void importLayouts(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
groupId - 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 with the primary key could not be
found, if the group did not have permission to manage the
layouts and publish, or if some other portal exception
occurredcom.liferay.portlet.exportimport.lar.LayoutImporter@Deprecated
public void importLayouts(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
groupId - 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 with the primary key could not be
found, if the group did not have permission to manage the
layouts, or if some other portal exception occurredcom.liferay.portlet.exportimport.lar.LayoutImporter@Deprecated
public long importLayoutsInBackground(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(java.lang.String taskName,
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 void importPortletInfo(com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException
ExportImportService.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
ExportImportService.importPortletInfo(
ExportImportConfiguration, InputStream) (com.liferay.portal.kernel.exception.PortalException@Deprecated
public void importPortletInfo(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
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 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, or portlet with the
primary key could not be found, or if the group did not have
permission to manage the layouts@Deprecated
public void importPortletInfo(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
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 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, or layout with the
primary key could not be found or if the group did not have
permission to manage the layouts@Deprecated
public void importPortletInfo(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(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(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(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 void importPortletInfoInBackground(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 void importPortletInfoInBackground(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 schedulePublishToLive(long sourceGroupId,
long targetGroupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.lang.String scope,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String groupName,
java.lang.String cronText,
java.util.Date schedulerStartDate,
java.util.Date schedulerEndDate,
java.lang.String description)
throws com.liferay.portal.kernel.exception.PortalException
sourceGroupId - the primary key of the source grouptargetGroupId - the primary key of the target groupprivateLayout - whether the layout is private to the grouplayoutIds - the layouts considered for publishing, specified by the
layout IDsparameterMap - the mapping of parameters indicating which
information will be used. See PortletDataHandlerKeys.scope - the scope of the pages. It can be all-pages or
selected-pages.startDate - the start dateendDate - the end dategroupName - the group name (optionally DestinationNames.LAYOUTS_LOCAL_PUBLISHER). See DestinationNames.cronText - the cron text. See #toCronTextschedulerStartDate - the scheduler start dateschedulerEndDate - the scheduler end datedescription - the scheduler descriptioncom.liferay.portal.kernel.exception.PortalException - if the group did not have permission to manage
and publish@Deprecated
public void schedulePublishToLive(long sourceGroupId,
long targetGroupId,
boolean privateLayout,
java.util.Map<java.lang.Long,java.lang.Boolean> layoutIdMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.lang.String scope,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String groupName,
java.lang.String cronText,
java.util.Date schedulerStartDate,
java.util.Date schedulerEndDate,
java.lang.String description)
throws com.liferay.portal.kernel.exception.PortalException
schedulePublishToLive(long,
long, boolean, long[], Map, String, Date, Date, String,
String, Date, Date, String)sourceGroupId - the primary key of the source grouptargetGroupId - the primary key of the target groupprivateLayout - whether the layout is private to the grouplayoutIdMap - the layouts considered for publishing, specified
by the layout IDs and booleans indicating whether they have
childrenparameterMap - the mapping of parameters indicating which
information will be used. See PortletDataHandlerKeys.scope - the scope of the pages. It can be
all-pages or selected-pages.startDate - the start dateendDate - the end dategroupName - the group name (optionally DestinationNames.LAYOUTS_LOCAL_PUBLISHER). See DestinationNames.cronText - the cron text. See #toCronTextschedulerStartDate - the scheduler start dateschedulerEndDate - the scheduler end datedescription - the scheduler descriptioncom.liferay.portal.kernel.exception.PortalException - if the group did not have permission to
manage and publishpublic void schedulePublishToRemote(long sourceGroupId,
boolean privateLayout,
java.util.Map<java.lang.Long,java.lang.Boolean> layoutIdMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.lang.String remoteAddress,
int remotePort,
java.lang.String remotePathContext,
boolean secureConnection,
long remoteGroupId,
boolean remotePrivateLayout,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String groupName,
java.lang.String cronText,
java.util.Date schedulerStartDate,
java.util.Date schedulerEndDate,
java.lang.String description)
throws com.liferay.portal.kernel.exception.PortalException
sourceGroupId - the primary key of the source groupprivateLayout - whether the layout is private to the grouplayoutIdMap - the layouts considered for publishing, specified by
the layout IDs and booleans indicating whether they have childrenparameterMap - the mapping of parameters indicating which
information will be used. See PortletDataHandlerKeys.remoteAddress - the remote addressremotePort - the remote portremotePathContext - the remote path contextsecureConnection - whether the connection is secureremoteGroupId - the primary key of the remote groupremotePrivateLayout - whether remote group's layout is privatestartDate - the start dateendDate - the end dategroupName - the group name. Optionally DestinationNames.LAYOUTS_LOCAL_PUBLISHER). See DestinationNames.cronText - the cron text. See #toCronTextschedulerStartDate - the scheduler start dateschedulerEndDate - the scheduler end datedescription - the scheduler descriptioncom.liferay.portal.kernel.exception.PortalException - if a group with the source group primary key was
not found or if the group did not have permission to publishpublic 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 the group did not have permission to manage the
layouts, 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 unschedulePublishToLive(long groupId,
java.lang.String jobName,
java.lang.String groupName)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupjobName - the job namegroupName - the group name (optionally DestinationNames.LAYOUTS_LOCAL_PUBLISHER). See DestinationNames.com.liferay.portal.kernel.exception.PortalException - if the group did not permission to manage staging
and publishpublic void unschedulePublishToRemote(long groupId,
java.lang.String jobName,
java.lang.String groupName)
throws com.liferay.portal.kernel.exception.PortalException
groupId - the primary key of the groupjobName - the job namegroupName - the group name (optionally DestinationNames.LAYOUTS_LOCAL_PUBLISHER). See DestinationNames.com.liferay.portal.kernel.exception.PortalException - if a group with the primary key could not be
found or if the group did not have permission to publishpublic 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> localeNamesMap,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
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 layoutlocaleNamesMap - the layout's locales and localized nameslocaleTitlesMap - the layout's locales and localized titlesdescriptionMap - 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.com.liferay.portal.kernel.exception.PortalException - if a group or layout with the primary key could
not be found, if the user did not have permission to update the
layout, if a unique friendly URL could not be generated, if a
valid parent layout ID to use could not be found, or if the
layout parameters were invalid@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> localeNamesMap,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
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
layoutlocaleNamesMap - the layout's locales and localized nameslocaleTitlesMap - the layout's locales and localized titlesdescriptionMap - 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 locales and new 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.com.liferay.portal.kernel.exception.PortalException - if a group or layout with the primary key
could not be found, if the user did not have permission to
update the layout, if a unique friendly URL could not be
generated, if a valid parent layout ID to use could not be
found, or if the layout parameters were invalidpublic 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 the
user did not have permission to update the layoutpublic 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 found, or if
the user did not have permission to update the layout and
permission to apply the themepublic 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, if the
user did not have permission to update the layout, 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 user did not have permission to update the
layout, 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, if a matching layout could not be found, or if the user
did not have permission to update the layoutpublic 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, if the user did not have permission to update the layout,
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 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 found or if the
user did not have permission to update the layoutpublic 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 found or if the
user did not have permission to update the layoutpublic 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 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
ExportImportService.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
ExportImportService.validateImportLayoutsFile(
ExportImportConfiguration, InputStream)com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(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 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
ExportImportService.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
ExportImportService.validateImportPortletInfo(
ExportImportConfiguration, InputStream)com.liferay.portal.kernel.exception.PortalException@Deprecated
public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(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 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 java.util.List<com.liferay.portal.model.Layout> filterLayouts(java.util.List<com.liferay.portal.model.Layout> layouts)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException