Liferay 7.0-ce-b4

com.liferay.portal.service.impl
Class LayoutSetLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portal.service.base.LayoutSetLocalServiceBaseImpl
          extended by com.liferay.portal.service.impl.LayoutSetLocalServiceImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, LayoutSetLocalService, PersistedModelLocalService
Direct Known Subclasses:
LayoutSetLocalServiceStagingAdvice

public class LayoutSetLocalServiceImpl
extends LayoutSetLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portal.service.base.LayoutSetLocalServiceBaseImpl
counterLocalService, groupFinder, groupLocalService, groupPersistence, imageLocalService, imagePersistence, layoutFinder, layoutLocalService, layoutPersistence, layoutSetBranchLocalService, layoutSetBranchPersistence, layoutSetLocalService, layoutSetPersistence, persistedModelLocalServiceRegistry, pluginSettingLocalService, pluginSettingPersistence, virtualHostLocalService, virtualHostPersistence
 
Constructor Summary
LayoutSetLocalServiceImpl()
           
 
Method Summary
 LayoutSet addLayoutSet(long groupId, boolean privateLayout)
           
 void deleteLayoutSet(long groupId, boolean privateLayout, ServiceContext serviceContext)
           
 LayoutSet fetchLayoutSet(String virtualHostname)
           
 LayoutSet getLayoutSet(long groupId, boolean privateLayout)
           
 LayoutSet getLayoutSet(String virtualHostname)
           
 List<LayoutSet> getLayoutSetsByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
           
protected  LayoutSet initLayoutSet(LayoutSet layoutSet)
           
 void updateLayoutSetPrototypeLinkEnabled(long groupId, boolean privateLayout, boolean layoutSetPrototypeLinkEnabled)
          Deprecated. As of 6.1.0, replaced by updateLayoutSetPrototypeLinkEnabled(long, boolean, boolean, String)
 void updateLayoutSetPrototypeLinkEnabled(long groupId, boolean privateLayout, boolean layoutSetPrototypeLinkEnabled, String layoutSetPrototypeUuid)
          Updates the state of the layout set prototype link.
 LayoutSet updateLogo(long groupId, boolean privateLayout, boolean logo, byte[] bytes)
           
 LayoutSet updateLogo(long groupId, boolean privateLayout, boolean logo, File file)
           
 LayoutSet updateLogo(long groupId, boolean privateLayout, boolean logo, InputStream is)
           
 LayoutSet updateLogo(long groupId, boolean privateLayout, boolean logo, InputStream is, boolean cleanUpStream)
           
 LayoutSet updateLookAndFeel(long groupId, boolean privateLayout, String themeId, String colorSchemeId, String css, boolean wapTheme)
           
 void updateLookAndFeel(long groupId, String themeId, String colorSchemeId, String css, boolean wapTheme)
           
 LayoutSet updatePageCount(long groupId, boolean privateLayout)
           
 LayoutSet updateSettings(long groupId, boolean privateLayout, String settings)
           
 LayoutSet updateVirtualHost(long groupId, boolean privateLayout, String virtualHostname)
           
 
Methods inherited from class com.liferay.portal.service.base.LayoutSetLocalServiceBaseImpl
addLayoutSet, afterPropertiesSet, createLayoutSet, deleteLayoutSet, deleteLayoutSet, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchLayoutSet, getActionableDynamicQuery, getCounterLocalService, getGroupFinder, getGroupLocalService, getGroupPersistence, getImageLocalService, getImagePersistence, getIndexableActionableDynamicQuery, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getLayoutSet, getLayoutSetBranchLocalService, getLayoutSetBranchPersistence, getLayoutSetLocalService, getLayoutSetPersistence, getLayoutSets, getLayoutSetsCount, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getPluginSettingLocalService, getPluginSettingPersistence, getVirtualHostLocalService, getVirtualHostPersistence, initActionableDynamicQuery, runSQL, setCounterLocalService, setGroupFinder, setGroupLocalService, setGroupPersistence, setImageLocalService, setImagePersistence, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setLayoutSetBranchLocalService, setLayoutSetBranchPersistence, setLayoutSetLocalService, setLayoutSetPersistence, setPluginSettingLocalService, setPluginSettingPersistence, setVirtualHostLocalService, setVirtualHostPersistence, updateLayoutSet
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutSetLocalServiceImpl

