Liferay 7.0-ce-b4

com.liferay.portal.service.impl
Class WebsiteLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portal.service.base.WebsiteLocalServiceBaseImpl
          extended by com.liferay.portal.service.impl.WebsiteLocalServiceImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, WebsiteLocalService

public class WebsiteLocalServiceImpl
extends WebsiteLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portal.service.base.WebsiteLocalServiceBaseImpl
classNameLocalService, classNamePersistence, counterLocalService, listTypeLocalService, listTypePersistence, persistedModelLocalServiceRegistry, userFinder, userLocalService, userPersistence, websiteLocalService, websitePersistence
 
Constructor Summary
WebsiteLocalServiceImpl()
           
 
Method Summary
 Website addWebsite(long userId, String className, long classPK, String url, long typeId, boolean primary)
          Deprecated. As of 6.2.0, replaced by #addWebsite(long, String, long, String, int, boolean, ServiceContext)
 Website addWebsite(long userId, String className, long classPK, String url, long typeId, boolean primary, ServiceContext serviceContext)
           
 Website deleteWebsite(long websiteId)
          Deletes the website with the primary key from the database.
 Website deleteWebsite(Website website)
          Deletes the website from the database.
 void deleteWebsites(long companyId, String className, long classPK)
           
 List<Website> getWebsites()
           
 List<Website> getWebsites(long companyId, String className, long classPK)
           
 Website updateWebsite(long websiteId, String url, long typeId, boolean primary)
           
protected  void validate(long websiteId, long companyId, long classNameId, long classPK, boolean primary)
           
protected  void validate(long websiteId, long companyId, long classNameId, long classPK, String url, long typeId, boolean primary)
           
 
Methods inherited from class com.liferay.portal.service.base.WebsiteLocalServiceBaseImpl
addWebsite, afterPropertiesSet, createWebsite, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchWebsite, fetchWebsiteByUuidAndCompanyId, getActionableDynamicQuery, getClassNameLocalService, getClassNamePersistence, getCounterLocalService, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getListTypeLocalService, getListTypePersistence, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getUserFinder, getUserLocalService, getUserPersistence, getWebsite, getWebsiteByUuidAndCompanyId, getWebsiteLocalService, getWebsitePersistence, getWebsites, getWebsitesCount, initActionableDynamicQuery, runSQL, setClassNameLocalService, setClassNamePersistence, setCounterLocalService, setListTypeLocalService, setListTypePersistence, setUserFinder, setUserLocalService, setUserPersistence, setWebsiteLocalService, setWebsitePersistence, updateWebsite
 
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

WebsiteLocalServiceImpl

public WebsiteLocalServiceImpl()
Method Detail

addWebsite

@Deprecated
public Website addWebsite(long userId,
                                     String className,
                                     long classPK,
                                     String url,
                                     long typeId,
                                     boolean primary)
                   throws PortalException
Deprecated. As of 6.2.0, replaced by #addWebsite(long, String, long, String, int, boolean, ServiceContext)

Throws:
PortalException

addWebsite

public Website addWebsite(long userId,
                          String className,
                          long classPK,
                          String url,
                          long typeId,
                          boolean primary,
                          ServiceContext serviceContext)
                   throws PortalException
Throws:
PortalException

deleteWebsite

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

Specified by:
deleteWebsite in interface WebsiteLocalService
Overrides:
deleteWebsite in class WebsiteLocalServiceBaseImpl
Parameters:
websiteId - the primary key of the website
Returns:
the website that was removed
Throws:
PortalException - if a website with the primary key could not be found

deleteWebsite

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

Specified by:
deleteWebsite in interface 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<Website> getWebsites()

getWebsites

public List<Website> getWebsites(long companyId,
                                 String className,
                                 long classPK)

updateWebsite

public Website updateWebsite(long websiteId,
                             String url,
                             long typeId,
                             boolean primary)
                      throws PortalException
Throws:
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 typeId,
                        boolean primary)
                 throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4