Class LayoutFriendlyURLLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.LayoutFriendlyURLLocalServiceBaseImpl
com.liferay.portal.service.impl.LayoutFriendlyURLLocalServiceImpl
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.LayoutFriendlyURL>, com.liferay.portal.kernel.service.LayoutFriendlyURLLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService

public class LayoutFriendlyURLLocalServiceImpl extends LayoutFriendlyURLLocalServiceBaseImpl
Provides the local service for accessing, adding, deleting, and updating friendly URLs for layouts.

All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the LayoutFriendlyURLLocalService interface.

Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
  • Constructor Details

    • LayoutFriendlyURLLocalServiceImpl

      public LayoutFriendlyURLLocalServiceImpl()
  • Method Details

    • addLayoutFriendlyURL

      public com.liferay.portal.kernel.model.LayoutFriendlyURL addLayoutFriendlyURL(long userId, long companyId, long groupId, long plid, boolean privateLayout, String friendlyURL, String languageId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addLayoutFriendlyURLs

      public List<com.liferay.portal.kernel.model.LayoutFriendlyURL> addLayoutFriendlyURLs(long userId, long companyId, long groupId, long plid, boolean privateLayout, Map<Locale,String> friendlyURLMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteLayoutFriendlyURL

      @SystemEvent(type=1) public com.liferay.portal.kernel.model.LayoutFriendlyURL deleteLayoutFriendlyURL(com.liferay.portal.kernel.model.LayoutFriendlyURL layoutFriendlyURL)
      Description copied from class: LayoutFriendlyURLLocalServiceBaseImpl
      Deletes the layout friendly url from the database. Also notifies the appropriate model listeners.

      Important: Inspect LayoutFriendlyURLLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteLayoutFriendlyURL in interface com.liferay.portal.kernel.service.LayoutFriendlyURLLocalService
      Overrides:
      deleteLayoutFriendlyURL in class LayoutFriendlyURLLocalServiceBaseImpl
      Parameters:
      layoutFriendlyURL - the layout friendly url
      Returns:
      the layout friendly url that was removed
    • deleteLayoutFriendlyURL

      public void deleteLayoutFriendlyURL(long plid, String languageId)
    • deleteLayoutFriendlyURLs

      public void deleteLayoutFriendlyURLs(long plid)
    • fetchFirstLayoutFriendlyURL

      public com.liferay.portal.kernel.model.LayoutFriendlyURL fetchFirstLayoutFriendlyURL(long groupId, boolean privateLayout, String friendlyURL)
    • fetchLayoutFriendlyURL

      public com.liferay.portal.kernel.model.LayoutFriendlyURL fetchLayoutFriendlyURL(long groupId, boolean privateLayout, String friendlyURL, String languageId)
    • fetchLayoutFriendlyURL

      public com.liferay.portal.kernel.model.LayoutFriendlyURL fetchLayoutFriendlyURL(long plid, String languageId)
    • fetchLayoutFriendlyURL

      public com.liferay.portal.kernel.model.LayoutFriendlyURL fetchLayoutFriendlyURL(long plid, String languageId, boolean useDefault)
    • getLayoutFriendlyURL

      public com.liferay.portal.kernel.model.LayoutFriendlyURL getLayoutFriendlyURL(long groupId, boolean privateLayout, String friendlyURL, String languageId) throws com.liferay.portal.kernel.exception.NoSuchLayoutFriendlyURLException
      Throws:
      com.liferay.portal.kernel.exception.NoSuchLayoutFriendlyURLException
    • getLayoutFriendlyURL

      public com.liferay.portal.kernel.model.LayoutFriendlyURL getLayoutFriendlyURL(long plid, String languageId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLayoutFriendlyURL

      public com.liferay.portal.kernel.model.LayoutFriendlyURL getLayoutFriendlyURL(long plid, String languageId, boolean useDefault) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLayoutFriendlyURLs

      public Map<Long,String> getLayoutFriendlyURLs(com.liferay.portal.kernel.model.Group siteGroup, List<com.liferay.portal.kernel.model.Layout> layouts, String languageId)
    • getLayoutFriendlyURLs

      public List<com.liferay.portal.kernel.model.LayoutFriendlyURL> getLayoutFriendlyURLs(long plid)
    • getLayoutFriendlyURLs

      public List<com.liferay.portal.kernel.model.LayoutFriendlyURL> getLayoutFriendlyURLs(long plid, String friendlyURL, int start, int end)
    • getLayoutFriendlyURLsCount

      public int getLayoutFriendlyURLsCount(long companyId, String friendlyURL)
    • updateLayoutFriendlyURL

      public com.liferay.portal.kernel.model.LayoutFriendlyURL updateLayoutFriendlyURL(long userId, long companyId, long groupId, long plid, boolean privateLayout, String friendlyURL, String languageId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateLayoutFriendlyURLs

      public List<com.liferay.portal.kernel.model.LayoutFriendlyURL> updateLayoutFriendlyURLs(long userId, long companyId, long groupId, long plid, boolean privateLayout, Map<Locale,String> friendlyURLMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException