001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface WebsiteLocalService {
043 public com.liferay.portal.model.Website addWebsite(
044 com.liferay.portal.model.Website website)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portal.model.Website createWebsite(long websiteId);
048
049 public void deleteWebsite(long websiteId)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException;
052
053 public void deleteWebsite(com.liferay.portal.model.Website website)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 @SuppressWarnings("unchecked")
057 public java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061 @SuppressWarnings("unchecked")
062 public java.util.List dynamicQuery(
063 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064 int end) throws com.liferay.portal.kernel.exception.SystemException;
065
066 @SuppressWarnings("unchecked")
067 public java.util.List dynamicQuery(
068 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
069 int end,
070 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071 throws com.liferay.portal.kernel.exception.SystemException;
072
073 public long dynamicQueryCount(
074 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
075 throws com.liferay.portal.kernel.exception.SystemException;
076
077 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078 public com.liferay.portal.model.Website getWebsite(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 java.util.List<com.liferay.portal.model.Website> getWebsites(
084 int start, int end)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088 public int getWebsitesCount()
089 throws com.liferay.portal.kernel.exception.SystemException;
090
091 public com.liferay.portal.model.Website updateWebsite(
092 com.liferay.portal.model.Website website)
093 throws com.liferay.portal.kernel.exception.SystemException;
094
095 public com.liferay.portal.model.Website updateWebsite(
096 com.liferay.portal.model.Website website, boolean merge)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 public com.liferay.portal.model.Website addWebsite(long userId,
100 java.lang.String className, long classPK, java.lang.String url,
101 int typeId, boolean primary)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException;
104
105 public void deleteWebsites(long companyId, java.lang.String className,
106 long classPK)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public java.util.List<com.liferay.portal.model.Website> getWebsites()
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public java.util.List<com.liferay.portal.model.Website> getWebsites(
115 long companyId, java.lang.String className, long classPK)
116 throws com.liferay.portal.kernel.exception.SystemException;
117
118 public com.liferay.portal.model.Website updateWebsite(long websiteId,
119 java.lang.String url, int typeId, boolean primary)
120 throws com.liferay.portal.kernel.exception.PortalException,
121 com.liferay.portal.kernel.exception.SystemException;
122 }