1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface WebsiteService {
50 public com.liferay.portal.model.Website addWebsite(
51 java.lang.String className, long classPK, java.lang.String url,
52 int typeId, boolean primary)
53 throws com.liferay.portal.PortalException,
54 com.liferay.portal.SystemException;
55
56 public void deleteWebsite(long websiteId)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException;
59
60 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
61 public com.liferay.portal.model.Website getWebsite(long websiteId)
62 throws com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException;
64
65 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
66 public java.util.List<com.liferay.portal.model.Website> getWebsites(
67 java.lang.String className, long classPK)
68 throws com.liferay.portal.PortalException,
69 com.liferay.portal.SystemException;
70
71 public com.liferay.portal.model.Website updateWebsite(long websiteId,
72 java.lang.String url, int typeId, boolean primary)
73 throws com.liferay.portal.PortalException,
74 com.liferay.portal.SystemException;
75 }