Class WebsiteServiceUtil
Object
com.liferay.portal.kernel.service.WebsiteServiceUtil
Provides the remote service utility for Website. This utility wraps
com.liferay.portal.service.impl.WebsiteServiceImpl and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WebsiteaddWebsite(String externalReferenceCode, String className, long classPK, String url, long typeId, boolean primary, ServiceContext serviceContext) static voiddeleteWebsite(long websiteId) static WebsitefetchWebsiteByExternalReferenceCode(String externalReferenceCode, long companyId) static StringReturns the OSGi service identifier.static WebsiteServicestatic WebsitegetWebsite(long websiteId) getWebsites(String className, long classPK) static voidsetService(WebsiteService service) static WebsiteupdateWebsite(String externalReferenceCode, long websiteId, String url, long typeId, boolean primary)
-
Constructor Details
-
WebsiteServiceUtil
public WebsiteServiceUtil()
-
-
Method Details
-
addWebsite
public static Website addWebsite(String externalReferenceCode, String className, long classPK, String url, long typeId, boolean primary, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
deleteWebsite
- Throws:
PortalException
-
fetchWebsiteByExternalReferenceCode
public static Website fetchWebsiteByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException - Throws:
PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getWebsite
- Throws:
PortalException
-
getWebsites
- Throws:
PortalException
-
updateWebsite
public static Website updateWebsite(String externalReferenceCode, long websiteId, String url, long typeId, boolean primary) throws PortalException - Throws:
PortalException
-
getService
-
setService
-