001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022 import com.liferay.portal.kernel.security.access.control.AccessControlled;
023 import com.liferay.portal.kernel.transaction.Isolation;
024 import com.liferay.portal.kernel.transaction.Propagation;
025 import com.liferay.portal.kernel.transaction.Transactional;
026
027
038 @AccessControlled
039 @JSONWebService
040 @ProviderType
041 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
042 PortalException.class, SystemException.class})
043 public interface WebsiteService extends BaseService {
044
049
050
054 @java.lang.Deprecated
055 public com.liferay.portal.model.Website addWebsite(
056 java.lang.String className, long classPK, java.lang.String url,
057 long typeId, boolean primary) throws PortalException;
058
059 public com.liferay.portal.model.Website addWebsite(
060 java.lang.String className, long classPK, java.lang.String url,
061 long typeId, boolean primary,
062 com.liferay.portal.service.ServiceContext serviceContext)
063 throws PortalException;
064
065 public void deleteWebsite(long websiteId) throws PortalException;
066
067
072 public java.lang.String getOSGiServiceIdentifier();
073
074 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075 public com.liferay.portal.model.Website getWebsite(long websiteId)
076 throws PortalException;
077
078 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079 public java.util.List<com.liferay.portal.model.Website> getWebsites(
080 java.lang.String className, long classPK) throws PortalException;
081
082 public com.liferay.portal.model.Website updateWebsite(long websiteId,
083 java.lang.String url, long typeId, boolean primary)
084 throws PortalException;
085 }