001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023 import com.liferay.portal.security.ac.AccessControlled;
024
025
036 @AccessControlled
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface WebsiteService extends BaseService {
041
046
047
052 public java.lang.String getBeanIdentifier();
053
054
059 public void setBeanIdentifier(java.lang.String beanIdentifier);
060
061
065 public com.liferay.portal.model.Website addWebsite(
066 java.lang.String className, long classPK, java.lang.String url,
067 int typeId, boolean primary)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException;
070
071 public com.liferay.portal.model.Website addWebsite(
072 java.lang.String className, long classPK, java.lang.String url,
073 int typeId, boolean primary,
074 com.liferay.portal.service.ServiceContext serviceContext)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException;
077
078 public void deleteWebsite(long websiteId)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException;
081
082 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083 public com.liferay.portal.model.Website getWebsite(long websiteId)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException;
086
087 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088 public java.util.List<com.liferay.portal.model.Website> getWebsites(
089 java.lang.String className, long classPK)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException;
092
093 public com.liferay.portal.model.Website updateWebsite(long websiteId,
094 java.lang.String url, int typeId, boolean primary)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException;
097 }