Class WebsiteLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.WebsiteLocalServiceBaseImpl
com.liferay.portal.service.impl.WebsiteLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.WebsiteLocalService

public class WebsiteLocalServiceImpl extends WebsiteLocalServiceBaseImpl
Author:
Brian Wing Shun Chan
  • Constructor Details

    • WebsiteLocalServiceImpl

      public WebsiteLocalServiceImpl()
  • Method Details

    • addWebsite

      public com.liferay.portal.kernel.model.Website addWebsite(String externalReferenceCode, long userId, String className, long classPK, String url, long listTypeId, boolean primary, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteWebsite

      public com.liferay.portal.kernel.model.Website deleteWebsite(long websiteId) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: WebsiteLocalServiceBaseImpl
      Deletes the website with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect WebsiteLocalServiceImpl 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:
      deleteWebsite in interface com.liferay.portal.kernel.service.WebsiteLocalService
      Overrides:
      deleteWebsite in class WebsiteLocalServiceBaseImpl
      Parameters:
      websiteId - the primary key of the website
      Returns:
      the website that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a website with the primary key could not be found
    • deleteWebsite

      @SystemEvent(action=1, type=1) public com.liferay.portal.kernel.model.Website deleteWebsite(com.liferay.portal.kernel.model.Website website)
      Description copied from class: WebsiteLocalServiceBaseImpl
      Deletes the website from the database. Also notifies the appropriate model listeners.

      Important: Inspect WebsiteLocalServiceImpl 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:
      deleteWebsite in interface com.liferay.portal.kernel.service.WebsiteLocalService
      Overrides:
      deleteWebsite in class WebsiteLocalServiceBaseImpl
      Parameters:
      website - the website
      Returns:
      the website that was removed
    • deleteWebsites

      public void deleteWebsites(long companyId, String className, long classPK)
    • getWebsites

      public List<com.liferay.portal.kernel.model.Website> getWebsites()
    • getWebsites

      public List<com.liferay.portal.kernel.model.Website> getWebsites(long companyId, String className, long classPK)
    • updateWebsite

      public com.liferay.portal.kernel.model.Website updateWebsite(String externalReferenceCode, long websiteId, String url, long listTypeId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • validate

      protected void validate(long websiteId, long companyId, long classNameId, long classPK, boolean primary)
    • validate

      protected void validate(long websiteId, long companyId, long classNameId, long classPK, String url, long listTypeId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException