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
024
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 public com.liferay.portal.model.Website addWebsite(
062 java.lang.String className, long classPK, java.lang.String url,
063 int typeId, boolean primary)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException;
066
067 public void deleteWebsite(long websiteId)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException;
070
071 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
072 public com.liferay.portal.model.Website getWebsite(long websiteId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077 public java.util.List<com.liferay.portal.model.Website> getWebsites(
078 java.lang.String className, long classPK)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException;
081
082 public com.liferay.portal.model.Website updateWebsite(long websiteId,
083 java.lang.String url, int typeId, boolean primary)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException;
086 }