public class LayoutSetServiceWrapper extends Object implements LayoutSetService, ServiceWrapper<LayoutSetService>
LayoutSetService
.LayoutSetService
Constructor and Description |
---|
LayoutSetServiceWrapper() |
LayoutSetServiceWrapper(LayoutSetService layoutSetService) |
Modifier and Type | Method and Description |
---|---|
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
LayoutSetService |
getWrappedService() |
void |
setWrappedService(LayoutSetService layoutSetService) |
void |
updateFaviconFileEntryId(long groupId,
boolean privateLayout,
long faviconFileEntryId) |
void |
updateLayoutSetPrototypeLinkEnabled(long groupId,
boolean privateLayout,
boolean layoutSetPrototypeLinkEnabled,
String layoutSetPrototypeUuid)
Updates the state of the layout set prototype link.
|
void |
updateLogo(long groupId,
boolean privateLayout,
boolean hasLogo,
byte[] bytes) |
void |
updateLogo(long groupId,
boolean privateLayout,
boolean hasLogo,
File file) |
void |
updateLogo(long groupId,
boolean privateLayout,
boolean hasLogo,
InputStream inputStream) |
void |
updateLogo(long groupId,
boolean privateLayout,
boolean hasLogo,
InputStream inputStream,
boolean cleanUpStream) |
LayoutSet |
updateLookAndFeel(long groupId,
boolean privateLayout,
String themeId,
String colorSchemeId,
String css) |
LayoutSet |
updateSettings(long groupId,
boolean privateLayout,
String settings) |
LayoutSet |
updateVirtualHosts(long groupId,
boolean privateLayout,
TreeMap<String,String> virtualHostnames) |
public LayoutSetServiceWrapper()
public LayoutSetServiceWrapper(LayoutSetService layoutSetService)
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface LayoutSetService
public void updateFaviconFileEntryId(long groupId, boolean privateLayout, long faviconFileEntryId) throws PortalException
updateFaviconFileEntryId
in interface LayoutSetService
PortalException
public 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
.
updateLayoutSetPrototypeLinkEnabled
in interface LayoutSetService
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 void updateLogo(long groupId, boolean privateLayout, boolean hasLogo, byte[] bytes) throws PortalException
updateLogo
in interface LayoutSetService
PortalException
public void updateLogo(long groupId, boolean privateLayout, boolean hasLogo, File file) throws PortalException
updateLogo
in interface LayoutSetService
PortalException
public void updateLogo(long groupId, boolean privateLayout, boolean hasLogo, InputStream inputStream) throws PortalException
updateLogo
in interface LayoutSetService
PortalException
public void updateLogo(long groupId, boolean privateLayout, boolean hasLogo, InputStream inputStream, boolean cleanUpStream) throws PortalException
updateLogo
in interface LayoutSetService
PortalException
public LayoutSet updateLookAndFeel(long groupId, boolean privateLayout, String themeId, String colorSchemeId, String css) throws PortalException
updateLookAndFeel
in interface LayoutSetService
PortalException
public LayoutSet updateSettings(long groupId, boolean privateLayout, String settings) throws PortalException
updateSettings
in interface LayoutSetService
PortalException
public LayoutSet updateVirtualHosts(long groupId, boolean privateLayout, TreeMap<String,String> virtualHostnames) throws PortalException
updateVirtualHosts
in interface LayoutSetService
PortalException
public LayoutSetService getWrappedService()
getWrappedService
in interface ServiceWrapper<LayoutSetService>
public void setWrappedService(LayoutSetService layoutSetService)
setWrappedService
in interface ServiceWrapper<LayoutSetService>