@ProviderType public class LayoutLocalServiceWrapper extends Object implements LayoutLocalService, ServiceWrapper<LayoutLocalService>
LayoutLocalService
.LayoutLocalService
Constructor and Description |
---|
LayoutLocalServiceWrapper(LayoutLocalService layoutLocalService) |
Modifier and Type | Method and Description |
---|---|
Layout |
addLayout(Layout layout)
Adds the layout to the database.
|
Layout |
addLayout(long userId,
long groupId,
boolean privateLayout,
long parentLayoutId,
Map<Locale,String> nameMap,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
Map<Locale,String> keywordsMap,
Map<Locale,String> robotsMap,
String type,
String typeSettings,
boolean hidden,
Map<Locale,String> friendlyURLMap,
ServiceContext serviceContext)
Adds a layout with additional parameters.
|
Layout |
addLayout(long userId,
long groupId,
boolean privateLayout,
long parentLayoutId,
String name,
String title,
String description,
String type,
boolean hidden,
String friendlyURL,
ServiceContext serviceContext)
Adds a layout with single entry maps for name, title, and description to
the default locale.
|
Layout |
createLayout(long plid)
Creates a new layout with the primary key.
|
Layout |
deleteLayout(Layout layout)
Deletes the layout from the database.
|
void |
deleteLayout(Layout layout,
boolean updateLayoutSet,
ServiceContext serviceContext)
Deletes the layout, its child layouts, and its associated resources.
|
Layout |
deleteLayout(long plid)
Deletes the layout with the primary key from the database.
|
void |
deleteLayout(long groupId,
boolean privateLayout,
long layoutId,
ServiceContext serviceContext)
Deletes the layout with the primary key, also deleting the layout's child
layouts, and associated resources.
|
void |
deleteLayout(long plid,
ServiceContext serviceContext)
Deletes the layout with the plid, also deleting the layout's child
layouts, and associated resources.
|
void |
deleteLayouts(long groupId,
boolean privateLayout,
ServiceContext serviceContext)
Deletes the group's private or non-private layouts, also deleting the
layouts' child layouts, and associated resources.
|
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
DynamicQuery |
dynamicQuery() |
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
byte[] |
exportLayouts(long groupId,
boolean privateLayout,
long[] layoutIds,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
byte[] |
exportLayouts(long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
File |
exportLayoutsAsFile(ExportImportConfiguration exportImportConfiguration)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.exportLayoutsAsFile(
ExportImportConfiguration) |
File |
exportLayoutsAsFile(long groupId,
boolean privateLayout,
long[] layoutIds,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
long |
exportLayoutsAsFileInBackground(long userId,
ExportImportConfiguration exportImportConfiguration)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.exportLayoutsAsFileInBackground(
long, ExportImportConfiguration) |
long |
exportLayoutsAsFileInBackground(long userId,
long exportImportConfigurationId)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.exportLayoutsAsFileInBackground(
long, long) |
long |
exportLayoutsAsFileInBackground(long userId,
String taskName,
long groupId,
boolean privateLayout,
long[] layoutIds,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
long |
exportLayoutsAsFileInBackground(long userId,
String taskName,
long groupId,
boolean privateLayout,
long[] layoutIds,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate,
String fileName)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
byte[] |
exportPortletInfo(long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
byte[] |
exportPortletInfo(long companyId,
String portletId,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
File |
exportPortletInfoAsFile(ExportImportConfiguration exportImportConfiguration)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.exportPortletInfoAsFile(
ExportImportConfiguration) } |
File |
exportPortletInfoAsFile(long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
File |
exportPortletInfoAsFile(long companyId,
String portletId,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
long |
exportPortletInfoAsFileInBackground(long userId,
ExportImportConfiguration exportImportConfiguration)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.exportPortletInfoAsFileInBackground(
long, ExportImportConfiguration) } |
long |
exportPortletInfoAsFileInBackground(long userId,
long exportImportConfigurationId)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.exportPortletInfoAsFileInBackground(
long, long) } |
long |
exportPortletInfoAsFileInBackground(long userId,
String taskName,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate,
String fileName)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
long |
exportPortletInfoAsFileInBackground(long userId,
String taskName,
String portletId,
Map<String,String[]> parameterMap,
Date startDate,
Date endDate,
String fileName)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
Layout |
fetchDefaultLayout(long groupId,
boolean privateLayout) |
Layout |
fetchFirstLayout(long groupId,
boolean privateLayout,
long parentLayoutId) |
Layout |
fetchLayout(long plid) |
Layout |
fetchLayout(long groupId,
boolean privateLayout,
long layoutId) |
Layout |
fetchLayout(String uuid,
long groupId,
boolean privateLayout) |
Layout |
fetchLayoutByFriendlyURL(long groupId,
boolean privateLayout,
String friendlyURL) |
Layout |
fetchLayoutByIconImageId(boolean privateLayout,
long iconImageId) |
Layout |
fetchLayoutByUuidAndGroupId(String uuid,
long groupId,
boolean privateLayout)
Returns the layout matching the UUID, group, and privacy.
|
ActionableDynamicQuery |
getActionableDynamicQuery() |
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,
String portletId)
Returns primary key of the default portlet layout for the group
|
ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
Layout |
getFriendlyURLLayout(long groupId,
boolean privateLayout,
String friendlyURL)
Returns the layout for the friendly URL
|
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
Layout |
getLayout(long plid)
Returns the layout with the primary key.
|
Layout |
getLayout(long groupId,
boolean privateLayout,
long layoutId)
Returns the layout matching the primary key, group, and privacy; throws a
NoSuchLayoutException otherwise. |
Layout |
getLayoutByIconImageId(long iconImageId)
Returns the layout for the icon image; throws a
NoSuchLayoutException otherwise. |
Layout |
getLayoutByUuidAndGroupId(String uuid,
long groupId,
boolean privateLayout)
Returns the layout matching the UUID, group, and privacy.
|
Map<Long,List<Layout>> |
getLayoutChildLayouts(LayoutSet layoutSet,
List<Layout> parentLayouts) |
List<Layout> |
getLayouts(int start,
int end)
Returns a range of all the layouts.
|
List<Layout> |
getLayouts(long companyId) |
List<Layout> |
getLayouts(long groupId,
boolean privateLayout)
Returns all the layouts belonging to the group.
|
List<Layout> |
getLayouts(long groupId,
boolean privateLayout,
long parentLayoutId)
Returns all the layouts belonging to the group that are children of the
parent layout.
|
List<Layout> |
getLayouts(long groupId,
boolean privateLayout,
long[] layoutIds)
Returns all the layouts that match the layout IDs and belong to the
group.
|
List<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.
|
List<Layout> |
getLayouts(long groupId,
boolean privateLayout,
String type)
Returns all the layouts that match the type and belong to the group.
|
LayoutReference[] |
getLayouts(long companyId,
String portletId,
String preferencesKey,
String preferencesValue)
Returns the layout references for all the layouts that belong to the
company and belong to the portlet that matches the preferences.
|
List<Layout> |
getLayoutsByLayoutPrototypeUuid(String layoutPrototypeUuid) |
int |
getLayoutsByLayoutPrototypeUuidCount(String layoutPrototypeUuid) |
List<Layout> |
getLayoutsByUuidAndCompanyId(String uuid,
long companyId)
Returns all the layouts matching the UUID and company.
|
List<Layout> |
getLayoutsByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<Layout> orderByComparator)
Returns a range of layouts matching the UUID and company.
|
int |
getLayoutsCount()
Returns the number of layouts.
|
int |
getLayoutsCount(Group group,
boolean privateLayout) |
int |
getLayoutsCount(Group group,
boolean privateLayout,
boolean includeUserGroups) |
int |
getLayoutsCount(Group group,
boolean privateLayout,
long parentLayoutId) |
int |
getLayoutsCount(Group group,
boolean privateLayout,
long[] layoutIds) |
int |
getLayoutsCount(User user,
boolean privateLayout) |
int |
getLayoutsCount(User user,
boolean privateLayout,
boolean includeUserGroups) |
long |
getNextLayoutId(long groupId,
boolean privateLayout)
Returns the primary key to use for the next layout.
|
List<Layout> |
getNoPermissionLayouts(long roleId)
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
List<Layout> |
getNullFriendlyURLLayouts()
Returns all the layouts whose friendly URLs are
null |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
Layout |
getParentLayout(Layout layout) |
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
List<Layout> |
getScopeGroupLayouts(long parentGroupId) |
List<Layout> |
getScopeGroupLayouts(long parentGroupId,
boolean privateLayout)
Returns all the layouts within scope of the group
|
LayoutLocalService |
getWrappedService() |
boolean |
hasLayouts(Group group) |
boolean |
hasLayouts(Group group,
boolean privateLayout) |
boolean |
hasLayouts(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(User user,
boolean privateLayout) |
boolean |
hasLayouts(User user,
boolean privateLayout,
boolean includeUserGroups) |
boolean |
hasLayoutSetPrototypeLayout(long layoutSetPrototypeId,
String layoutUuid) |
boolean |
hasLayoutSetPrototypeLayout(String layoutSetPrototypeUuid,
long companyId,
String layoutUuid) |
void |
importLayouts(ExportImportConfiguration exportImportConfiguration,
File file)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.importLayouts(
ExportImportConfiguration, File) } |
void |
importLayouts(ExportImportConfiguration exportImportConfiguration,
InputStream is)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.importLayouts(
ExportImportConfiguration, InputStream) } |
void |
importLayouts(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
byte[] bytes)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
void |
importLayouts(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
void |
importLayouts(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
InputStream is)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
void |
importLayoutsDataDeletions(ExportImportConfiguration exportImportConfiguration,
File file)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.importLayoutsDataDeletions(
ExportImportConfiguration, File) |
long |
importLayoutsInBackground(long userId,
ExportImportConfiguration exportImportConfiguration,
File file)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.importLayoutsInBackground(
long, ExportImportConfiguration, File) |
long |
importLayoutsInBackground(long userId,
long exportImportConfigurationId,
File file)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.importLayoutsInBackground(
long, long, File) |
long |
importLayoutsInBackground(long userId,
String taskName,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
long |
importLayoutsInBackground(long userId,
String taskName,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
InputStream is)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
void |
importPortletDataDeletions(ExportImportConfiguration exportImportConfiguration,
File file)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.importPortletDataDeletions(
ExportImportConfiguration, File) |
void |
importPortletInfo(ExportImportConfiguration exportImportConfiguration,
File file)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.importPortletInfo(
ExportImportConfiguration, File) |
void |
importPortletInfo(ExportImportConfiguration exportImportConfiguration,
InputStream is)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.importPortletInfo(
ExportImportConfiguration, InputStream) |
void |
importPortletInfo(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
void |
importPortletInfo(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
InputStream is)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
void |
importPortletInfo(long userId,
String portletId,
Map<String,String[]> parameterMap,
File file)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
void |
importPortletInfo(long userId,
String portletId,
Map<String,String[]> parameterMap,
InputStream is)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
long |
importPortletInfoInBackground(long userId,
ExportImportConfiguration exportImportConfiguration,
File file)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.importPortletInfoInBackground(
long, ExportImportConfiguration, File) |
long |
importPortletInfoInBackground(long userId,
long exportImportConfigurationId,
File file)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.importPortletInfoInBackground(
long, long, File) |
long |
importPortletInfoInBackground(long userId,
String taskName,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
long |
importPortletInfoInBackground(long userId,
String taskName,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
InputStream is)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
long |
importPortletInfoInBackground(long userId,
String taskName,
String portletId,
Map<String,String[]> parameterMap,
File file)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
long |
importPortletInfoInBackground(long userId,
String taskName,
String portletId,
Map<String,String[]> parameterMap,
InputStream is)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
void |
setLayouts(long groupId,
boolean privateLayout,
long parentLayoutId,
long[] layoutIds,
ServiceContext serviceContext)
Sets the layouts for the group, replacing and prioritizing all layouts of
the parent layout.
|
void |
setWrappedService(LayoutLocalService layoutLocalService) |
void |
updateAsset(long userId,
Layout layout,
long[] assetCategoryIds,
String[] assetTagNames) |
Layout |
updateFriendlyURL(long userId,
long plid,
String friendlyURL,
String languageId)
Updates the friendly URL of the layout.
|
Layout |
updateFriendlyURL(long plid,
String friendlyURL,
String languageId)
Deprecated.
As of Wilberforce (7.0.x), replaced by
updateFriendlyURL(long, long, String, String) |
Layout |
updateIconImage(long plid,
byte[] bytes) |
Layout |
updateLayout(Layout layout)
Updates the layout in the database or adds it if it does not yet exist.
|
Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
Map<Locale,String> nameMap,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
Map<Locale,String> keywordsMap,
Map<Locale,String> robotsMap,
String type,
boolean hidden,
Map<Locale,String> friendlyURLMap,
boolean iconImage,
byte[] iconBytes,
ServiceContext serviceContext)
Updates the layout.
|
Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
String typeSettings)
Updates the layout replacing its type settings.
|
Layout |
updateLookAndFeel(long groupId,
boolean privateLayout,
long layoutId,
String themeId,
String colorSchemeId,
String css)
Updates the look and feel of the layout.
|
Layout |
updateName(Layout layout,
String name,
String languageId)
Updates the name of the layout.
|
Layout |
updateName(long groupId,
boolean privateLayout,
long layoutId,
String name,
String languageId)
Updates the name of the layout matching the group, layout ID, and
privacy.
|
Layout |
updateName(long plid,
String name,
String languageId)
Updates the name of the layout matching the primary key.
|
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.
|
Layout |
updateParentLayoutId(long plid,
long parentPlid)
Updates the parent layout ID of the layout matching the primary key.
|
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.
|
Layout |
updatePriority(Layout layout,
int priority)
Updates the priority of the layout.
|
Layout |
updatePriority(long groupId,
boolean privateLayout,
long layoutId,
int priority)
Updates the priority of the layout matching the group, layout ID, and
privacy.
|
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.
|
Layout |
updatePriority(long plid,
int priority)
Updates the priority of the layout matching the primary key.
|
MissingReferences |
validateImportLayoutsFile(ExportImportConfiguration exportImportConfiguration,
File file)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.validateImportLayoutsFile(
ExportImportConfiguration, File) |
MissingReferences |
validateImportLayoutsFile(ExportImportConfiguration exportImportConfiguration,
InputStream inputStream)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.validateImportLayoutsFile(
ExportImportConfiguration, InputStream) |
MissingReferences |
validateImportLayoutsFile(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
MissingReferences |
validateImportLayoutsFile(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
InputStream inputStream)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
MissingReferences |
validateImportPortletInfo(ExportImportConfiguration exportImportConfiguration,
File file)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.validateImportPortletInfo(
ExportImportConfiguration, File) |
MissingReferences |
validateImportPortletInfo(ExportImportConfiguration exportImportConfiguration,
InputStream inputStream)
Deprecated.
As of Wilberforce (7.0.x), replaced by
ExportImportLocalService.validateImportPortletInfo(
ExportImportConfiguration, InputStream) |
MissingReferences |
validateImportPortletInfo(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
MissingReferences |
validateImportPortletInfo(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
InputStream inputStream)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
public LayoutLocalServiceWrapper(LayoutLocalService layoutLocalService)
public Layout addLayout(Layout layout)
addLayout
in interface LayoutLocalService
layout
- the layoutpublic Layout addLayout(long userId, long groupId, boolean privateLayout, long parentLayoutId, Map<Locale,String> nameMap, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, Map<Locale,String> keywordsMap, Map<Locale,String> robotsMap, String type, String typeSettings, boolean hidden, Map<Locale,String> friendlyURLMap, ServiceContext serviceContext) throws 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.
addLayout
in interface LayoutLocalService
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.PortalException
public Layout addLayout(long userId, long groupId, boolean privateLayout, long parentLayoutId, String name, String title, String description, String type, boolean hidden, String friendlyURL, ServiceContext serviceContext) throws 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.
addLayout
in interface LayoutLocalService
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
PropsValues
title
- 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.PortalException
public Layout createLayout(long plid)
createLayout
in interface LayoutLocalService
plid
- the primary key for the new layoutpublic Layout deleteLayout(Layout layout) throws PortalException
deleteLayout
in interface LayoutLocalService
layout
- the layoutPortalException
public void deleteLayout(Layout layout, boolean updateLayoutSet, ServiceContext serviceContext) throws PortalException
deleteLayout
in interface LayoutLocalService
layout
- the layoutupdateLayoutSet
- whether the layout set's page counter needs to be
updatedserviceContext
- the service context to be appliedPortalException
public Layout deleteLayout(long plid) throws PortalException
deleteLayout
in interface LayoutLocalService
plid
- the primary key of the layoutPortalException
- if a layout with the primary key could not be foundpublic void deleteLayout(long groupId, boolean privateLayout, long layoutId, ServiceContext serviceContext) throws PortalException
deleteLayout
in interface LayoutLocalService
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 appliedPortalException
public void deleteLayout(long plid, ServiceContext serviceContext) throws PortalException
deleteLayout
in interface LayoutLocalService
plid
- the primary key of the layoutserviceContext
- the service context to be appliedPortalException
public void deleteLayouts(long groupId, boolean privateLayout, ServiceContext serviceContext) throws PortalException
deleteLayouts
in interface LayoutLocalService
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
.PortalException
public PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface LayoutLocalService
deletePersistedModel
in interface PersistedModelLocalService
PortalException
public DynamicQuery dynamicQuery()
dynamicQuery
in interface LayoutLocalService
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
in interface LayoutLocalService
dynamicQuery
- the dynamic querypublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from LayoutModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
in interface LayoutLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from LayoutModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
in interface LayoutLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQueryCount
in interface LayoutLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQueryCount
in interface LayoutLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query@Deprecated public byte[] exportLayouts(long groupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException
exportLayouts
in interface LayoutLocalService
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 datePortalException
@Deprecated public byte[] exportLayouts(long groupId, boolean privateLayout, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException
exportLayouts
in interface LayoutLocalService
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 datePortalException
@Deprecated public File exportLayoutsAsFile(ExportImportConfiguration exportImportConfiguration) throws PortalException
ExportImportLocalService.exportLayoutsAsFile(
ExportImportConfiguration)
exportLayoutsAsFile
in interface LayoutLocalService
PortalException
@Deprecated public File exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException
exportLayoutsAsFile
in interface LayoutLocalService
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 datePortalException
@Deprecated public long exportLayoutsAsFileInBackground(long userId, ExportImportConfiguration exportImportConfiguration) throws PortalException
ExportImportLocalService.exportLayoutsAsFileInBackground(
long, ExportImportConfiguration)
exportLayoutsAsFileInBackground
in interface LayoutLocalService
PortalException
@Deprecated public long exportLayoutsAsFileInBackground(long userId, long exportImportConfigurationId) throws PortalException
ExportImportLocalService.exportLayoutsAsFileInBackground(
long, long)
exportLayoutsAsFileInBackground
in interface LayoutLocalService
PortalException
@Deprecated public long exportLayoutsAsFileInBackground(long userId, String taskName, long groupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException
exportLayoutsAsFileInBackground
in interface LayoutLocalService
PortalException
@Deprecated public long exportLayoutsAsFileInBackground(long userId, String taskName, long groupId, boolean privateLayout, long[] layoutIds, Map<String,String[]> parameterMap, Date startDate, Date endDate, String fileName) throws PortalException
exportLayoutsAsFileInBackground
in interface LayoutLocalService
PortalException
@Deprecated public byte[] exportPortletInfo(long plid, long groupId, String portletId, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException
exportPortletInfo
in interface LayoutLocalService
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 datePortalException
@Deprecated public byte[] exportPortletInfo(long companyId, String portletId, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException
exportPortletInfo
in interface LayoutLocalService
PortalException
@Deprecated public File exportPortletInfoAsFile(ExportImportConfiguration exportImportConfiguration) throws PortalException
ExportImportLocalService.exportPortletInfoAsFile(
ExportImportConfiguration)
}exportPortletInfoAsFile
in interface LayoutLocalService
PortalException
@Deprecated public File exportPortletInfoAsFile(long plid, long groupId, String portletId, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException
exportPortletInfoAsFile
in interface LayoutLocalService
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 datePortalException
@Deprecated public File exportPortletInfoAsFile(long companyId, String portletId, Map<String,String[]> parameterMap, Date startDate, Date endDate) throws PortalException
exportPortletInfoAsFile
in interface LayoutLocalService
PortalException
@Deprecated public long exportPortletInfoAsFileInBackground(long userId, ExportImportConfiguration exportImportConfiguration) throws PortalException
ExportImportLocalService.exportPortletInfoAsFileInBackground(
long, ExportImportConfiguration)
}exportPortletInfoAsFileInBackground
in interface LayoutLocalService
PortalException
@Deprecated public long exportPortletInfoAsFileInBackground(long userId, long exportImportConfigurationId) throws PortalException
ExportImportLocalService.exportPortletInfoAsFileInBackground(
long, long)
}exportPortletInfoAsFileInBackground
in interface LayoutLocalService
PortalException
@Deprecated public long exportPortletInfoAsFileInBackground(long userId, String taskName, long plid, long groupId, String portletId, Map<String,String[]> parameterMap, Date startDate, Date endDate, String fileName) throws PortalException
exportPortletInfoAsFileInBackground
in interface LayoutLocalService
PortalException
@Deprecated public long exportPortletInfoAsFileInBackground(long userId, String taskName, String portletId, Map<String,String[]> parameterMap, Date startDate, Date endDate, String fileName) throws PortalException
exportPortletInfoAsFileInBackground
in interface LayoutLocalService
PortalException
public Layout fetchDefaultLayout(long groupId, boolean privateLayout)
fetchDefaultLayout
in interface LayoutLocalService
public Layout fetchFirstLayout(long groupId, boolean privateLayout, long parentLayoutId)
fetchFirstLayout
in interface LayoutLocalService
public Layout fetchLayout(long plid)
fetchLayout
in interface LayoutLocalService
public Layout fetchLayout(long groupId, boolean privateLayout, long layoutId)
fetchLayout
in interface LayoutLocalService
public Layout fetchLayout(String uuid, long groupId, boolean privateLayout)
fetchLayout
in interface LayoutLocalService
public Layout fetchLayoutByFriendlyURL(long groupId, boolean privateLayout, String friendlyURL)
fetchLayoutByFriendlyURL
in interface LayoutLocalService
public Layout fetchLayoutByIconImageId(boolean privateLayout, long iconImageId) throws PortalException
fetchLayoutByIconImageId
in interface LayoutLocalService
PortalException
public Layout fetchLayoutByUuidAndGroupId(String uuid, long groupId, boolean privateLayout)
fetchLayoutByUuidAndGroupId
in interface LayoutLocalService
uuid
- the layout's UUIDgroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupnull
if a matching layout could not be foundpublic ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface LayoutLocalService
public long getDefaultPlid(long groupId)
getDefaultPlid
in interface LayoutLocalService
groupId
- the primary key of the groupLayoutConstants#DEFAULT_PLID
)public long getDefaultPlid(long groupId, boolean privateLayout)
getDefaultPlid
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupLayoutConstants#DEFAULT_PLID
) otherwisepublic long getDefaultPlid(long groupId, boolean privateLayout, String portletId) throws PortalException
getDefaultPlid
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupportletId
- the primary key of the portletLayoutConstants#DEFAULT_PLID
otherwisePortalException
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface LayoutLocalService
public Layout getFriendlyURLLayout(long groupId, boolean privateLayout, String friendlyURL) throws PortalException
getFriendlyURLLayout
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupfriendlyURL
- the friendly URL of the layoutPortalException
public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface LayoutLocalService
public Layout getLayout(long plid) throws PortalException
getLayout
in interface LayoutLocalService
plid
- the primary key of the layoutPortalException
- if a layout with the primary key could not be foundpublic Layout getLayout(long groupId, boolean privateLayout, long layoutId) throws PortalException
NoSuchLayoutException
otherwise.getLayout
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the primary key of the layoutPortalException
public Layout getLayoutByIconImageId(long iconImageId) throws PortalException
NoSuchLayoutException
otherwise.getLayoutByIconImageId
in interface LayoutLocalService
iconImageId
- the primary key of the icon imagePortalException
public Layout getLayoutByUuidAndGroupId(String uuid, long groupId, boolean privateLayout) throws PortalException
getLayoutByUuidAndGroupId
in interface LayoutLocalService
uuid
- the layout's UUIDgroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupPortalException
- if a matching layout could not be foundpublic Map<Long,List<Layout>> getLayoutChildLayouts(LayoutSet layoutSet, List<Layout> parentLayouts)
getLayoutChildLayouts
in interface LayoutLocalService
public List<Layout> getLayouts(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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from LayoutModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getLayouts
in interface LayoutLocalService
start
- the lower bound of the range of layoutsend
- the upper bound of the range of layouts (not inclusive)public List<Layout> getLayouts(long companyId)
getLayouts
in interface LayoutLocalService
public List<Layout> getLayouts(long groupId, boolean privateLayout)
getLayouts
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupnull
if no matches were
foundpublic List<Layout> getLayouts(long groupId, boolean privateLayout, long parentLayoutId)
getLayouts
in interface LayoutLocalService
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 List<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.
getLayouts
in interface LayoutLocalService
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 List<Layout> getLayouts(long groupId, boolean privateLayout, long[] layoutIds) throws PortalException
getLayouts
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutIds
- the primary keys of the layoutsPortalException
public List<Layout> getLayouts(long groupId, boolean privateLayout, String type)
getLayouts
in interface LayoutLocalService
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 LayoutReference[] getLayouts(long companyId, String portletId, String preferencesKey, String preferencesValue)
getLayouts
in interface LayoutLocalService
companyId
- the primary key of the companyportletId
- the primary key of the portletpreferencesKey
- the portlet's preference keypreferencesValue
- the portlet's preference valuepublic List<Layout> getLayoutsByLayoutPrototypeUuid(String layoutPrototypeUuid)
getLayoutsByLayoutPrototypeUuid
in interface LayoutLocalService
public int getLayoutsByLayoutPrototypeUuidCount(String layoutPrototypeUuid)
getLayoutsByLayoutPrototypeUuidCount
in interface LayoutLocalService
public List<Layout> getLayoutsByUuidAndCompanyId(String uuid, long companyId)
getLayoutsByUuidAndCompanyId
in interface LayoutLocalService
uuid
- the UUID of the layoutscompanyId
- the primary key of the companypublic List<Layout> getLayoutsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<Layout> orderByComparator)
getLayoutsByUuidAndCompanyId
in interface LayoutLocalService
uuid
- the UUID of the layoutscompanyId
- the primary key of the companystart
- the lower bound of the range of layoutsend
- the upper bound of the range of layouts (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public int getLayoutsCount()
getLayoutsCount
in interface LayoutLocalService
public int getLayoutsCount(Group group, boolean privateLayout) throws PortalException
getLayoutsCount
in interface LayoutLocalService
PortalException
public int getLayoutsCount(Group group, boolean privateLayout, boolean includeUserGroups) throws PortalException
getLayoutsCount
in interface LayoutLocalService
PortalException
public int getLayoutsCount(Group group, boolean privateLayout, long parentLayoutId)
getLayoutsCount
in interface LayoutLocalService
public int getLayoutsCount(Group group, boolean privateLayout, long[] layoutIds)
getLayoutsCount
in interface LayoutLocalService
public int getLayoutsCount(User user, boolean privateLayout) throws PortalException
getLayoutsCount
in interface LayoutLocalService
PortalException
public int getLayoutsCount(User user, boolean privateLayout, boolean includeUserGroups) throws PortalException
getLayoutsCount
in interface LayoutLocalService
PortalException
public long getNextLayoutId(long groupId, boolean privateLayout)
getNextLayoutId
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the group@Deprecated public List<Layout> getNoPermissionLayouts(long roleId)
getNoPermissionLayouts
in interface LayoutLocalService
roleId
- the primary key of the rolepublic List<Layout> getNullFriendlyURLLayouts()
null
getNullFriendlyURLLayouts
in interface LayoutLocalService
null
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface LayoutLocalService
public Layout getParentLayout(Layout layout) throws PortalException
getParentLayout
in interface LayoutLocalService
PortalException
public PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface LayoutLocalService
getPersistedModel
in interface PersistedModelLocalService
PortalException
public List<Layout> getScopeGroupLayouts(long parentGroupId) throws PortalException
getScopeGroupLayouts
in interface LayoutLocalService
PortalException
public List<Layout> getScopeGroupLayouts(long parentGroupId, boolean privateLayout) throws PortalException
getScopeGroupLayouts
in interface LayoutLocalService
privateLayout
- whether the layout is private to the groupPortalException
public boolean hasLayouts(Group group) throws PortalException
hasLayouts
in interface LayoutLocalService
PortalException
public boolean hasLayouts(Group group, boolean privateLayout) throws PortalException
hasLayouts
in interface LayoutLocalService
PortalException
public boolean hasLayouts(Group group, boolean privateLayout, boolean includeUserGroups) throws PortalException
hasLayouts
in interface LayoutLocalService
PortalException
public boolean hasLayouts(long groupId, boolean privateLayout, long parentLayoutId)
true
if the group has any layouts;
false
otherwise.hasLayouts
in interface LayoutLocalService
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(User user, boolean privateLayout) throws PortalException
hasLayouts
in interface LayoutLocalService
PortalException
public boolean hasLayouts(User user, boolean privateLayout, boolean includeUserGroups) throws PortalException
hasLayouts
in interface LayoutLocalService
PortalException
public boolean hasLayoutSetPrototypeLayout(long layoutSetPrototypeId, String layoutUuid) throws PortalException
hasLayoutSetPrototypeLayout
in interface LayoutLocalService
PortalException
public boolean hasLayoutSetPrototypeLayout(String layoutSetPrototypeUuid, long companyId, String layoutUuid) throws PortalException
hasLayoutSetPrototypeLayout
in interface LayoutLocalService
PortalException
@Deprecated public void importLayouts(ExportImportConfiguration exportImportConfiguration, File file) throws PortalException
ExportImportLocalService.importLayouts(
ExportImportConfiguration, File)
}importLayouts
in interface LayoutLocalService
PortalException
@Deprecated public void importLayouts(ExportImportConfiguration exportImportConfiguration, InputStream is) throws PortalException
ExportImportLocalService.importLayouts(
ExportImportConfiguration, InputStream)
}importLayouts
in interface LayoutLocalService
PortalException
@Deprecated public void importLayouts(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, byte[] bytes) throws PortalException
importLayouts
in interface LayoutLocalService
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 dataPortalException
com.liferay.exportimport.kernel.lar.LayoutImporter
@Deprecated public void importLayouts(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, File file) throws PortalException
importLayouts
in interface LayoutLocalService
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 dataPortalException
com.liferay.exportimport.kernel.lar.LayoutImporter
@Deprecated public void importLayouts(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, InputStream is) throws PortalException
importLayouts
in interface LayoutLocalService
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 streamPortalException
com.liferay.exportimport.kernel.lar.LayoutImporter
@Deprecated public void importLayoutsDataDeletions(ExportImportConfiguration exportImportConfiguration, File file) throws PortalException
ExportImportLocalService.importLayoutsDataDeletions(
ExportImportConfiguration, File)
importLayoutsDataDeletions
in interface LayoutLocalService
PortalException
@Deprecated public long importLayoutsInBackground(long userId, ExportImportConfiguration exportImportConfiguration, File file) throws PortalException
ExportImportLocalService.importLayoutsInBackground(
long, ExportImportConfiguration, File)
importLayoutsInBackground
in interface LayoutLocalService
PortalException
@Deprecated public long importLayoutsInBackground(long userId, long exportImportConfigurationId, File file) throws PortalException
ExportImportLocalService.importLayoutsInBackground(
long, long, File)
importLayoutsInBackground
in interface LayoutLocalService
PortalException
@Deprecated public long importLayoutsInBackground(long userId, String taskName, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, File file) throws PortalException
importLayoutsInBackground
in interface LayoutLocalService
PortalException
@Deprecated public long importLayoutsInBackground(long userId, String taskName, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, InputStream is) throws PortalException
importLayoutsInBackground
in interface LayoutLocalService
PortalException
@Deprecated public void importPortletDataDeletions(ExportImportConfiguration exportImportConfiguration, File file) throws PortalException
ExportImportLocalService.importPortletDataDeletions(
ExportImportConfiguration, File)
importPortletDataDeletions
in interface LayoutLocalService
PortalException
@Deprecated public void importPortletInfo(ExportImportConfiguration exportImportConfiguration, File file) throws PortalException
ExportImportLocalService.importPortletInfo(
ExportImportConfiguration, File)
importPortletInfo
in interface LayoutLocalService
PortalException
@Deprecated public void importPortletInfo(ExportImportConfiguration exportImportConfiguration, InputStream is) throws PortalException
ExportImportLocalService.importPortletInfo(
ExportImportConfiguration, InputStream)
importPortletInfo
in interface LayoutLocalService
PortalException
@Deprecated public void importPortletInfo(long userId, long plid, long groupId, String portletId, Map<String,String[]> parameterMap, File file) throws PortalException
importPortletInfo
in interface LayoutLocalService
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 dataPortalException
@Deprecated public void importPortletInfo(long userId, long plid, long groupId, String portletId, Map<String,String[]> parameterMap, InputStream is) throws PortalException
importPortletInfo
in interface LayoutLocalService
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 streamPortalException
@Deprecated public void importPortletInfo(long userId, String portletId, Map<String,String[]> parameterMap, File file) throws PortalException
importPortletInfo
in interface LayoutLocalService
PortalException
@Deprecated public void importPortletInfo(long userId, String portletId, Map<String,String[]> parameterMap, InputStream is) throws PortalException
importPortletInfo
in interface LayoutLocalService
PortalException
@Deprecated public long importPortletInfoInBackground(long userId, ExportImportConfiguration exportImportConfiguration, File file) throws PortalException
ExportImportLocalService.importPortletInfoInBackground(
long, ExportImportConfiguration, File)
importPortletInfoInBackground
in interface LayoutLocalService
PortalException
@Deprecated public long importPortletInfoInBackground(long userId, long exportImportConfigurationId, File file) throws PortalException
ExportImportLocalService.importPortletInfoInBackground(
long, long, File)
importPortletInfoInBackground
in interface LayoutLocalService
PortalException
@Deprecated public long importPortletInfoInBackground(long userId, String taskName, long plid, long groupId, String portletId, Map<String,String[]> parameterMap, File file) throws PortalException
importPortletInfoInBackground
in interface LayoutLocalService
PortalException
@Deprecated public long importPortletInfoInBackground(long userId, String taskName, long plid, long groupId, String portletId, Map<String,String[]> parameterMap, InputStream is) throws PortalException
importPortletInfoInBackground
in interface LayoutLocalService
PortalException
@Deprecated public long importPortletInfoInBackground(long userId, String taskName, String portletId, Map<String,String[]> parameterMap, File file) throws PortalException
importPortletInfoInBackground
in interface LayoutLocalService
PortalException
@Deprecated public long importPortletInfoInBackground(long userId, String taskName, String portletId, Map<String,String[]> parameterMap, InputStream is) throws PortalException
importPortletInfoInBackground
in interface LayoutLocalService
PortalException
public void setLayouts(long groupId, boolean privateLayout, long parentLayoutId, long[] layoutIds, ServiceContext serviceContext) throws PortalException
setLayouts
in interface LayoutLocalService
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 appliedPortalException
public void updateAsset(long userId, Layout layout, long[] assetCategoryIds, String[] assetTagNames) throws PortalException
updateAsset
in interface LayoutLocalService
PortalException
public Layout updateFriendlyURL(long userId, long plid, String friendlyURL, String languageId) throws PortalException
updateFriendlyURL
in interface LayoutLocalService
userId
- the primary key of the userplid
- the primary key of the layoutfriendlyURL
- the friendly URL to be assignedlanguageId
- the primary key of the languagePortalException
@Deprecated public Layout updateFriendlyURL(long plid, String friendlyURL, String languageId) throws PortalException
updateFriendlyURL(long, long, String, String)
updateFriendlyURL
in interface LayoutLocalService
plid
- the primary key of the layoutfriendlyURL
- the friendly URL to be assignedlanguageId
- the primary key of the languagePortalException
public Layout updateIconImage(long plid, byte[] bytes) throws PortalException
updateIconImage
in interface LayoutLocalService
PortalException
public Layout updateLayout(Layout layout)
updateLayout
in interface LayoutLocalService
layout
- the layoutpublic Layout updateLayout(long groupId, boolean privateLayout, long layoutId, long parentLayoutId, Map<Locale,String> nameMap, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, Map<Locale,String> keywordsMap, Map<Locale,String> robotsMap, String type, boolean hidden, Map<Locale,String> friendlyURLMap, boolean iconImage, byte[] iconBytes, ServiceContext serviceContext) throws PortalException
updateLayout
in interface LayoutLocalService
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.PortalException
public Layout updateLayout(long groupId, boolean privateLayout, long layoutId, String typeSettings) throws PortalException
updateLayout
in interface LayoutLocalService
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)
.PortalException
public Layout updateLookAndFeel(long groupId, boolean privateLayout, long layoutId, String themeId, String colorSchemeId, String css) throws PortalException
updateLookAndFeel
in interface LayoutLocalService
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 CSSPortalException
public Layout updateName(Layout layout, String name, String languageId) throws PortalException
updateName
in interface LayoutLocalService
layout
- the layout to be updatedname
- the layout's new namelanguageId
- the primary key of the language. For more information
see Locale
.PortalException
public Layout updateName(long groupId, boolean privateLayout, long layoutId, String name, String languageId) throws PortalException
updateName
in interface LayoutLocalService
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
.PortalException
public Layout updateName(long plid, String name, String languageId) throws PortalException
updateName
in interface LayoutLocalService
plid
- the primary key of the layoutname
- the name to be assignedlanguageId
- the primary key of the language. For more information
see Locale
.PortalException
public Layout updateParentLayoutId(long groupId, boolean privateLayout, long layoutId, long parentLayoutId) throws PortalException
updateParentLayoutId
in interface LayoutLocalService
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
layoutPortalException
public Layout updateParentLayoutId(long plid, long parentPlid) throws PortalException
LayoutConstants#DEFAULT_PARENT_LAYOUT_ID
is assigned.updateParentLayoutId
in interface LayoutLocalService
plid
- the primary key of the layoutparentPlid
- the primary key of the parent layoutPortalException
public Layout updateParentLayoutIdAndPriority(long plid, long parentPlid, int priority) throws PortalException
updateParentLayoutIdAndPriority
in interface LayoutLocalService
plid
- the primary key of the layoutparentPlid
- the primary key of the parent layoutpriority
- the layout's new priorityPortalException
public void updatePriorities(long groupId, boolean privateLayout) throws PortalException
updatePriorities
in interface LayoutLocalService
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupPortalException
public Layout updatePriority(Layout layout, int priority) throws PortalException
updatePriority
in interface LayoutLocalService
layout
- the layout to be updatedpriority
- the layout's new priorityPortalException
public Layout updatePriority(long groupId, boolean privateLayout, long layoutId, int priority) throws PortalException
updatePriority
in interface LayoutLocalService
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 priorityPortalException
public Layout updatePriority(long groupId, boolean privateLayout, long layoutId, long nextLayoutId, long previousLayoutId) throws PortalException
updatePriority
in interface LayoutLocalService
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 layoutPortalException
public Layout updatePriority(long plid, int priority) throws PortalException
updatePriority
in interface LayoutLocalService
plid
- the primary key of the layoutpriority
- the layout's new priorityPortalException
@Deprecated public MissingReferences validateImportLayoutsFile(ExportImportConfiguration exportImportConfiguration, File file) throws PortalException
ExportImportLocalService.validateImportLayoutsFile(
ExportImportConfiguration, File)
validateImportLayoutsFile
in interface LayoutLocalService
PortalException
@Deprecated public MissingReferences validateImportLayoutsFile(ExportImportConfiguration exportImportConfiguration, InputStream inputStream) throws PortalException
ExportImportLocalService.validateImportLayoutsFile(
ExportImportConfiguration, InputStream)
validateImportLayoutsFile
in interface LayoutLocalService
PortalException
@Deprecated public MissingReferences validateImportLayoutsFile(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, File file) throws PortalException
validateImportLayoutsFile
in interface LayoutLocalService
PortalException
@Deprecated public MissingReferences validateImportLayoutsFile(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, InputStream inputStream) throws PortalException
validateImportLayoutsFile
in interface LayoutLocalService
PortalException
@Deprecated public MissingReferences validateImportPortletInfo(ExportImportConfiguration exportImportConfiguration, File file) throws PortalException
ExportImportLocalService.validateImportPortletInfo(
ExportImportConfiguration, File)
validateImportPortletInfo
in interface LayoutLocalService
PortalException
@Deprecated public MissingReferences validateImportPortletInfo(ExportImportConfiguration exportImportConfiguration, InputStream inputStream) throws PortalException
ExportImportLocalService.validateImportPortletInfo(
ExportImportConfiguration, InputStream)
validateImportPortletInfo
in interface LayoutLocalService
PortalException
@Deprecated public MissingReferences validateImportPortletInfo(long userId, long plid, long groupId, String portletId, Map<String,String[]> parameterMap, File file) throws PortalException
validateImportPortletInfo
in interface LayoutLocalService
PortalException
@Deprecated public MissingReferences validateImportPortletInfo(long userId, long plid, long groupId, String portletId, Map<String,String[]> parameterMap, InputStream inputStream) throws PortalException
validateImportPortletInfo
in interface LayoutLocalService
PortalException
public LayoutLocalService getWrappedService()
getWrappedService
in interface ServiceWrapper<LayoutLocalService>
public void setWrappedService(LayoutLocalService layoutLocalService)
setWrappedService
in interface ServiceWrapper<LayoutLocalService>