Package com.liferay.portal.service.impl
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
- Author:
- Brian Wing Shun Chan
-
Field Summary
Fields inherited from class com.liferay.portal.service.base.WebsiteLocalServiceBaseImpl
counterLocalService, websiteLocalService, websitePersistence -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.model.WebsiteaddWebsite(String externalReferenceCode, long userId, String className, long classPK, String url, long listTypeId, boolean primary, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.model.WebsitedeleteWebsite(long websiteId) Deletes the website with the primary key from the database.com.liferay.portal.kernel.model.WebsitedeleteWebsite(com.liferay.portal.kernel.model.Website website) Deletes the website from the database.voiddeleteWebsites(long companyId, String className, long classPK) List<com.liferay.portal.kernel.model.Website>List<com.liferay.portal.kernel.model.Website>getWebsites(long companyId, String className, long classPK) com.liferay.portal.kernel.model.WebsiteupdateWebsite(String externalReferenceCode, long websiteId, String url, long listTypeId, boolean primary) protected voidvalidate(long websiteId, long companyId, long classNameId, long classPK, boolean primary) protected voidvalidate(long websiteId, long companyId, long classNameId, long classPK, String url, long listTypeId, boolean primary) Methods inherited from class com.liferay.portal.service.base.WebsiteLocalServiceBaseImpl
addWebsite, afterPropertiesSet, createPersistedModel, createWebsite, deletePersistedModel, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchWebsite, fetchWebsiteByExternalReferenceCode, fetchWebsiteByUuidAndCompanyId, getActionableDynamicQuery, getBasePersistence, getCounterLocalService, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getWebsite, getWebsiteByExternalReferenceCode, getWebsiteByUuidAndCompanyId, getWebsiteLocalService, getWebsitePersistence, getWebsites, getWebsitesCount, initActionableDynamicQuery, runSQL, setCounterLocalService, setWebsiteLocalService, setWebsitePersistence, updateWebsiteMethods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
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:WebsiteLocalServiceBaseImplDeletes 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:
deleteWebsitein interfacecom.liferay.portal.kernel.service.WebsiteLocalService- Overrides:
deleteWebsitein classWebsiteLocalServiceBaseImpl- 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:WebsiteLocalServiceBaseImplDeletes 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:
deleteWebsitein interfacecom.liferay.portal.kernel.service.WebsiteLocalService- Overrides:
deleteWebsitein classWebsiteLocalServiceBaseImpl- Parameters:
website- the website- Returns:
- the website that was removed
-
deleteWebsites
-
getWebsites
-
getWebsites
-
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
-