|
Liferay 6.1.10-ee-ga1 | |||||||||
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(Layout layout,
boolean updateLayoutSet,
ServiceContext serviceContext)
Deletes the layout, its child layouts, and its associated resources. |
Object |
invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
|
protected Layout |
unwrapLayout(Layout layout)
|
Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
Map<Locale,String> nameMap,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
Map<Locale,String> keywordsMap,
Map<Locale,String> robotsMap,
String type,
boolean hidden,
String friendlyURL,
Boolean iconImage,
byte[] iconBytes,
ServiceContext serviceContext)
Updates the layout. |
Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
String typeSettings)
Updates the layout replacing its type settings. |
Layout |
updateLookAndFeel(long groupId,
boolean privateLayout,
long layoutId,
String themeId,
String colorSchemeId,
String css,
boolean wapTheme)
Updates the look and feel of the layout. |
Layout |
updateName(Layout layout,
String name,
String languageId)
Updates the name of the layout. |
protected Layout |
wrapLayout(Layout layout)
|
protected List<Layout> |
wrapLayouts(List<Layout> layouts,
boolean showIncomplete)
|
protected Object |
wrapReturnValue(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(Layout layout, boolean updateLayoutSet, ServiceContext serviceContext) throws PortalException, SystemException
LayoutLocalServiceImpl
deleteLayout
in interface LayoutLocalService
deleteLayout
in class LayoutLocalServiceImpl
layout
- the layoutupdateLayoutSet
- whether the layout set's page counter needs to be
updatedserviceContext
- the service context
PortalException
- if a portal exception occurred
SystemException
- if a system exception occurredpublic Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation) throws Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
Throwable
public Layout updateLayout(long groupId, boolean privateLayout, long layoutId, long parentLayoutId, Map<Locale,String> nameMap, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, Map<Locale,String> keywordsMap, Map<Locale,String> robotsMap, String type, boolean hidden, String friendlyURL, Boolean iconImage, byte[] iconBytes, ServiceContext serviceContext) throws PortalException, SystemException
LayoutLocalServiceImpl
updateLayout
in interface LayoutLocalService
updateLayout
in class LayoutLocalServiceImpl
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the primary key of the layoutparentLayoutId
- the primary key of the layout's new parent layoutnameMap
- the locales and localized names to merge (optionally
null
)titleMap
- the locales and localized titles to merge (optionally
null
)descriptionMap
- the locales and localized descriptions to merge
(optionally null
)keywordsMap
- the locales and localized keywords to merge
(optionally null
)robotsMap
- the locales and localized robots to merge (optionally
null
)type
- the layout's new type (optionally LayoutConstants.TYPE_PORTLET
)hidden
- whether the layout is 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.
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
SystemException
- if a system exception occurredpublic Layout updateLayout(long groupId, boolean privateLayout, long layoutId, String typeSettings) throws PortalException, SystemException
LayoutLocalServiceImpl
updateLayout
in interface LayoutLocalService
updateLayout
in class LayoutLocalServiceImpl
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the primary key of the layouttypeSettings
- the settings to load the unicode properties object.
See #fastLoad(String)
.
PortalException
- if a matching layout could not be found
SystemException
- if a system exception occurredpublic Layout updateLookAndFeel(long groupId, boolean privateLayout, long layoutId, String themeId, String colorSchemeId, String css, boolean wapTheme) throws PortalException, SystemException
LayoutLocalServiceImpl
updateLookAndFeel
in interface LayoutLocalService
updateLookAndFeel
in class LayoutLocalServiceImpl
groupId
- the primary key of the groupprivateLayout
- whether the layout is private to the grouplayoutId
- the primary key of the layoutthemeId
- the primary key of the layout's new themecolorSchemeId
- the primary key of the layout's new color schemecss
- the layout's new CSSwapTheme
- whether the theme is for WAP browsers
PortalException
- if a matching layout could not be found
SystemException
- if a system exception occurredpublic Layout updateName(Layout layout, String name, String languageId) throws PortalException, SystemException
LayoutLocalServiceImpl
updateName
in interface LayoutLocalService
updateName
in class LayoutLocalServiceImpl
layout
- the layout to be updatedname
- the layout's new namelanguageId
- the primary key of the language. For more information
see Locale
.
PortalException
- if the new name was null
SystemException
- if a system exception occurredprotected Layout unwrapLayout(Layout layout)
protected Layout wrapLayout(Layout layout)
protected List<Layout> wrapLayouts(List<Layout> layouts, boolean showIncomplete)
protected Object wrapReturnValue(Object returnValue, boolean showIncomplete)
|
Liferay 6.1.10-ee-ga1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |