Class WebsiteLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService,PersistedModelLocalService,ServiceWrapper<WebsiteLocalService>,WebsiteLocalService
WebsiteLocalService.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddWebsite(Website website) Adds the website to the database.addWebsite(String externalReferenceCode, long userId, String className, long classPK, String url, long listTypeId, boolean primary, ServiceContext serviceContext) createPersistedModel(Serializable primaryKeyObj) createWebsite(long websiteId) Creates a new website with the primary key.deletePersistedModel(PersistedModel persistedModel) deleteWebsite(long websiteId) Deletes the website with the primary key from the database.deleteWebsite(Website website) Deletes the website from the database.voiddeleteWebsites(long companyId, String className, long classPK) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>dynamicQuery(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>dynamicQuery(DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.<T> List<T>dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchWebsite(long websiteId) fetchWebsiteByExternalReferenceCode(String externalReferenceCode, long companyId) fetchWebsiteByUuidAndCompanyId(String uuid, long companyId) Returns the website with the matching UUID and company.getExportActionableDynamicQuery(PortletDataContext portletDataContext) Returns the OSGi service identifier.getPersistedModel(Serializable primaryKeyObj) getWebsite(long websiteId) Returns the website with the primary key.getWebsiteByExternalReferenceCode(String externalReferenceCode, long companyId) getWebsiteByUuidAndCompanyId(String uuid, long companyId) Returns the website with the matching UUID and company.getWebsites(int start, int end) Returns a range of all the websites.getWebsites(long companyId, String className, long classPK) intReturns the number of websites.voidsetWrappedService(WebsiteLocalService websiteLocalService) updateWebsite(Website website) Updates the website in the database or adds it if it does not yet exist.updateWebsite(String externalReferenceCode, long websiteId, String url, long listTypeId, boolean primary) Methods 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
-
WebsiteLocalServiceWrapper
public WebsiteLocalServiceWrapper() -
WebsiteLocalServiceWrapper
-
-
Method Details
-
addWebsite
public Website addWebsite(String externalReferenceCode, long userId, String className, long classPK, String url, long listTypeId, boolean primary, ServiceContext serviceContext) throws PortalException - Specified by:
addWebsitein interfaceWebsiteLocalService- Throws:
PortalException
-
addWebsite
Adds the website to 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:
addWebsitein interfaceWebsiteLocalService- Parameters:
website- the website- Returns:
- the website that was added
-
createPersistedModel
- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Specified by:
createPersistedModelin interfaceWebsiteLocalService- Throws:
PortalExceptionPortalException
-
createWebsite
Creates a new website with the primary key. Does not add the website to the database.- Specified by:
createWebsitein interfaceWebsiteLocalService- Parameters:
websiteId- the primary key for the new website- Returns:
- the new website
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Specified by:
deletePersistedModelin interfaceWebsiteLocalService- Throws:
PortalExceptionPortalException
-
deleteWebsite
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:
deleteWebsitein interfaceWebsiteLocalService- 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 foundPortalException
-
deleteWebsite
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:
deleteWebsitein interfaceWebsiteLocalService- Parameters:
website- the website- Returns:
- the website that was removed
-
deleteWebsites
- Specified by:
deleteWebsitesin interfaceWebsiteLocalService
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacePersistedModelLocalService- Specified by:
dslQueryin interfaceWebsiteLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacePersistedModelLocalService- Specified by:
dslQueryCountin interfaceWebsiteLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceWebsiteLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceWebsiteLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WebsiteModelImpl.- Specified by:
dynamicQueryin interfaceWebsiteLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WebsiteModelImpl.- Specified by:
dynamicQueryin interfaceWebsiteLocalService- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceWebsiteLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceWebsiteLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchWebsite
- Specified by:
fetchWebsitein interfaceWebsiteLocalService
-
fetchWebsiteByExternalReferenceCode
- Specified by:
fetchWebsiteByExternalReferenceCodein interfaceWebsiteLocalService
-
fetchWebsiteByUuidAndCompanyId
Returns the website with the matching UUID and company.- Specified by:
fetchWebsiteByUuidAndCompanyIdin interfaceWebsiteLocalService- Parameters:
uuid- the website's UUIDcompanyId- the primary key of the company- Returns:
- the matching website, or
nullif a matching website could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceWebsiteLocalService
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceWebsiteLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceWebsiteLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceWebsiteLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Specified by:
getPersistedModelin interfaceWebsiteLocalService- Throws:
PortalExceptionPortalException
-
getWebsite
Returns the website with the primary key.- Specified by:
getWebsitein interfaceWebsiteLocalService- Parameters:
websiteId- the primary key of the website- Returns:
- the website
- Throws:
PortalException- if a website with the primary key could not be foundPortalException
-
getWebsiteByExternalReferenceCode
public Website getWebsiteByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException - Specified by:
getWebsiteByExternalReferenceCodein interfaceWebsiteLocalService- Throws:
PortalException
-
getWebsiteByUuidAndCompanyId
Returns the website with the matching UUID and company.- Specified by:
getWebsiteByUuidAndCompanyIdin interfaceWebsiteLocalService- Parameters:
uuid- the website's UUIDcompanyId- the primary key of the company- Returns:
- the matching website
- Throws:
PortalException- if a matching website could not be foundPortalException
-
getWebsites
- Specified by:
getWebsitesin interfaceWebsiteLocalService
-
getWebsites
Returns a range of all the websites.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WebsiteModelImpl.- Specified by:
getWebsitesin interfaceWebsiteLocalService- Parameters:
start- the lower bound of the range of websitesend- the upper bound of the range of websites (not inclusive)- Returns:
- the range of websites
-
getWebsites
- Specified by:
getWebsitesin interfaceWebsiteLocalService
-
getWebsitesCount
public int getWebsitesCount()Returns the number of websites.- Specified by:
getWebsitesCountin interfaceWebsiteLocalService- Returns:
- the number of websites
-
updateWebsite
public Website updateWebsite(String externalReferenceCode, long websiteId, String url, long listTypeId, boolean primary) throws PortalException - Specified by:
updateWebsitein interfaceWebsiteLocalService- Throws:
PortalException
-
updateWebsite
Updates the website in the database or adds it if it does not yet exist. 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:
updateWebsitein interfaceWebsiteLocalService- Parameters:
website- the website- Returns:
- the website that was updated
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<WebsiteLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<WebsiteLocalService>
-