public LayoutSetLocalServiceImpl()
Method Detail

addLayoutSet

public LayoutSet addLayoutSet(long groupId,
                              boolean privateLayout)
                       throws PortalException
Throws:
PortalException

deleteLayoutSet

public void deleteLayoutSet(long groupId,
                            boolean privateLayout,
                            ServiceContext serviceContext)
                     throws PortalException
Throws:
PortalException

fetchLayoutSet

public LayoutSet fetchLayoutSet(String virtualHostname)

getLayoutSet

public LayoutSet getLayoutSet(long groupId,
                              boolean privateLayout)
                       throws PortalException
Throws:
PortalException

getLayoutSet

public LayoutSet getLayoutSet(String virtualHostname)
                       throws PortalException
Throws:
PortalException

getLayoutSetsByLayoutSetPrototypeUuid

public List<LayoutSet> getLayoutSetsByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)

updateLayoutSetPrototypeLinkEnabled

@Deprecated
public void updateLayoutSetPrototypeLinkEnabled(long groupId,
                                                           boolean privateLayout,
                                                           boolean layoutSetPrototypeLinkEnabled)
                                         throws PortalException
Deprecated. As of 6.1.0, replaced by updateLayoutSetPrototypeLinkEnabled(long, boolean, boolean, String)

Updates the state of the layout set prototype link.

This method can disable the layout set prototype's link by setting layoutSetPrototypeLinkEnabled to false. However, this method can only enable the layout set prototype's link if the layout set prototype's current uuid is not null. Setting the layoutSetPrototypeLinkEnabled to true when the layout set prototype's current uuid is null will have no effect.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout set is private to the group
layoutSetPrototypeLinkEnabled - whether the layout set prototype is link enabled
Throws:
PortalException

updateLayoutSetPrototypeLinkEnabled

public void updateLayoutSetPrototypeLinkEnabled(long groupId,
                                                boolean privateLayout,
                                                boolean layoutSetPrototypeLinkEnabled,
                                                String layoutSetPrototypeUuid)
                                         throws PortalException
Updates the state of the layout set prototype link.

Parameters:
groupId - the primary key of the group
privateLayout - whether the layout set is private to the group
layoutSetPrototypeLinkEnabled - whether the layout set prototype is link enabled
layoutSetPrototypeUuid - the uuid of the layout set prototype to link with
Throws:
PortalException

updateLogo

public LayoutSet updateLogo(long groupId,
                            boolean privateLayout,
                            boolean logo,
                            byte[] bytes)
                     throws PortalException
Throws:
PortalException

updateLogo

public LayoutSet updateLogo(long groupId,
                            boolean privateLayout,
                            boolean logo,
                            File file)
                     throws PortalException
Throws:
PortalException

updateLogo

public LayoutSet updateLogo(long groupId,
                            boolean privateLayout,
                            boolean logo,
                            InputStream is)
                     throws PortalException
Throws:
PortalException

updateLogo

public LayoutSet updateLogo(long groupId,
                            boolean privateLayout,
                            boolean logo,
                            InputStream is,
                            boolean cleanUpStream)
                     throws PortalException
Throws:
PortalException

updateLookAndFeel

public LayoutSet updateLookAndFeel(long groupId,
                                   boolean privateLayout,
                                   String themeId,
                                   String colorSchemeId,
                                   String css,
                                   boolean wapTheme)
                            throws PortalException
Throws:
PortalException

updateLookAndFeel

public void updateLookAndFeel(long groupId,
                              String themeId,
                              String colorSchemeId,
                              String css,
                              boolean wapTheme)
                       throws PortalException
Throws:
PortalException

updatePageCount

public LayoutSet updatePageCount(long groupId,
                                 boolean privateLayout)
                          throws PortalException
Throws:
PortalException

updateSettings

public LayoutSet updateSettings(long groupId,
                                boolean privateLayout,
                                String settings)
                         throws PortalException
Throws:
PortalException

updateVirtualHost

public LayoutSet updateVirtualHost(long groupId,
                                   boolean privateLayout,
                                   String virtualHostname)
                            throws PortalException
Throws:
PortalException

initLayoutSet

protected LayoutSet initLayoutSet(LayoutSet layoutSet)
                           throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4