1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class WebsiteLocalServiceUtil {
40 public static com.liferay.portal.model.Website addWebsite(
41 com.liferay.portal.model.Website website)
42 throws com.liferay.portal.SystemException {
43 return getService().addWebsite(website);
44 }
45
46 public static com.liferay.portal.model.Website createWebsite(long websiteId) {
47 return getService().createWebsite(websiteId);
48 }
49
50 public static void deleteWebsite(long websiteId)
51 throws com.liferay.portal.PortalException,
52 com.liferay.portal.SystemException {
53 getService().deleteWebsite(websiteId);
54 }
55
56 public static void deleteWebsite(com.liferay.portal.model.Website website)
57 throws com.liferay.portal.SystemException {
58 getService().deleteWebsite(website);
59 }
60
61 public static java.util.List<Object> dynamicQuery(
62 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
63 throws com.liferay.portal.SystemException {
64 return getService().dynamicQuery(dynamicQuery);
65 }
66
67 public static java.util.List<Object> dynamicQuery(
68 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69 int end) throws com.liferay.portal.SystemException {
70 return getService().dynamicQuery(dynamicQuery, start, end);
71 }
72
73 public static java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.SystemException {
78 return getService()
79 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
80 }
81
82 public static int dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.SystemException {
85 return getService().dynamicQueryCount(dynamicQuery);
86 }
87
88 public static com.liferay.portal.model.Website getWebsite(long websiteId)
89 throws com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException {
91 return getService().getWebsite(websiteId);
92 }
93
94 public static java.util.List<com.liferay.portal.model.Website> getWebsites(
95 int start, int end) throws com.liferay.portal.SystemException {
96 return getService().getWebsites(start, end);
97 }
98
99 public static int getWebsitesCount()
100 throws com.liferay.portal.SystemException {
101 return getService().getWebsitesCount();
102 }
103
104 public static com.liferay.portal.model.Website updateWebsite(
105 com.liferay.portal.model.Website website)
106 throws com.liferay.portal.SystemException {
107 return getService().updateWebsite(website);
108 }
109
110 public static com.liferay.portal.model.Website updateWebsite(
111 com.liferay.portal.model.Website website, boolean merge)
112 throws com.liferay.portal.SystemException {
113 return getService().updateWebsite(website, merge);
114 }
115
116 public static com.liferay.portal.model.Website addWebsite(long userId,
117 java.lang.String className, long classPK, java.lang.String url,
118 int typeId, boolean primary)
119 throws com.liferay.portal.PortalException,
120 com.liferay.portal.SystemException {
121 return getService()
122 .addWebsite(userId, className, classPK, url, typeId, primary);
123 }
124
125 public static void deleteWebsites(long companyId,
126 java.lang.String className, long classPK)
127 throws com.liferay.portal.SystemException {
128 getService().deleteWebsites(companyId, className, classPK);
129 }
130
131 public static java.util.List<com.liferay.portal.model.Website> getWebsites()
132 throws com.liferay.portal.SystemException {
133 return getService().getWebsites();
134 }
135
136 public static java.util.List<com.liferay.portal.model.Website> getWebsites(
137 long companyId, java.lang.String className, long classPK)
138 throws com.liferay.portal.SystemException {
139 return getService().getWebsites(companyId, className, classPK);
140 }
141
142 public static com.liferay.portal.model.Website updateWebsite(
143 long websiteId, java.lang.String url, int typeId, boolean primary)
144 throws com.liferay.portal.PortalException,
145 com.liferay.portal.SystemException {
146 return getService().updateWebsite(websiteId, url, typeId, primary);
147 }
148
149 public static WebsiteLocalService getService() {
150 if (_service == null) {
151 _service = (WebsiteLocalService)PortalBeanLocatorUtil.locate(WebsiteLocalService.class.getName());
152 }
153
154 return _service;
155 }
156
157 public void setService(WebsiteLocalService service) {
158 _service = service;
159 }
160
161 private static WebsiteLocalService _service;
162 }