1
22
23 package com.liferay.portal.service;
24
25
26
53 public class WebsiteLocalServiceUtil {
54 public static com.liferay.portal.model.Website addWebsite(
55 com.liferay.portal.model.Website website)
56 throws com.liferay.portal.SystemException {
57 WebsiteLocalService websiteLocalService = WebsiteLocalServiceFactory.getService();
58
59 return websiteLocalService.addWebsite(website);
60 }
61
62 public static void deleteWebsite(long websiteId)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 WebsiteLocalService websiteLocalService = WebsiteLocalServiceFactory.getService();
66
67 websiteLocalService.deleteWebsite(websiteId);
68 }
69
70 public static void deleteWebsite(com.liferay.portal.model.Website website)
71 throws com.liferay.portal.PortalException,
72 com.liferay.portal.SystemException {
73 WebsiteLocalService websiteLocalService = WebsiteLocalServiceFactory.getService();
74
75 websiteLocalService.deleteWebsite(website);
76 }
77
78 public static java.util.List<com.liferay.portal.model.Website> dynamicQuery(
79 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
80 throws com.liferay.portal.SystemException {
81 WebsiteLocalService websiteLocalService = WebsiteLocalServiceFactory.getService();
82
83 return websiteLocalService.dynamicQuery(queryInitializer);
84 }
85
86 public static java.util.List<com.liferay.portal.model.Website> dynamicQuery(
87 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
88 int begin, int end) throws com.liferay.portal.SystemException {
89 WebsiteLocalService websiteLocalService = WebsiteLocalServiceFactory.getService();
90
91 return websiteLocalService.dynamicQuery(queryInitializer, begin, end);
92 }
93
94 public static com.liferay.portal.model.Website updateWebsite(
95 com.liferay.portal.model.Website website)
96 throws com.liferay.portal.SystemException {
97 WebsiteLocalService websiteLocalService = WebsiteLocalServiceFactory.getService();
98
99 return websiteLocalService.updateWebsite(website);
100 }
101
102 public static com.liferay.portal.model.Website addWebsite(long userId,
103 java.lang.String className, long classPK, java.lang.String url,
104 int typeId, boolean primary)
105 throws com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException {
107 WebsiteLocalService websiteLocalService = WebsiteLocalServiceFactory.getService();
108
109 return websiteLocalService.addWebsite(userId, className, classPK, url,
110 typeId, primary);
111 }
112
113 public static void deleteWebsites(long companyId,
114 java.lang.String className, long classPK)
115 throws com.liferay.portal.SystemException {
116 WebsiteLocalService websiteLocalService = WebsiteLocalServiceFactory.getService();
117
118 websiteLocalService.deleteWebsites(companyId, className, classPK);
119 }
120
121 public static com.liferay.portal.model.Website getWebsite(long websiteId)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException {
124 WebsiteLocalService websiteLocalService = WebsiteLocalServiceFactory.getService();
125
126 return websiteLocalService.getWebsite(websiteId);
127 }
128
129 public static java.util.List<com.liferay.portal.model.Website> getWebsites()
130 throws com.liferay.portal.SystemException {
131 WebsiteLocalService websiteLocalService = WebsiteLocalServiceFactory.getService();
132
133 return websiteLocalService.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 WebsiteLocalService websiteLocalService = WebsiteLocalServiceFactory.getService();
140
141 return websiteLocalService.getWebsites(companyId, className, classPK);
142 }
143
144 public static com.liferay.portal.model.Website updateWebsite(
145 long websiteId, java.lang.String url, int typeId, boolean primary)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException {
148 WebsiteLocalService websiteLocalService = WebsiteLocalServiceFactory.getService();
149
150 return websiteLocalService.updateWebsite(websiteId, url, typeId, primary);
151 }
152 }