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.void
deleteWebsites
(long companyId, String className, long classPK) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(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.long
dynamicQueryCount
(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(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) int
Returns the number of websites.void
setWrappedService
(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, wait
Methods 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:
addWebsite
in 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:
addWebsite
in interfaceWebsiteLocalService
- Parameters:
website
- the website- Returns:
- the website that was added
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Specified by:
createPersistedModel
in interfaceWebsiteLocalService
- Throws:
PortalException
PortalException
-
createWebsite
Creates a new website with the primary key. Does not add the website to the database.- Specified by:
createWebsite
in interfaceWebsiteLocalService
- Parameters:
websiteId
- the primary key for the new website- Returns:
- the new website
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Specified by:
deletePersistedModel
in interfaceWebsiteLocalService
- Throws:
PortalException
PortalException
-
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:
deleteWebsite
in 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:
deleteWebsite
in interfaceWebsiteLocalService
- Parameters:
website
- the website- Returns:
- the website that was removed
-
deleteWebsites
- Specified by:
deleteWebsites
in interfaceWebsiteLocalService
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePersistedModelLocalService
- Specified by:
dslQuery
in interfaceWebsiteLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
- Specified by:
dslQueryCount
in interfaceWebsiteLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceWebsiteLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WebsiteModelImpl
.- Specified by:
dynamicQuery
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WebsiteModelImpl
.- Specified by:
dynamicQuery
in 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:
dynamicQueryCount
in 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:
dynamicQueryCount
in 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:
fetchWebsite
in interfaceWebsiteLocalService
-
fetchWebsiteByExternalReferenceCode
- Specified by:
fetchWebsiteByExternalReferenceCode
in interfaceWebsiteLocalService
-
fetchWebsiteByUuidAndCompanyId
Returns the website with the matching UUID and company.- Specified by:
fetchWebsiteByUuidAndCompanyId
in interfaceWebsiteLocalService
- Parameters:
uuid
- the website's UUIDcompanyId
- the primary key of the company- Returns:
- the matching website, or
null
if a matching website could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceWebsiteLocalService
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceWebsiteLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceWebsiteLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceWebsiteLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Specified by:
getPersistedModel
in interfaceWebsiteLocalService
- Throws:
PortalException
PortalException
-
getWebsite
Returns the website with the primary key.- Specified by:
getWebsite
in 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:
getWebsiteByExternalReferenceCode
in interfaceWebsiteLocalService
- Throws:
PortalException
-
getWebsiteByUuidAndCompanyId
Returns the website with the matching UUID and company.- Specified by:
getWebsiteByUuidAndCompanyId
in 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:
getWebsites
in interfaceWebsiteLocalService
-
getWebsites
Returns a range of all the websites.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.WebsiteModelImpl
.- Specified by:
getWebsites
in 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:
getWebsites
in interfaceWebsiteLocalService
-
getWebsitesCount
public int getWebsitesCount()Returns the number of websites.- Specified by:
getWebsitesCount
in interfaceWebsiteLocalService
- Returns:
- the number of websites
-
updateWebsite
public Website updateWebsite(String externalReferenceCode, long websiteId, String url, long listTypeId, boolean primary) throws PortalException - Specified by:
updateWebsite
in 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:
updateWebsite
in interfaceWebsiteLocalService
- Parameters:
website
- the website- Returns:
- the website that was updated
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<WebsiteLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<WebsiteLocalService>
-