1
22
23 package com.liferay.portal.service;
24
25
26
47 public class CompanyLocalServiceUtil {
48 public static com.liferay.portal.model.Company addCompany(
49 com.liferay.portal.model.Company company)
50 throws com.liferay.portal.SystemException {
51 return getService().addCompany(company);
52 }
53
54 public static com.liferay.portal.model.Company createCompany(long companyId) {
55 return getService().createCompany(companyId);
56 }
57
58 public static void deleteCompany(long companyId)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException {
61 getService().deleteCompany(companyId);
62 }
63
64 public static void deleteCompany(com.liferay.portal.model.Company company)
65 throws com.liferay.portal.SystemException {
66 getService().deleteCompany(company);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
71 throws com.liferay.portal.SystemException {
72 return getService().dynamicQuery(dynamicQuery);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end) throws com.liferay.portal.SystemException {
78 return getService().dynamicQuery(dynamicQuery, start, end);
79 }
80
81 public static com.liferay.portal.model.Company getCompany(long companyId)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException {
84 return getService().getCompany(companyId);
85 }
86
87 public static java.util.List<com.liferay.portal.model.Company> getCompanies(
88 int start, int end) throws com.liferay.portal.SystemException {
89 return getService().getCompanies(start, end);
90 }
91
92 public static int getCompaniesCount()
93 throws com.liferay.portal.SystemException {
94 return getService().getCompaniesCount();
95 }
96
97 public static com.liferay.portal.model.Company updateCompany(
98 com.liferay.portal.model.Company company)
99 throws com.liferay.portal.SystemException {
100 return getService().updateCompany(company);
101 }
102
103 public static com.liferay.portal.model.Company addCompany(
104 java.lang.String webId, java.lang.String virtualHost,
105 java.lang.String mx)
106 throws com.liferay.portal.PortalException,
107 com.liferay.portal.SystemException {
108 return getService().addCompany(webId, virtualHost, mx);
109 }
110
111 public static com.liferay.portal.model.Company checkCompany(
112 java.lang.String webId)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException {
115 return getService().checkCompany(webId);
116 }
117
118 public static com.liferay.portal.model.Company checkCompany(
119 java.lang.String webId, java.lang.String mx)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException {
122 return getService().checkCompany(webId, mx);
123 }
124
125 public static void checkCompanyKey(long companyId)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 getService().checkCompanyKey(companyId);
129 }
130
131 public static java.util.List<com.liferay.portal.model.Company> getCompanies()
132 throws com.liferay.portal.SystemException {
133 return getService().getCompanies();
134 }
135
136 public static com.liferay.portal.model.Company getCompanyById(
137 long companyId)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException {
140 return getService().getCompanyById(companyId);
141 }
142
143 public static com.liferay.portal.model.Company getCompanyByLogoId(
144 long logoId)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException {
147 return getService().getCompanyByLogoId(logoId);
148 }
149
150 public static com.liferay.portal.model.Company getCompanyByMx(
151 java.lang.String mx)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException {
154 return getService().getCompanyByMx(mx);
155 }
156
157 public static com.liferay.portal.model.Company getCompanyByVirtualHost(
158 java.lang.String virtualHost)
159 throws com.liferay.portal.PortalException,
160 com.liferay.portal.SystemException {
161 return getService().getCompanyByVirtualHost(virtualHost);
162 }
163
164 public static com.liferay.portal.model.Company getCompanyByWebId(
165 java.lang.String webId)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException {
168 return getService().getCompanyByWebId(webId);
169 }
170
171 public static com.liferay.portal.kernel.search.Hits search(long companyId,
172 java.lang.String keywords, int start, int end)
173 throws com.liferay.portal.SystemException {
174 return getService().search(companyId, keywords, start, end);
175 }
176
177 public static com.liferay.portal.kernel.search.Hits search(long companyId,
178 java.lang.String portletId, long groupId, java.lang.String type,
179 java.lang.String keywords, int start, int end)
180 throws com.liferay.portal.SystemException {
181 return getService()
182 .search(companyId, portletId, groupId, type, keywords,
183 start, end);
184 }
185
186 public static com.liferay.portal.model.Company updateCompany(
187 long companyId, java.lang.String virtualHost, java.lang.String mx)
188 throws com.liferay.portal.PortalException,
189 com.liferay.portal.SystemException {
190 return getService().updateCompany(companyId, virtualHost, mx);
191 }
192
193 public static com.liferay.portal.model.Company updateCompany(
194 long companyId, java.lang.String virtualHost, java.lang.String mx,
195 java.lang.String name, java.lang.String legalName,
196 java.lang.String legalId, java.lang.String legalType,
197 java.lang.String sicCode, java.lang.String tickerSymbol,
198 java.lang.String industry, java.lang.String type, java.lang.String size)
199 throws com.liferay.portal.PortalException,
200 com.liferay.portal.SystemException {
201 return getService()
202 .updateCompany(companyId, virtualHost, mx, name, legalName,
203 legalId, legalType, sicCode, tickerSymbol, industry, type, size);
204 }
205
206 public static void updateDisplay(long companyId,
207 java.lang.String languageId, java.lang.String timeZoneId)
208 throws com.liferay.portal.PortalException,
209 com.liferay.portal.SystemException {
210 getService().updateDisplay(companyId, languageId, timeZoneId);
211 }
212
213 public static void updateLogo(long companyId, java.io.File file)
214 throws com.liferay.portal.PortalException,
215 com.liferay.portal.SystemException {
216 getService().updateLogo(companyId, file);
217 }
218
219 public static void updateSecurity(long companyId,
220 java.lang.String authType, boolean autoLogin, boolean sendPassword,
221 boolean strangers, boolean strangersWithMx, boolean strangersVerify,
222 boolean communityLogo) throws com.liferay.portal.SystemException {
223 getService()
224 .updateSecurity(companyId, authType, autoLogin, sendPassword,
225 strangers, strangersWithMx, strangersVerify, communityLogo);
226 }
227
228 public static CompanyLocalService getService() {
229 if (_service == null) {
230 throw new RuntimeException("CompanyLocalService is not set");
231 }
232
233 return _service;
234 }
235
236 public void setService(CompanyLocalService service) {
237 _service = service;
238 }
239
240 private static CompanyLocalService _service;
241 }