Class LayoutSetLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.LayoutSetLocalServiceBaseImpl
com.liferay.portal.service.impl.LayoutSetLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.LayoutSet>, com.liferay.portal.kernel.service.LayoutSetLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService

public class LayoutSetLocalServiceImpl extends LayoutSetLocalServiceBaseImpl
Author:
Brian Wing Shun Chan, Julio Camarero, Ganesh Ram
  • Constructor Details

    • LayoutSetLocalServiceImpl

      public LayoutSetLocalServiceImpl()
  • Method Details

    • addLayoutSet

      public com.liferay.portal.kernel.model.LayoutSet addLayoutSet(long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutSet

      public void deleteLayoutSet(long groupId, boolean privateLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchLayoutSet

      public com.liferay.portal.kernel.model.LayoutSet fetchLayoutSet(long groupId, boolean privateLayout)
    • fetchLayoutSet

      public com.liferay.portal.kernel.model.LayoutSet fetchLayoutSet(String virtualHostname)
    • fetchLayoutSetByLogoId

      public com.liferay.portal.kernel.model.LayoutSet fetchLayoutSetByLogoId(boolean privateLayout, long logoId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLayoutSet

      public com.liferay.portal.kernel.model.LayoutSet getLayoutSet(long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLayoutSet

      public com.liferay.portal.kernel.model.LayoutSet getLayoutSet(String virtualHostname) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLayoutSetsByLayoutSetPrototypeUuid

      public List<com.liferay.portal.kernel.model.LayoutSet> getLayoutSetsByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
    • getPageCount

      public int getPageCount(long groupId, boolean privateLayout)
    • updateFaviconFileEntryId

      public com.liferay.portal.kernel.model.LayoutSet updateFaviconFileEntryId(long groupId, boolean privateLayout, long faviconFileEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateLayoutSetPrototypeLinkEnabled

      public void updateLayoutSetPrototypeLinkEnabled(long groupId, boolean privateLayout, boolean layoutSetPrototypeLinkEnabled, String layoutSetPrototypeUuid) throws com.liferay.portal.kernel.exception.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:
      com.liferay.portal.kernel.exception.PortalException
    • updateLogo

      public com.liferay.portal.kernel.model.LayoutSet updateLogo(long groupId, boolean privateLayout, boolean hasLogo, byte[] bytes) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateLogo

      public com.liferay.portal.kernel.model.LayoutSet updateLogo(long groupId, boolean privateLayout, boolean hasLogo, File file) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateLogo

      public com.liferay.portal.kernel.model.LayoutSet updateLogo(long groupId, boolean privateLayout, boolean hasLogo, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateLogo

      public com.liferay.portal.kernel.model.LayoutSet updateLogo(long groupId, boolean privateLayout, boolean hasLogo, InputStream inputStream, boolean cleanUpStream) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateLookAndFeel

      public com.liferay.portal.kernel.model.LayoutSet updateLookAndFeel(long groupId, boolean privateLayout, String themeId, String colorSchemeId, String css) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateLookAndFeel

      public void updateLookAndFeel(long groupId, String themeId, String colorSchemeId, String css) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateSettings

      public com.liferay.portal.kernel.model.LayoutSet updateSettings(long groupId, boolean privateLayout, String settings) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateVirtualHosts

      public com.liferay.portal.kernel.model.LayoutSet updateVirtualHosts(long groupId, boolean privateLayout, TreeMap<String,String> virtualHostnames) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • initLayoutSet

      protected com.liferay.portal.kernel.model.LayoutSet initLayoutSet(com.liferay.portal.kernel.model.LayoutSet layoutSet) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • validateSettings

      protected void validateSettings(com.liferay.portal.kernel.util.UnicodeProperties oldSettingsUnicodeProperties, com.liferay.portal.kernel.util.UnicodeProperties newSettingsUnicodeProperties) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException