Class LayoutSetServiceUtil
Object
com.liferay.portal.kernel.service.LayoutSetServiceUtil
Provides the remote service utility for LayoutSet. This utility wraps
com.liferay.portal.service.impl.LayoutSetServiceImpl
and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns the OSGi service identifier.static LayoutSetService
static void
setService
(LayoutSetService service) static void
updateFaviconFileEntryId
(long groupId, boolean privateLayout, long faviconFileEntryId) static void
updateLayoutSetPrototypeLinkEnabled
(long groupId, boolean privateLayout, boolean layoutSetPrototypeLinkEnabled, String layoutSetPrototypeUuid) Updates the state of the layout set prototype link.static void
updateLogo
(long groupId, boolean privateLayout, boolean hasLogo, byte[] bytes) static void
updateLogo
(long groupId, boolean privateLayout, boolean hasLogo, File file) static void
updateLogo
(long groupId, boolean privateLayout, boolean hasLogo, InputStream inputStream) static void
updateLogo
(long groupId, boolean privateLayout, boolean hasLogo, InputStream inputStream, boolean cleanUpStream) static LayoutSet
updateLookAndFeel
(long groupId, boolean privateLayout, String themeId, String colorSchemeId, String css) static LayoutSet
updateSettings
(long groupId, boolean privateLayout, String settings) static LayoutSet
updateVirtualHosts
(long groupId, boolean privateLayout, TreeMap<String, String> virtualHostnames)
-
Constructor Details
-
LayoutSetServiceUtil
public LayoutSetServiceUtil()
-
-
Method Details
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
updateFaviconFileEntryId
public static void updateFaviconFileEntryId(long groupId, boolean privateLayout, long faviconFileEntryId) throws PortalException - Throws:
PortalException
-
updateLayoutSetPrototypeLinkEnabled
public static void updateLayoutSetPrototypeLinkEnabled(long groupId, boolean privateLayout, boolean layoutSetPrototypeLinkEnabled, String layoutSetPrototypeUuid) throws PortalException Updates the state of the layout set prototype link.Important: Setting
layoutSetPrototypeLinkEnabled
totrue
andlayoutSetPrototypeUuid
tonull
when the layout set prototype's current uuid isnull
will result in anIllegalStateException
.- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout set is private to the grouplayoutSetPrototypeLinkEnabled
- whether the layout set prototype is link enabledlayoutSetPrototypeUuid
- the uuid of the layout set prototype to link with- Throws:
PortalException
-
updateLogo
public static void updateLogo(long groupId, boolean privateLayout, boolean hasLogo, byte[] bytes) throws PortalException - Throws:
PortalException
-
updateLogo
public static void updateLogo(long groupId, boolean privateLayout, boolean hasLogo, File file) throws PortalException - Throws:
PortalException
-
updateLogo
public static void updateLogo(long groupId, boolean privateLayout, boolean hasLogo, InputStream inputStream) throws PortalException - Throws:
PortalException
-
updateLogo
public static void updateLogo(long groupId, boolean privateLayout, boolean hasLogo, InputStream inputStream, boolean cleanUpStream) throws PortalException - Throws:
PortalException
-
updateLookAndFeel
public static LayoutSet updateLookAndFeel(long groupId, boolean privateLayout, String themeId, String colorSchemeId, String css) throws PortalException - Throws:
PortalException
-
updateSettings
public static LayoutSet updateSettings(long groupId, boolean privateLayout, String settings) throws PortalException - Throws:
PortalException
-
updateVirtualHosts
public static LayoutSet updateVirtualHosts(long groupId, boolean privateLayout, TreeMap<String, String> virtualHostnames) throws PortalException- Throws:
PortalException
-
getService
-
setService
-