|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.liferay.portal.service.base.LayoutLocalServiceBaseImpl
com.liferay.portal.service.impl.LayoutLocalServiceImpl
com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice
public class LayoutLocalServiceStagingAdvice
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
LayoutLocalServiceStagingAdvice()
|
|
| Method Summary | |
|---|---|
void |
deleteLayout(com.liferay.portal.model.Layout layout,
boolean updateLayoutSet,
com.liferay.portal.service.ServiceContext serviceContext)
Deletes the layout, its child layouts, and its associated resources. |
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
|
protected com.liferay.portal.model.Layout |
unwrapLayout(com.liferay.portal.model.Layout layout)
|
com.liferay.portal.model.Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Map<java.util.Locale,java.lang.String> keywordsMap,
java.util.Map<java.util.Locale,java.lang.String> robotsMap,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
java.lang.Boolean iconImage,
byte[] iconBytes,
com.liferay.portal.service.ServiceContext serviceContext)
Updates the layout. |
com.liferay.portal.model.Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String typeSettings)
Updates the layout replacing its type settings. |
com.liferay.portal.model.Layout |
updateLookAndFeel(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String themeId,
java.lang.String colorSchemeId,
java.lang.String css,
boolean wapTheme)
Updates the look and feel of the layout. |
com.liferay.portal.model.Layout |
updateName(com.liferay.portal.model.Layout layout,
java.lang.String name,
java.lang.String languageId)
Updates the name of the layout. |
protected com.liferay.portal.model.Layout |
wrapLayout(com.liferay.portal.model.Layout layout)
|
protected java.util.List<com.liferay.portal.model.Layout> |
wrapLayouts(java.util.List<com.liferay.portal.model.Layout> layouts,
boolean showIncomplete)
|
protected java.lang.Object |
wrapReturnValue(java.lang.Object returnValue,
boolean showIncomplete)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutLocalServiceStagingAdvice()
| Method Detail |
|---|
public void deleteLayout(com.liferay.portal.model.Layout layout,
boolean updateLayoutSet,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
LayoutLocalServiceImpl
deleteLayout in interface com.liferay.portal.service.LayoutLocalServicedeleteLayout in class LayoutLocalServiceImpllayout - the layoutupdateLayoutSet - whether the layout set's page counter needs to be
updatedserviceContext - the service context
com.liferay.portal.kernel.exception.PortalException - if a portal exception occurred
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
throws java.lang.Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorjava.lang.Throwable
public com.liferay.portal.model.Layout updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Map<java.util.Locale,java.lang.String> keywordsMap,
java.util.Map<java.util.Locale,java.lang.String> robotsMap,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
java.lang.Boolean iconImage,
byte[] iconBytes,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
LayoutLocalServiceImpl
updateLayout in interface com.liferay.portal.service.LayoutLocalServiceupdateLayout in class LayoutLocalServiceImplgroupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutId - the primary key of the layoutparentLayoutId - the primary key of the layout's new parent layoutnameMap - the locales and localized names to merge (optionally
null)titleMap - the locales and localized titles to merge (optionally
null)descriptionMap - the locales and localized descriptions to merge
(optionally null)keywordsMap - the locales and localized keywords to merge
(optionally null)robotsMap - the locales and localized robots to merge (optionally
null)type - the layout's new type (optionally LayoutConstants.TYPE_PORTLET)hidden - whether the layout is hiddenfriendlyURL - the layout's new friendly URL (optionally PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL
or PropsValues.DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL).
The default values can be overridden in
portal-ext.properties by specifying new values for
the corresponding properties defined in PropsValues. To see how the URL is
normalized when accessed see FriendlyURLNormalizerUtil.normalize(
String).iconImage - whether the icon image will be updatediconBytes - the byte array of the layout's new icon imageserviceContext - the service context. 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 determined whether a link to it should
be enabled to activate propagation of changes made to the linked
page in the prototype.
com.liferay.portal.kernel.exception.PortalException - if a group or layout with the primary key could
not be found, if a unique friendly URL could not be generated, if
a valid parent layout ID to use could not be found, or if the
layout parameters were invalid
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Layout updateLayout(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String typeSettings)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
LayoutLocalServiceImpl
updateLayout in interface com.liferay.portal.service.LayoutLocalServiceupdateLayout in class LayoutLocalServiceImplgroupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutId - the primary key of the layouttypeSettings - the settings to load the unicode properties object.
See #fastLoad(String).
com.liferay.portal.kernel.exception.PortalException - if a matching layout could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String themeId,
java.lang.String colorSchemeId,
java.lang.String css,
boolean wapTheme)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
LayoutLocalServiceImpl
updateLookAndFeel in interface com.liferay.portal.service.LayoutLocalServiceupdateLookAndFeel in class LayoutLocalServiceImplgroupId - the primary key of the groupprivateLayout - whether the layout is private to the grouplayoutId - the primary key of the layoutthemeId - the primary key of the layout's new themecolorSchemeId - the primary key of the layout's new color schemecss - the layout's new CSSwapTheme - whether the theme is for WAP browsers
com.liferay.portal.kernel.exception.PortalException - if a matching layout could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
public com.liferay.portal.model.Layout updateName(com.liferay.portal.model.Layout layout,
java.lang.String name,
java.lang.String languageId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
LayoutLocalServiceImpl
updateName in interface com.liferay.portal.service.LayoutLocalServiceupdateName in class LayoutLocalServiceImpllayout - the layout to be updatedname - the layout's new namelanguageId - the primary key of the language. For more information
see Locale.
com.liferay.portal.kernel.exception.PortalException - if the new name was null
com.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portal.model.Layout unwrapLayout(com.liferay.portal.model.Layout layout)
protected com.liferay.portal.model.Layout wrapLayout(com.liferay.portal.model.Layout layout)
protected java.util.List<com.liferay.portal.model.Layout> wrapLayouts(java.util.List<com.liferay.portal.model.Layout> layouts,
boolean showIncomplete)
protected java.lang.Object wrapReturnValue(java.lang.Object returnValue,
boolean showIncomplete)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||