Class LayoutLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService
,CTService<Layout>
,LayoutLocalService
,PersistedModelLocalService
,ServiceWrapper<LayoutLocalService>
LayoutLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds the layout to the database.addLayout
(String externalReferenceCode, long userId, long groupId, boolean privateLayout, long parentLayoutId, long classNameId, long classPK, 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, boolean system, Map<Locale, String> friendlyURLMap, long masterLayoutPlid, ServiceContext serviceContext) Adds a layout with additional parameters.addLayout
(String externalReferenceCode, long userId, long groupId, boolean privateLayout, long parentLayoutId, String name, String title, String description, String type, boolean hidden, boolean system, String friendlyURL, ServiceContext serviceContext) Adds a layout with single entry maps for name, title, and description to the default locale.addLayout
(String externalReferenceCode, 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.addLayout
(String externalReferenceCode, 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, boolean system, Map<Locale, String> friendlyURLMap, ServiceContext serviceContext) Adds a layout with additional parameters.addLayout
(String externalReferenceCode, 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.copyLayout
(long userId, long groupId, boolean privateLayout, Map<Locale, String> nameMap, boolean hidden, boolean system, boolean copyPermissions, long sourcePlid, ServiceContext serviceContext) copyLayoutContent
(long[] segmentsExperienceIds, Layout sourceLayout, Layout targetLayout) copyLayoutContent
(long segmentsExperienceId, Layout sourceLayout, Layout targetLayout) copyLayoutContent
(Layout sourceLayout, Layout targetLayout) createLayout
(long plid) Creates a new layout with the primary key.createPersistedModel
(Serializable primaryKeyObj) 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 layout ID, 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.deleteLayout
(Layout layout) Deletes the layout from the database.void
deleteLayout
(Layout layout, ServiceContext serviceContext) Deletes the layout, its child layouts, and its associated resources.void
deleteLayout
(String externalReferenceCode, long groupId) 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.deletePersistedModel
(PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <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.fetchDefaultLayout
(long groupId, boolean privateLayout) fetchDraftLayout
(long plid) fetchFirstLayout
(long groupId, boolean privateLayout, long parentLayoutId) fetchFirstLayout
(long groupId, boolean privateLayout, long parentLayoutId, boolean hidden) fetchLayout
(long plid) fetchLayout
(long groupId, boolean privateLayout, long layoutId) fetchLayout
(long classNameId, long classPK) fetchLayout
(String uuid, long groupId, boolean privateLayout) fetchLayoutByExternalReferenceCode
(String externalReferenceCode, long groupId) fetchLayoutByFriendlyURL
(long groupId, boolean privateLayout, String friendlyURL) fetchLayoutByIconImageId
(boolean privateLayout, long iconImageId) fetchLayoutByUuidAndGroupId
(String uuid, long groupId, boolean privateLayout) Returns the layout matching the UUID, group, and privacy.getAllLayouts
(long groupId, boolean privateLayout, String type) Returns all the layouts that match the type and belong to the group, including the ones marked as System.getBrowsableLayout
(Layout layout) 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 grouplong
getDefaultPlid
(long groupId, boolean privateLayout, String portletId) Returns primary key of the default portlet layout for the groupgetExportActionableDynamicQuery
(PortletDataContext portletDataContext) getFriendlyURLLayout
(long groupId, boolean privateLayout, String friendlyURL) Returns the layout for the friendly URL.getLayout
(long plid) Returns the layout with the primary key.getLayout
(long groupId, boolean privateLayout, long layoutId) Returns the layout matching the layout ID, group, and privacy; throws aNoSuchLayoutException
otherwise.getLayoutByExternalReferenceCode
(String externalReferenceCode, long groupId) getLayoutByFriendlyURL
(long groupId, boolean privateLayout, String friendlyURL) getLayoutByIconImageId
(long iconImageId) Returns the layout for the icon image; throws aNoSuchLayoutException
otherwise.getLayoutByUuidAndGroupId
(String uuid, long groupId, boolean privateLayout) Returns the layout matching the UUID, group, and privacy.getLayoutChildLayouts
(List<Layout> parentLayouts) getLayouts
(int start, int end) Returns a range of all the layouts.getLayouts
(long companyId) getLayouts
(long groupId, boolean privateLayout) Returns all the layouts belonging to the group.getLayouts
(long groupId, boolean privateLayout, int[] statuses, int start, int end, OrderByComparator<Layout> orderByComparator) Returns a range of all the layouts belonging to the group.getLayouts
(long groupId, boolean privateLayout, int start, int end, OrderByComparator<Layout> orderByComparator) Returns a range of all the layouts belonging to the group.getLayouts
(long groupId, boolean privateLayout, long parentLayoutId) Returns all the layouts belonging to the group that are children of the parent layout.getLayouts
(long groupId, boolean privateLayout, long[] layoutIds) Returns all the layouts that match the layout IDs and belong to the group.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.getLayouts
(long groupId, boolean privateLayout, long parentLayoutId, boolean incomplete, int start, int end, OrderByComparator<Layout> orderByComparator) Returns a range of all the layouts belonging to the group that are children of the parent layout.getLayouts
(long groupId, boolean privateLayout, String type) Returns all the layouts that match the type and belong to the group.getLayouts
(long groupId, boolean privateLayout, String[] types) Returns all the layouts that match the type and belong to the group.getLayouts
(long groupId, boolean privateLayout, String keywords, String[] types, int start, int end, OrderByComparator<Layout> orderByComparator) Returns a range of all the layouts belonging to the group.getLayouts
(long groupId, int start, int end, OrderByComparator<Layout> orderByComparator) Returns a range of all the layouts belonging to the group.getLayouts
(long groupId, long userId, boolean privateLayout, String keywords, String[] types, int[] statuses, int start, int end, OrderByComparator<Layout> orderByComparator) getLayouts
(long groupId, long userId, boolean privateLayout, String keywords, String[] types, int start, int end, OrderByComparator<Layout> orderByComparator) Returns a range of all the layouts belonging to the group.getLayouts
(long groupId, String keywords, String[] types, int[] statuses, int start, int end, OrderByComparator<Layout> orderByComparator) Returns a range of all the layouts belonging to the group.getLayouts
(long groupId, String keywords, String[] types, int start, int end, OrderByComparator<Layout> orderByComparator) Returns a range of all the layouts belonging to the group.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.getLayouts
(Collection<Serializable> primaryKeys) getLayoutsByLayoutPrototypeUuid
(String layoutPrototypeUuid) int
getLayoutsByLayoutPrototypeUuidCount
(String layoutPrototypeUuid) getLayoutsByUuidAndCompanyId
(String uuid, long companyId) Returns all the layouts matching the UUID and company.getLayoutsByUuidAndCompanyId
(String uuid, long companyId, int start, int end, OrderByComparator<Layout> orderByComparator) Returns a range of layouts matching the UUID and company.int
Returns the number of layouts.int
getLayoutsCount
(long groupId) int
getLayoutsCount
(long groupId, boolean privateLayout) int
getLayoutsCount
(long groupId, boolean privateLayout, long parentLayoutId) int
getLayoutsCount
(long groupId, long userId, boolean privateLayout, String keywords, String[] types) int
getLayoutsCount
(long groupId, long userId, boolean privateLayout, String keywords, String[] types, int[] statuses) int
getLayoutsCount
(long groupId, String keywords, String[] types) int
getLayoutsCount
(long groupId, String keywords, String[] types, int[] statuses) 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
(Group group, boolean privateLayout, String keywords, String[] types) int
getLayoutsCount
(User user, boolean privateLayout) int
getLayoutsCount
(User user, boolean privateLayout, boolean includeUserGroups) getMasterLayouts
(long groupId, long masterLayoutPlid) int
getMasterLayoutsCount
(long groupId, long masterLayoutPlid) long
getNextLayoutId
(long groupId, boolean privateLayout) Returns the layout ID to use for the next layout.Returns the OSGi service identifier.getParentLayout
(Layout layout) getPersistedModel
(Serializable primaryKeyObj) getPublishedLayouts
(long groupId, int start, int end, OrderByComparator<Layout> orderByComparator) int
getPublishedLayoutsCount
(long groupId) getScopeGroupLayouts
(long parentGroupId) getScopeGroupLayouts
(long parentGroupId, boolean privateLayout) Returns all the layouts within scope of the group.boolean
Returnstrue
if there is a matching layout with the UUID, group, and privacy.boolean
hasLayouts
(long groupId, boolean privateLayout, long parentLayoutId) Returnstrue
if the group has any layouts;false
otherwise.boolean
hasLayouts
(Group group) boolean
hasLayouts
(Group group, boolean privateLayout) boolean
hasLayouts
(Group group, boolean privateLayout, boolean includeUserGroups) 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) search
(long groupId, boolean privateLayout, String keywords, boolean searchOnlyByTitle, String[] types, int start, int end, OrderByComparator<Layout> orderByComparator) search
(long groupId, long userId, boolean privateLayout, String keywords, boolean searchOnlyByTitle, String[] types, int[] statuses, int start, int end, OrderByComparator<Layout> orderByComparator) search
(long groupId, long userId, boolean privateLayout, String keywords, boolean searchOnlyByTitle, String[] types, int start, int end, OrderByComparator<Layout> orderByComparator) int
searchCount
(long groupId, long userId, boolean privateLayout, String keywords, boolean searchOnlyByTitle, String[] types) int
searchCount
(Group group, boolean privateLayout, String keywords, boolean searchOnlyByTitle, String[] types) 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) updateFriendlyURL
(long userId, long plid, String friendlyURL, String languageId) Updates the friendly URL of the layout.updateIconImage
(long plid, byte[] bytes) updateLayout
(long groupId, boolean privateLayout, long layoutId, long classNameId, long classPK) Updates the layout replacing its entity class name ID and primary key.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 hasIconImage, byte[] iconBytes, long styleBookEntryId, long faviconFileEntryId, long masterLayoutPlid, ServiceContext serviceContext) Updates the layout.updateLayout
(long groupId, boolean privateLayout, long layoutId, String typeSettings) Updates the layout replacing its type settings.updateLayout
(long groupId, boolean privateLayout, long layoutId, String typeSettings, byte[] iconBytes, String themeId, String colorSchemeId, long styleBookEntryId, String css, long faviconFileEntryId, long masterLayoutPlid) updateLayout
(long groupId, boolean privateLayout, long layoutId, Date publishDate) Updates the layout replacing its draft publish date.updateLayout
(Layout layout) Updates the layout in the database or adds it if it does not yet exist.updateLookAndFeel
(long groupId, boolean privateLayout, long layoutId, String themeId, String colorSchemeId, String css) Updates the look and feel of the layout.updateMasterLayoutPlid
(long groupId, boolean privateLayout, long layoutId, long masterLayoutPlid) Updates the layout replacing its master layout plid.updateName
(long groupId, boolean privateLayout, long layoutId, String name, String languageId) Updates the name of the layout matching the group, layout ID, and privacy.updateName
(long plid, String name, String languageId) Updates the name of the layout matching the primary key.updateName
(Layout layout, String name, String languageId) Updates the name of the 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.updateParentLayoutId
(long plid, long parentPlid) Updates the parent layout ID of the layout matching the primary key.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.updatePriority
(long groupId, boolean privateLayout, long layoutId, int priority) Updates the priority of the layout matching the group, layout ID, and privacy.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.updatePriority
(long plid, int priority) Updates the priority of the layout matching the primary key.updatePriority
(Layout layout, int priority) Updates the priority of the layout.updateStatus
(long userId, long plid, int status, ServiceContext serviceContext) updateStyleBookEntryId
(long groupId, boolean privateLayout, long layoutId, long styleBookEntryId) Updates the layout replacing its style book entry ID.updateType
(long plid, String type) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<CTPersistence<Layout>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
LayoutLocalServiceWrapper
public LayoutLocalServiceWrapper() -
LayoutLocalServiceWrapper
-
-
Method Details
-
addLayout
Adds the layout to the database. Also notifies the appropriate model listeners.Important: Inspect LayoutLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
addLayout
in interfaceLayoutLocalService
- Parameters:
layout
- the layout- Returns:
- the layout that was added
-
addLayout
public Layout addLayout(String externalReferenceCode, long userId, long groupId, boolean privateLayout, long parentLayoutId, long classNameId, long classPK, Map<Locale, String> nameMap, Map<Locale, throws PortalExceptionString> titleMap, Map<Locale, String> descriptionMap, Map<Locale, String> keywordsMap, Map<Locale, String> robotsMap, String type, String typeSettings, boolean hidden, boolean system, Map<Locale, String> friendlyURLMap, long masterLayoutPlid, ServiceContext serviceContext) Adds a layout with additional parameters.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.
- Specified by:
addLayout
in interfaceLayoutLocalService
- Parameters:
externalReferenceCode
- the layout's external reference codeuserId
- the primary key of the usergroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the layout ID of the parent layout (optionallyLayoutConstants#DEFAULT_PARENT_LAYOUT_ID
)classNameId
- the class name ID of the entityclassPK
- the primary key of the entitynameMap
- 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 (optionallyLayoutConstants#TYPE_PORTLET
). The possible types can be found inLayoutConstants
.typeSettings
- the settings to load the unicode properties object. See#fastLoad(String)
.hidden
- whether the layout is hiddensystem
- whether the layout is of system typefriendlyURLMap
- the layout's locales and localized friendly URLs. To see how the URL is normalized when accessed, seeFriendlyURLNormalizerUtil.normalize(String)
.masterLayoutPlid
- the primary key of the master layoutserviceContext
- 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 namedlayoutUpdateable
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 namedlayoutPrototypeUuid
andlayoutPrototypeLinkedEnabled
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.- Returns:
- the layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
addLayout
public Layout addLayout(String externalReferenceCode, long userId, long groupId, boolean privateLayout, long parentLayoutId, Map<Locale, String> nameMap, Map<Locale, throws PortalExceptionString> titleMap, Map<Locale, String> descriptionMap, Map<Locale, String> keywordsMap, Map<Locale, String> robotsMap, String type, String typeSettings, boolean hidden, boolean system, Map<Locale, String> friendlyURLMap, ServiceContext serviceContext) Adds a layout with additional parameters.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.
- Specified by:
addLayout
in interfaceLayoutLocalService
- Parameters:
externalReferenceCode
- the layout's external reference codeuserId
- the primary key of the usergroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the layout ID of the parent layout (optionallyLayoutConstants#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 (optionallyLayoutConstants#TYPE_PORTLET
). The possible types can be found inLayoutConstants
.typeSettings
- the settings to load the unicode properties object. See#fastLoad(String)
.hidden
- whether the layout is hiddensystem
- whether the layout is of system typefriendlyURLMap
- the layout's locales and localized friendly URLs. To see how the URL is normalized when accessed, seeFriendlyURLNormalizerUtil.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 namedlayoutUpdateable
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 namedlayoutPrototypeUuid
andlayoutPrototypeLinkedEnabled
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.- Returns:
- the layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
addLayout
public Layout addLayout(String externalReferenceCode, long userId, long groupId, boolean privateLayout, long parentLayoutId, Map<Locale, String> nameMap, Map<Locale, throws PortalExceptionString> 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.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.
- Specified by:
addLayout
in interfaceLayoutLocalService
- Parameters:
externalReferenceCode
- the layout's external reference codeuserId
- the primary key of the usergroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the layout ID of the parent layout (optionallyLayoutConstants#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 (optionallyLayoutConstants#TYPE_PORTLET
). The possible types can be found inLayoutConstants
.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, seeFriendlyURLNormalizerUtil.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 namedlayoutUpdateable
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 namedlayoutPrototypeUuid
andlayoutPrototypeLinkedEnabled
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.- Returns:
- the layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
addLayout
public Layout addLayout(String externalReferenceCode, long userId, long groupId, boolean privateLayout, long parentLayoutId, String name, String title, String description, String type, boolean hidden, boolean system, String friendlyURL, ServiceContext serviceContext) throws PortalException Adds a layout with single entry maps for name, title, and description to the default locale.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.
- Specified by:
addLayout
in interfaceLayoutLocalService
- Parameters:
externalReferenceCode
- the layout's external reference codeuserId
- the primary key of the usergroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the layout ID of the parent layout (optionallyLayoutConstants#DEFAULT_PARENT_LAYOUT_ID
). The possible values can be found inLayoutConstants
.name
- the layout's name (optionallyPropsValues#DEFAULT_USER_PRIVATE_LAYOUT_NAME
orPropsValues#DEFAULT_USER_PUBLIC_LAYOUT_NAME
). The default values can be overridden inportal-ext.properties
by specifying new values for the corresponding properties defined inPropsValues
title
- the layout's titledescription
- the layout's descriptiontype
- the layout's type (optionallyLayoutConstants#TYPE_PORTLET
). The possible types can be found inLayoutConstants
.hidden
- whether the layout is hiddensystem
- whether the layout is of system typefriendlyURL
- the friendly URL of the layout (optionallyPropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL
orPropsValues#DEFAULT_USER_PUBLIC_LAYOUT_FRIENDLY_URL
). The default values can be overridden inportal-ext.properties
by specifying new values for the corresponding properties defined inPropsValues
. To see how the URL is normalized when accessed, seeFriendlyURLNormalizerUtil.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 namedlayoutUpdateable
can be set to specify whether site administrators can modify this page within their site.- Returns:
- the layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
addLayout
public Layout addLayout(String externalReferenceCode, long userId, long groupId, boolean privateLayout, long parentLayoutId, String name, String title, String description, String type, boolean hidden, String friendlyURL, ServiceContext serviceContext) throws PortalException Adds a layout with single entry maps for name, title, and description to the default locale.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.
- Specified by:
addLayout
in interfaceLayoutLocalService
- Parameters:
externalReferenceCode
- the layout's external reference codeuserId
- the primary key of the usergroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the layout ID of the parent layout (optionallyLayoutConstants#DEFAULT_PARENT_LAYOUT_ID
). The possible values can be found inLayoutConstants
.name
- the layout's name (optionallyPropsValues#DEFAULT_USER_PRIVATE_LAYOUT_NAME
orPropsValues#DEFAULT_USER_PUBLIC_LAYOUT_NAME
). The default values can be overridden inportal-ext.properties
by specifying new values for the corresponding properties defined inPropsValues
title
- the layout's titledescription
- the layout's descriptiontype
- the layout's type (optionallyLayoutConstants#TYPE_PORTLET
). The possible types can be found inLayoutConstants
.hidden
- whether the layout is hiddenfriendlyURL
- the friendly URL of the layout (optionallyPropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL
orPropsValues#DEFAULT_USER_PUBLIC_LAYOUT_FRIENDLY_URL
). The default values can be overridden inportal-ext.properties
by specifying new values for the corresponding properties defined inPropsValues
. To see how the URL is normalized when accessed, seeFriendlyURLNormalizerUtil.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 namedlayoutUpdateable
can be set to specify whether site administrators can modify this page within their site.- Returns:
- the layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
copyLayout
public Layout copyLayout(long userId, long groupId, boolean privateLayout, Map<Locale, String> nameMap, boolean hidden, boolean system, boolean copyPermissions, long sourcePlid, ServiceContext serviceContext) throws PortalException- Specified by:
copyLayout
in interfaceLayoutLocalService
- Throws:
PortalException
-
copyLayoutContent
- Specified by:
copyLayoutContent
in interfaceLayoutLocalService
- Throws:
Exception
-
copyLayoutContent
public Layout copyLayoutContent(long segmentsExperienceId, Layout sourceLayout, Layout targetLayout) throws Exception - Specified by:
copyLayoutContent
in interfaceLayoutLocalService
- Throws:
Exception
-
copyLayoutContent
public Layout copyLayoutContent(long[] segmentsExperienceIds, Layout sourceLayout, Layout targetLayout) throws Exception - Specified by:
copyLayoutContent
in interfaceLayoutLocalService
- Throws:
Exception
-
createLayout
Creates a new layout with the primary key. Does not add the layout to the database.- Specified by:
createLayout
in interfaceLayoutLocalService
- Parameters:
plid
- the primary key for the new layout- Returns:
- the new layout
-
createPersistedModel
- Specified by:
createPersistedModel
in interfaceLayoutLocalService
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
deleteLayout
Deletes the layout from the database. Also notifies the appropriate model listeners.Important: Inspect LayoutLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteLayout
in interfaceLayoutLocalService
- Parameters:
layout
- the layout- Returns:
- the layout that was removed
- Throws:
PortalException
PortalException
-
deleteLayout
Deletes the layout, its child layouts, and its associated resources.- Specified by:
deleteLayout
in interfaceLayoutLocalService
- Parameters:
layout
- the layoutserviceContext
- the service context to be applied- Throws:
PortalException
- if a portal exception occurredPortalException
-
deleteLayout
Deletes the layout with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect LayoutLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteLayout
in interfaceLayoutLocalService
- Parameters:
plid
- the primary key of the layout- Returns:
- the layout that was removed
- Throws:
PortalException
- if a layout with the primary key could not be foundPortalException
-
deleteLayout
public void deleteLayout(long groupId, boolean privateLayout, long layoutId, ServiceContext serviceContext) throws PortalException Deletes the layout with the layout ID, also deleting the layout's child layouts, and associated resources.- Specified by:
deleteLayout
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the layout ID of the layoutserviceContext
- the service context to be applied- Throws:
PortalException
- if a portal exception occurredPortalException
-
deleteLayout
Deletes the layout with the plid, also deleting the layout's child layouts, and associated resources.- Specified by:
deleteLayout
in interfaceLayoutLocalService
- Parameters:
plid
- the primary key of the layoutserviceContext
- the service context to be applied- Throws:
PortalException
- if a portal exception occurredPortalException
-
deleteLayout
- Specified by:
deleteLayout
in interfaceLayoutLocalService
- Throws:
PortalException
-
deleteLayouts
public void deleteLayouts(long groupId, boolean privateLayout, ServiceContext serviceContext) throws PortalException Deletes the group's private or non-private layouts, also deleting the layouts' child layouts, and associated resources.- Specified by:
deleteLayouts
in interfaceLayoutLocalService
- Parameters:
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 namedupdatePageCount
is set tofalse
.- Throws:
PortalException
- if a portal exception occurredPortalException
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfaceLayoutLocalService
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceLayoutLocalService
- Specified by:
dslQuery
in interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceLayoutLocalService
- Specified by:
dslQueryCount
in interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceLayoutLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceLayoutLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.LayoutModelImpl
.- Specified by:
dynamicQuery
in interfaceLayoutLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.LayoutModelImpl
.- Specified by:
dynamicQuery
in interfaceLayoutLocalService
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceLayoutLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceLayoutLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchDefaultLayout
- Specified by:
fetchDefaultLayout
in interfaceLayoutLocalService
-
fetchDraftLayout
- Specified by:
fetchDraftLayout
in interfaceLayoutLocalService
-
fetchFirstLayout
- Specified by:
fetchFirstLayout
in interfaceLayoutLocalService
-
fetchFirstLayout
public Layout fetchFirstLayout(long groupId, boolean privateLayout, long parentLayoutId, boolean hidden) - Specified by:
fetchFirstLayout
in interfaceLayoutLocalService
-
fetchLayout
- Specified by:
fetchLayout
in interfaceLayoutLocalService
-
fetchLayout
- Specified by:
fetchLayout
in interfaceLayoutLocalService
-
fetchLayout
- Specified by:
fetchLayout
in interfaceLayoutLocalService
-
fetchLayout
- Specified by:
fetchLayout
in interfaceLayoutLocalService
-
fetchLayoutByExternalReferenceCode
- Specified by:
fetchLayoutByExternalReferenceCode
in interfaceLayoutLocalService
-
fetchLayoutByFriendlyURL
- Specified by:
fetchLayoutByFriendlyURL
in interfaceLayoutLocalService
-
fetchLayoutByIconImageId
public Layout fetchLayoutByIconImageId(boolean privateLayout, long iconImageId) throws PortalException - Specified by:
fetchLayoutByIconImageId
in interfaceLayoutLocalService
- Throws:
PortalException
-
fetchLayoutByUuidAndGroupId
Returns the layout matching the UUID, group, and privacy.- Specified by:
fetchLayoutByUuidAndGroupId
in interfaceLayoutLocalService
- Parameters:
uuid
- the layout's UUIDgroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the group- Returns:
- the matching layout, or
null
if a matching layout could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceLayoutLocalService
-
getAllLayouts
public List<Layout> getAllLayouts(long groupId, boolean privateLayout, String type) throws PortalException Returns all the layouts that match the type and belong to the group, including the ones marked as System.- Specified by:
getAllLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouptype
- the type of the layouts (optiona.llyLayoutConstants#TYPE_PORTLET
)- Returns:
- the matching layouts, or an empty list if no matches were found
- Throws:
PortalException
-
getBrowsableLayout
- Specified by:
getBrowsableLayout
in interfaceLayoutLocalService
-
getDefaultPlid
public long getDefaultPlid(long groupId) Returns the primary key of the default layout for the group.- Specified by:
getDefaultPlid
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the group- Returns:
- the primary key of the default layout for the group (optionally
LayoutConstants#DEFAULT_PLID
)
-
getDefaultPlid
public long getDefaultPlid(long groupId, boolean privateLayout) Returns primary key of the matching default layout for the group- Specified by:
getDefaultPlid
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the group- Returns:
- the primary key of the default layout for the group;
LayoutConstants#DEFAULT_PLID
) otherwise
-
getDefaultPlid
public long getDefaultPlid(long groupId, boolean privateLayout, String portletId) throws PortalException Returns primary key of the default portlet layout for the group- Specified by:
getDefaultPlid
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupportletId
- the primary key of the portlet- Returns:
- the primary key of the default portlet layout for the group;
LayoutConstants#DEFAULT_PLID
otherwise - Throws:
PortalException
PortalException
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceLayoutLocalService
-
getFriendlyURLLayout
public Layout getFriendlyURLLayout(long groupId, boolean privateLayout, String friendlyURL) throws PortalException Returns the layout for the friendly URL.- Specified by:
getFriendlyURLLayout
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupfriendlyURL
- the friendly URL of the layout- Returns:
- the layout for the friendly URL
- Throws:
PortalException
- if a portal exception occurredPortalException
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceLayoutLocalService
-
getLayout
Returns the layout with the primary key.- Specified by:
getLayout
in interfaceLayoutLocalService
- Parameters:
plid
- the primary key of the layout- Returns:
- the layout
- Throws:
PortalException
- if a layout with the primary key could not be foundPortalException
-
getLayout
Returns the layout matching the layout ID, group, and privacy; throws aNoSuchLayoutException
otherwise.- Specified by:
getLayout
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the layout ID of the layout- Returns:
- the matching layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
getLayoutByExternalReferenceCode
public Layout getLayoutByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Specified by:
getLayoutByExternalReferenceCode
in interfaceLayoutLocalService
- Throws:
PortalException
-
getLayoutByFriendlyURL
public Layout getLayoutByFriendlyURL(long groupId, boolean privateLayout, String friendlyURL) throws PortalException - Specified by:
getLayoutByFriendlyURL
in interfaceLayoutLocalService
- Throws:
PortalException
-
getLayoutByIconImageId
Returns the layout for the icon image; throws aNoSuchLayoutException
otherwise.- Specified by:
getLayoutByIconImageId
in interfaceLayoutLocalService
- Parameters:
iconImageId
- the primary key of the icon image- Returns:
- Returns the layout for the icon image
- Throws:
PortalException
- if a portal exception occurredPortalException
-
getLayoutByUuidAndGroupId
public Layout getLayoutByUuidAndGroupId(String uuid, long groupId, boolean privateLayout) throws PortalException Returns the layout matching the UUID, group, and privacy.- Specified by:
getLayoutByUuidAndGroupId
in interfaceLayoutLocalService
- Parameters:
uuid
- the layout's UUIDgroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the group- Returns:
- the matching layout
- Throws:
PortalException
- if a matching layout could not be foundPortalException
-
getLayoutChildLayouts
- Specified by:
getLayoutChildLayouts
in interfaceLayoutLocalService
-
getLayouts
- Specified by:
getLayouts
in interfaceLayoutLocalService
-
getLayouts
Returns a range of all the layouts.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.LayoutModelImpl
.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
start
- the lower bound of the range of layoutsend
- the upper bound of the range of layouts (not inclusive)- Returns:
- the range of layouts
-
getLayouts
- Specified by:
getLayouts
in interfaceLayoutLocalService
-
getLayouts
Returns all the layouts belonging to the group.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the group- Returns:
- the matching layouts, or
null
if no matches were found
-
getLayouts
public List<Layout> getLayouts(long groupId, boolean privateLayout, int start, int end, OrderByComparator<Layout> orderByComparator) Returns a range of all the layouts belonging to the group.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupstart
- the lower bound of the range of layoutsend
- the upper bound of the range of layouts (not inclusive)orderByComparator
- the comparator to order the layouts- Returns:
- the matching layouts, or
null
if no matches were found
-
getLayouts
public List<Layout> getLayouts(long groupId, boolean privateLayout, int[] statuses, int start, int end, OrderByComparator<Layout> orderByComparator) Returns a range of all the layouts belonging to the group.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupstart
- the lower bound of the range of layoutsend
- the upper bound of the range of layouts (not inclusive)orderByComparator
- the comparator to order the layouts- Returns:
- the matching layouts, or
null
if no matches were found
-
getLayouts
Returns all the layouts belonging to the group that are children of the parent layout.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the layout ID of the parent layout- Returns:
- the matching layouts, or
null
if no matches were found
-
getLayouts
public 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the layout ID 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)- Returns:
- the matching layouts, or
null
if no matches were found
-
getLayouts
public List<Layout> getLayouts(long groupId, boolean privateLayout, long parentLayoutId, boolean incomplete, int start, int end, OrderByComparator<Layout> orderByComparator) Returns a range of all the layouts belonging to the group that are children of the parent layout.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the layout ID of the parent layoutstart
- the lower bound of the range of layoutsend
- the upper bound of the range of layouts (not inclusive)orderByComparator
- the comparator to order the layouts- Returns:
- the matching layouts, or
null
if no matches were found
-
getLayouts
public List<Layout> getLayouts(long groupId, boolean privateLayout, long[] layoutIds) throws PortalException Returns all the layouts that match the layout IDs and belong to the group.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutIds
- the layout IDs of the layouts- Returns:
- the matching layouts, or an empty list if no matches were found
- Throws:
PortalException
- if a portal exception occurredPortalException
-
getLayouts
public List<Layout> getLayouts(long groupId, boolean privateLayout, String type) throws PortalException Returns all the layouts that match the type and belong to the group.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouptype
- the type of the layouts (optionallyLayoutConstants#TYPE_PORTLET
)- Returns:
- the matching layouts, or
null
if no matches were found - Throws:
PortalException
-
getLayouts
public List<Layout> getLayouts(long groupId, boolean privateLayout, String keywords, String[] types, int start, int end, OrderByComparator<Layout> orderByComparator) throws PortalException Returns a range of all the layouts belonging to the group.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupkeywords
- keywordstypes
- layout typesstart
- the lower bound of the range of layoutsend
- the upper bound of the range of layouts (not inclusive)orderByComparator
- the comparator to order the layouts- Returns:
- the matching layouts, or
null
if no matches were found - Throws:
PortalException
-
getLayouts
public List<Layout> getLayouts(long groupId, boolean privateLayout, String[] types) throws PortalException Returns all the layouts that match the type and belong to the group.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouptypes
- the layout's type (optionallyLayoutConstants#TYPE_PORTLET
). The possible types can be found inLayoutConstants
.- Returns:
- the matching layouts, or
null
if no matches were found - Throws:
PortalException
-
getLayouts
public List<Layout> getLayouts(long groupId, int start, int end, OrderByComparator<Layout> orderByComparator) Returns a range of all the layouts belonging to the group.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupstart
- the lower bound of the range of layoutsend
- the upper bound of the range of layouts (not inclusive)orderByComparator
- the comparator to order the layouts- Returns:
- the matching layouts, or
null
if no matches were found
-
getLayouts
public List<Layout> getLayouts(long groupId, long userId, boolean privateLayout, String keywords, String[] types, int start, int end, OrderByComparator<Layout> orderByComparator) throws PortalException Returns a range of all the layouts belonging to the group.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupuserId
- the primary key of the userprivateLayout
- whether the layout is private to the groupkeywords
- keywordstypes
- layout typesstart
- the lower bound of the range of layoutsend
- the upper bound of the range of layouts (not inclusive)orderByComparator
- the comparator to order the layouts- Returns:
- the matching layouts, or
null
if no matches were found - Throws:
PortalException
-
getLayouts
public List<Layout> getLayouts(long groupId, long userId, boolean privateLayout, String keywords, String[] types, int[] statuses, int start, int end, OrderByComparator<Layout> orderByComparator) throws PortalException - Specified by:
getLayouts
in interfaceLayoutLocalService
- Throws:
PortalException
-
getLayouts
public 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.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
companyId
- the primary key of the companyportletId
- the primary key of the portletpreferencesKey
- the portlet's preference keypreferencesValue
- the portlet's preference value- Returns:
- the layout references of the matching layouts
-
getLayouts
public List<Layout> getLayouts(long groupId, String keywords, String[] types, int start, int end, OrderByComparator<Layout> orderByComparator) throws PortalException Returns a range of all the layouts belonging to the group.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupkeywords
- keywordstypes
- layout typesstart
- the lower bound of the range of layoutsend
- the upper bound of the range of layouts (not inclusive)orderByComparator
- the comparator to order the layouts- Returns:
- the matching layouts, or
null
if no matches were found - Throws:
PortalException
-
getLayouts
public List<Layout> getLayouts(long groupId, String keywords, String[] types, int[] statuses, int start, int end, OrderByComparator<Layout> orderByComparator) throws PortalException Returns a range of all the layouts belonging to the group.- Specified by:
getLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupkeywords
- keywordstypes
- layout typesstart
- the lower bound of the range of layoutsend
- the upper bound of the range of layouts (not inclusive)orderByComparator
- the comparator to order the layouts- Returns:
- the matching layouts, or
null
if no matches were found - Throws:
PortalException
-
getLayoutsByLayoutPrototypeUuid
- Specified by:
getLayoutsByLayoutPrototypeUuid
in interfaceLayoutLocalService
-
getLayoutsByLayoutPrototypeUuidCount
- Specified by:
getLayoutsByLayoutPrototypeUuidCount
in interfaceLayoutLocalService
-
getLayoutsByUuidAndCompanyId
Returns all the layouts matching the UUID and company.- Specified by:
getLayoutsByUuidAndCompanyId
in interfaceLayoutLocalService
- Parameters:
uuid
- the UUID of the layoutscompanyId
- the primary key of the company- Returns:
- the matching layouts, or an empty list if no matches were found
-
getLayoutsByUuidAndCompanyId
public List<Layout> getLayoutsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<Layout> orderByComparator) Returns a range of layouts matching the UUID and company.- Specified by:
getLayoutsByUuidAndCompanyId
in interfaceLayoutLocalService
- Parameters:
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 (optionallynull
)- Returns:
- the range of matching layouts, or an empty list if no matches were found
-
getLayoutsCount
public int getLayoutsCount()Returns the number of layouts.- Specified by:
getLayoutsCount
in interfaceLayoutLocalService
- Returns:
- the number of layouts
-
getLayoutsCount
- Specified by:
getLayoutsCount
in interfaceLayoutLocalService
- Throws:
PortalException
-
getLayoutsCount
public int getLayoutsCount(Group group, boolean privateLayout, boolean includeUserGroups) throws PortalException - Specified by:
getLayoutsCount
in interfaceLayoutLocalService
- Throws:
PortalException
-
getLayoutsCount
- Specified by:
getLayoutsCount
in interfaceLayoutLocalService
-
getLayoutsCount
- Specified by:
getLayoutsCount
in interfaceLayoutLocalService
-
getLayoutsCount
public int getLayoutsCount(Group group, boolean privateLayout, String keywords, String[] types) throws PortalException - Specified by:
getLayoutsCount
in interfaceLayoutLocalService
- Throws:
PortalException
-
getLayoutsCount
public int getLayoutsCount(long groupId) - Specified by:
getLayoutsCount
in interfaceLayoutLocalService
-
getLayoutsCount
public int getLayoutsCount(long groupId, boolean privateLayout) - Specified by:
getLayoutsCount
in interfaceLayoutLocalService
-
getLayoutsCount
public int getLayoutsCount(long groupId, boolean privateLayout, long parentLayoutId) - Specified by:
getLayoutsCount
in interfaceLayoutLocalService
-
getLayoutsCount
public int getLayoutsCount(long groupId, long userId, boolean privateLayout, String keywords, String[] types) throws PortalException - Specified by:
getLayoutsCount
in interfaceLayoutLocalService
- Throws:
PortalException
-
getLayoutsCount
public int getLayoutsCount(long groupId, long userId, boolean privateLayout, String keywords, String[] types, int[] statuses) throws PortalException - Specified by:
getLayoutsCount
in interfaceLayoutLocalService
- Throws:
PortalException
-
getLayoutsCount
- Specified by:
getLayoutsCount
in interfaceLayoutLocalService
- Throws:
PortalException
-
getLayoutsCount
public int getLayoutsCount(long groupId, String keywords, String[] types, int[] statuses) throws PortalException - Specified by:
getLayoutsCount
in interfaceLayoutLocalService
- Throws:
PortalException
-
getLayoutsCount
- Specified by:
getLayoutsCount
in interfaceLayoutLocalService
- Throws:
PortalException
-
getLayoutsCount
public int getLayoutsCount(User user, boolean privateLayout, boolean includeUserGroups) throws PortalException - Specified by:
getLayoutsCount
in interfaceLayoutLocalService
- Throws:
PortalException
-
getMasterLayouts
- Specified by:
getMasterLayouts
in interfaceLayoutLocalService
-
getMasterLayoutsCount
public int getMasterLayoutsCount(long groupId, long masterLayoutPlid) - Specified by:
getMasterLayoutsCount
in interfaceLayoutLocalService
-
getNextLayoutId
public long getNextLayoutId(long groupId, boolean privateLayout) Returns the layout ID to use for the next layout.- Specified by:
getNextLayoutId
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the group- Returns:
- the layout ID to use for the next layout
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceLayoutLocalService
- Returns:
- the OSGi service identifier
-
getParentLayout
- Specified by:
getParentLayout
in interfaceLayoutLocalService
- Throws:
PortalException
-
getPersistedModel
- Specified by:
getPersistedModel
in interfaceLayoutLocalService
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
getPublishedLayouts
public List<Layout> getPublishedLayouts(long groupId, int start, int end, OrderByComparator<Layout> orderByComparator) - Specified by:
getPublishedLayouts
in interfaceLayoutLocalService
-
getPublishedLayoutsCount
public int getPublishedLayoutsCount(long groupId) - Specified by:
getPublishedLayoutsCount
in interfaceLayoutLocalService
-
getScopeGroupLayouts
- Specified by:
getScopeGroupLayouts
in interfaceLayoutLocalService
- Throws:
PortalException
-
getScopeGroupLayouts
public List<Layout> getScopeGroupLayouts(long parentGroupId, boolean privateLayout) throws PortalException Returns all the layouts within scope of the group.- Specified by:
getScopeGroupLayouts
in interfaceLayoutLocalService
- Parameters:
parentGroupId
- the primary key of the group's parent groupprivateLayout
- whether the layout is private to the group- Returns:
- the layouts within scope of the group
- Throws:
PortalException
- if a portal exception occurredPortalException
-
hasLayout
Returnstrue
if there is a matching layout with the UUID, group, and privacy.- Specified by:
hasLayout
in interfaceLayoutLocalService
- Parameters:
uuid
- the layout's UUIDgroupId
- the primary key of the groupprivateLayout
- whether the layout is private to the group- Returns:
true
if the layout is found;false
otherwise- Throws:
PortalException
- if a portal exception occurredPortalException
-
hasLayouts
- Specified by:
hasLayouts
in interfaceLayoutLocalService
- Throws:
PortalException
-
hasLayouts
- Specified by:
hasLayouts
in interfaceLayoutLocalService
- Throws:
PortalException
-
hasLayouts
public boolean hasLayouts(Group group, boolean privateLayout, boolean includeUserGroups) throws PortalException - Specified by:
hasLayouts
in interfaceLayoutLocalService
- Throws:
PortalException
-
hasLayouts
public boolean hasLayouts(long groupId, boolean privateLayout, long parentLayoutId) Returnstrue
if the group has any layouts;false
otherwise.- Specified by:
hasLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the layout ID of the parent layout- Returns:
true
if the group has any layouts;false
otherwise
-
hasLayouts
- Specified by:
hasLayouts
in interfaceLayoutLocalService
- Throws:
PortalException
-
hasLayouts
public boolean hasLayouts(User user, boolean privateLayout, boolean includeUserGroups) throws PortalException - Specified by:
hasLayouts
in interfaceLayoutLocalService
- Throws:
PortalException
-
hasLayoutSetPrototypeLayout
public boolean hasLayoutSetPrototypeLayout(long layoutSetPrototypeId, String layoutUuid) throws PortalException - Specified by:
hasLayoutSetPrototypeLayout
in interfaceLayoutLocalService
- Throws:
PortalException
-
hasLayoutSetPrototypeLayout
public boolean hasLayoutSetPrototypeLayout(String layoutSetPrototypeUuid, long companyId, String layoutUuid) throws PortalException - Specified by:
hasLayoutSetPrototypeLayout
in interfaceLayoutLocalService
- Throws:
PortalException
-
search
public List<Layout> search(long groupId, boolean privateLayout, String keywords, boolean searchOnlyByTitle, String[] types, int start, int end, OrderByComparator<Layout> orderByComparator) throws PortalException - Specified by:
search
in interfaceLayoutLocalService
- Throws:
PortalException
-
search
public List<Layout> search(long groupId, long userId, boolean privateLayout, String keywords, boolean searchOnlyByTitle, String[] types, int start, int end, OrderByComparator<Layout> orderByComparator) throws PortalException - Specified by:
search
in interfaceLayoutLocalService
- Throws:
PortalException
-
search
public List<Layout> search(long groupId, long userId, boolean privateLayout, String keywords, boolean searchOnlyByTitle, String[] types, int[] statuses, int start, int end, OrderByComparator<Layout> orderByComparator) throws PortalException - Specified by:
search
in interfaceLayoutLocalService
- Throws:
PortalException
-
searchCount
public int searchCount(Group group, boolean privateLayout, String keywords, boolean searchOnlyByTitle, String[] types) throws PortalException - Specified by:
searchCount
in interfaceLayoutLocalService
- Throws:
PortalException
-
searchCount
public int searchCount(long groupId, long userId, boolean privateLayout, String keywords, boolean searchOnlyByTitle, String[] types) throws PortalException - Specified by:
searchCount
in interfaceLayoutLocalService
- Throws:
PortalException
-
setLayouts
public void setLayouts(long groupId, boolean privateLayout, long parentLayoutId, long[] layoutIds, ServiceContext serviceContext) throws PortalException Sets the layouts for the group, replacing and prioritizing all layouts of the parent layout.- Specified by:
setLayouts
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the groupparentLayoutId
- the layout ID of the parent layoutlayoutIds
- the layout IDs of the layoutsserviceContext
- the service context to be applied- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateAsset
public void updateAsset(long userId, Layout layout, long[] assetCategoryIds, String[] assetTagNames) throws PortalException - Specified by:
updateAsset
in interfaceLayoutLocalService
- Throws:
PortalException
-
updateFriendlyURL
public Layout updateFriendlyURL(long userId, long plid, String friendlyURL, String languageId) throws PortalException Updates the friendly URL of the layout.- Specified by:
updateFriendlyURL
in interfaceLayoutLocalService
- Parameters:
userId
- the primary key of the userplid
- the primary key of the layoutfriendlyURL
- the friendly URL to be assignedlanguageId
- the primary key of the language- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateIconImage
- Specified by:
updateIconImage
in interfaceLayoutLocalService
- Throws:
PortalException
-
updateLayout
Updates the layout in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect LayoutLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
updateLayout
in interfaceLayoutLocalService
- Parameters:
layout
- the layout- Returns:
- the layout that was updated
-
updateLayout
public Layout updateLayout(long groupId, boolean privateLayout, long layoutId, Date publishDate) throws PortalException Updates the layout replacing its draft publish date.- Specified by:
updateLayout
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the layout ID of the layoutpublishDate
- the date when draft was last published- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateLayout
public Layout updateLayout(long groupId, boolean privateLayout, long layoutId, long classNameId, long classPK) throws PortalException Updates the layout replacing its entity class name ID and primary key.- Specified by:
updateLayout
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the layout ID of the layoutclassNameId
- the class name ID of the entityclassPK
- the primary key of the entity- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateLayout
public Layout updateLayout(long groupId, boolean privateLayout, long layoutId, long parentLayoutId, Map<Locale, String> nameMap, Map<Locale, throws PortalExceptionString> titleMap, Map<Locale, String> descriptionMap, Map<Locale, String> keywordsMap, Map<Locale, String> robotsMap, String type, boolean hidden, Map<Locale, String> friendlyURLMap, boolean hasIconImage, byte[] iconBytes, long styleBookEntryId, long faviconFileEntryId, long masterLayoutPlid, ServiceContext serviceContext) Updates the layout.- Specified by:
updateLayout
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the layout ID of the layoutparentLayoutId
- the layout ID of the layout's new parent layoutnameMap
- the locales and localized names to merge (optionallynull
)titleMap
- the locales and localized titles to merge (optionallynull
)descriptionMap
- the locales and localized descriptions to merge (optionallynull
)keywordsMap
- the locales and localized keywords to merge (optionallynull
)robotsMap
- the locales and localized robots to merge (optionallynull
)type
- the layout's new type (optionallyLayoutConstants#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, seeFriendlyURLNormalizerUtil.normalize(String)
.hasIconImage
- whether the icon image will be updatediconBytes
- the byte array of the layout's new icon imagestyleBookEntryId
- the primary key of the style book entrysfaviconFileEntryId
- the file entry ID of the layout's new faviconmasterLayoutPlid
- the primary key of the master layoutserviceContext
- 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 namedlayoutPrototypeUuid
andlayoutPrototypeLinkedEnabled
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.- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateLayout
public Layout updateLayout(long groupId, boolean privateLayout, long layoutId, String typeSettings) throws PortalException Updates the layout replacing its type settings.- Specified by:
updateLayout
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the layout ID of the layouttypeSettings
- the settings to load the unicode properties object. See#fastLoad(String)
.- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateLayout
public Layout updateLayout(long groupId, boolean privateLayout, long layoutId, String typeSettings, byte[] iconBytes, String themeId, String colorSchemeId, long styleBookEntryId, String css, long faviconFileEntryId, long masterLayoutPlid) throws PortalException - Specified by:
updateLayout
in interfaceLayoutLocalService
- Throws:
PortalException
-
updateLookAndFeel
public Layout updateLookAndFeel(long groupId, boolean privateLayout, long layoutId, String themeId, String colorSchemeId, String css) throws PortalException Updates the look and feel of the layout.- Specified by:
updateLookAndFeel
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the layout ID 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 CSS- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateMasterLayoutPlid
public Layout updateMasterLayoutPlid(long groupId, boolean privateLayout, long layoutId, long masterLayoutPlid) throws PortalException Updates the layout replacing its master layout plid.- Specified by:
updateMasterLayoutPlid
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the layout ID of the layoutmasterLayoutPlid
- the primary key of the master layout- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateName
Updates the name of the layout.- Specified by:
updateName
in interfaceLayoutLocalService
- Parameters:
layout
- the layout to be updatedname
- the layout's new namelanguageId
- the primary key of the language. For more information seeLocale
.- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateName
public Layout updateName(long groupId, boolean privateLayout, long layoutId, String name, String languageId) throws PortalException Updates the name of the layout matching the group, layout ID, and privacy.- Specified by:
updateName
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the layout ID of the layoutname
- the layout's new namelanguageId
- the primary key of the language. For more information seeLocale
.- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateName
Updates the name of the layout matching the primary key.- Specified by:
updateName
in interfaceLayoutLocalService
- Parameters:
plid
- the primary key of the layoutname
- the name to be assignedlanguageId
- the primary key of the language. For more information seeLocale
.- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateParentLayoutId
public Layout updateParentLayoutId(long groupId, boolean privateLayout, long layoutId, long parentLayoutId) throws PortalException Updates the parent layout ID of the layout matching the group, layout ID, and privacy.- Specified by:
updateParentLayoutId
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the layout ID of the layoutparentLayoutId
- the layout ID to be assigned to the parent layout- Returns:
- the matching layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateParentLayoutId
Updates the parent layout ID of the layout matching the primary key. If a layout matching the parent primary key is found, the layout ID of that layout is assigned, otherwiseLayoutConstants#DEFAULT_PARENT_LAYOUT_ID
is assigned.- Specified by:
updateParentLayoutId
in interfaceLayoutLocalService
- Parameters:
plid
- the primary key of the layoutparentPlid
- the primary key of the parent layout- Returns:
- the layout matching the primary key
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateParentLayoutIdAndPriority
public Layout updateParentLayoutIdAndPriority(long plid, long parentPlid, int priority) throws PortalException Updates the parent layout ID and priority of the layout.- Specified by:
updateParentLayoutIdAndPriority
in interfaceLayoutLocalService
- Parameters:
plid
- the primary key of the layoutparentPlid
- the primary key of the parent layoutpriority
- the layout's new priority- Returns:
- the layout matching the primary key
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updatePriorities
Updates the priorities of the layouts.- Specified by:
updatePriorities
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the group- Throws:
PortalException
PortalException
-
updatePriority
Updates the priority of the layout.- Specified by:
updatePriority
in interfaceLayoutLocalService
- Parameters:
layout
- the layout to be updatedpriority
- the layout's new priority- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updatePriority
public Layout updatePriority(long groupId, boolean privateLayout, long layoutId, int priority) throws PortalException Updates the priority of the layout matching the group, layout ID, and privacy.- Specified by:
updatePriority
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the layout ID of the layoutpriority
- the layout's new priority- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updatePriority
public Layout updatePriority(long groupId, boolean privateLayout, long layoutId, long nextLayoutId, long previousLayoutId) throws PortalException 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.- Specified by:
updatePriority
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the layout ID of the layoutnextLayoutId
- the layout ID of the next layoutpreviousLayoutId
- the layout ID of the previous layout- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updatePriority
Updates the priority of the layout matching the primary key.- Specified by:
updatePriority
in interfaceLayoutLocalService
- Parameters:
plid
- the primary key of the layoutpriority
- the layout's new priority- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateStatus
public Layout updateStatus(long userId, long plid, int status, ServiceContext serviceContext) throws PortalException - Specified by:
updateStatus
in interfaceLayoutLocalService
- Throws:
PortalException
-
updateStyleBookEntryId
public Layout updateStyleBookEntryId(long groupId, boolean privateLayout, long layoutId, long styleBookEntryId) throws PortalException Updates the layout replacing its style book entry ID.- Specified by:
updateStyleBookEntryId
in interfaceLayoutLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the layout ID of the layoutstyleBookEntryId
- the primary key of the style book entry- Returns:
- the updated layout
- Throws:
PortalException
- if a portal exception occurredPortalException
-
updateType
- Specified by:
updateType
in interfaceLayoutLocalService
- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<Layout>
- Specified by:
getCTPersistence
in interfaceLayoutLocalService
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<Layout>
- Specified by:
getModelClass
in interfaceLayoutLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<Layout>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<Layout>
- Specified by:
updateWithUnsafeFunction
in interfaceLayoutLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<LayoutLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<LayoutLocalService>
-