DLApp
Il n'y a aucun service assortissant cette expression.

/layout/add-layout

Méthode de HTTP
POST
com.liferay.portal.service.LayoutServiceUtil#addLayout

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.

Paramètres

p_auth String

authentication token used to validate the request

groupId long

the primary key of the group

privateLayout boolean

whether the layout is private to the group

parentLayoutId long

the primary key of the parent layout (optionally {@link com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID})

localeNamesMap java.util.Map

the layout's locales and localized names

localeTitlesMap java.util.Map

the layout's locales and localized titles

descriptionMap java.util.Map

the layout's locales and localized descriptions

keywordsMap java.util.Map

the layout's locales and localized keywords

robotsMap java.util.Map

the layout's locales and localized robots

type java.lang.String

the layout's type (optionally {@link com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}). The possible types can be found in {@link com.liferay.portal.model.LayoutConstants}.

hidden boolean

whether the layout is hidden

friendlyURL java.lang.String

the layout's friendly URL (optionally {@link com.liferay.portal.util.PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL} or {@link com.liferay.portal.util.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 {@link com.liferay.portal.util.PropsValues}. To see how the URL is normalized when accessed see {@link com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize( String)}.

serviceContext com.liferay.portal.service.ServiceContext

the service context. Must set the universally unique identifier (UUID) for the layout. Can set the creation date, modification date and the expando bridge attributes for the layout. For layouts that belong to a layout set prototype, an attribute named 'layoutUpdateable' can be used to specify whether site administrators can modify this page within their site.

Type de retour

com.liferay.portal.model.Layout

the layout

Exception

com.liferay.portal.kernel.exception.PortalException
if a group with the primary key could not be found, if the group did not have permission to manage the layouts involved, or if layout values were invalid
com.liferay.portal.kernel.exception.SystemException
if a system exception occurred

Exécuter

String long
boolean
long java.util.Map java.util.Map java.util.Map java.util.Map java.util.Map java.lang.String
boolean
java.lang.String