@ProviderType
public class LayoutSetServiceUtil
extends Object
LayoutSetServiceImpl
and is the
primary 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.LayoutSetService
,
LayoutSetServiceBaseImpl
,
LayoutSetServiceImpl
Constructor and Description |
---|
LayoutSetServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static LayoutSetService |
getService() |
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 logo,
byte[] bytes) |
static void |
updateLogo(long groupId,
boolean privateLayout,
boolean logo,
File file) |
static void |
updateLogo(long groupId,
boolean privateLayout,
boolean logo,
InputStream inputStream) |
static void |
updateLogo(long groupId,
boolean privateLayout,
boolean logo,
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 |
updateVirtualHost(long groupId,
boolean privateLayout,
String virtualHost) |
public static String getOSGiServiceIdentifier()
public static void updateLayoutSetPrototypeLinkEnabled(long groupId, boolean privateLayout, boolean layoutSetPrototypeLinkEnabled, String layoutSetPrototypeUuid) throws PortalException
Important: Setting
layoutSetPrototypeLinkEnabled
to true
and
layoutSetPrototypeUuid
to null
when the layout
set prototype's current uuid is null
will result in an
IllegalStateException
.
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 withPortalException
public static void updateLogo(long groupId, boolean privateLayout, boolean logo, byte[] bytes) throws PortalException
PortalException
public static void updateLogo(long groupId, boolean privateLayout, boolean logo, File file) throws PortalException
PortalException
public static void updateLogo(long groupId, boolean privateLayout, boolean logo, InputStream inputStream) throws PortalException
PortalException
public static void updateLogo(long groupId, boolean privateLayout, boolean logo, InputStream inputStream, boolean cleanUpStream) throws PortalException
PortalException
public static LayoutSet updateLookAndFeel(long groupId, boolean privateLayout, String themeId, String colorSchemeId, String css) throws PortalException
PortalException
public static LayoutSet updateSettings(long groupId, boolean privateLayout, String settings) throws PortalException
PortalException
public static LayoutSet updateVirtualHost(long groupId, boolean privateLayout, String virtualHost) throws PortalException
PortalException
public static LayoutSetService getService()