001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022
023
036 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
037 PortalException.class, SystemException.class})
038 public interface CompanyLocalService extends PersistedModelLocalService {
039
044
045
052 public com.liferay.portal.model.Company addCompany(
053 com.liferay.portal.model.Company company)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056
062 public com.liferay.portal.model.Company createCompany(long companyId);
063
064
071 public void deleteCompany(long companyId)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074
075
081 public void deleteCompany(com.liferay.portal.model.Company company)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portal.model.Company getCompany(long companyId)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public com.liferay.portal.model.PersistedModel getPersistedModel(
161 java.io.Serializable primaryKeyObj)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164
165
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portal.model.Company> getCompanies(
179 int start, int end)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public int getCompaniesCount()
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192
199 public com.liferay.portal.model.Company updateCompany(
200 com.liferay.portal.model.Company company)
201 throws com.liferay.portal.kernel.exception.SystemException;
202
203
211 public com.liferay.portal.model.Company updateCompany(
212 com.liferay.portal.model.Company company, boolean merge)
213 throws com.liferay.portal.kernel.exception.SystemException;
214
215
220 public java.lang.String getBeanIdentifier();
221
222
227 public void setBeanIdentifier(java.lang.String beanIdentifier);
228
229 public com.liferay.portal.model.Company addCompany(java.lang.String webId,
230 java.lang.String virtualHostname, java.lang.String mx,
231 java.lang.String shardName, boolean system, int maxUsers)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException;
234
235 public com.liferay.portal.model.Company checkCompany(java.lang.String webId)
236 throws com.liferay.portal.kernel.exception.PortalException,
237 com.liferay.portal.kernel.exception.SystemException;
238
239 public com.liferay.portal.model.Company checkCompany(
240 java.lang.String webId, java.lang.String mx, java.lang.String shardName)
241 throws com.liferay.portal.kernel.exception.PortalException,
242 com.liferay.portal.kernel.exception.SystemException;
243
244 public void checkCompanyKey(long companyId)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException;
247
248 public void deleteLogo(long companyId)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public java.util.List<com.liferay.portal.model.Company> getCompanies()
254 throws com.liferay.portal.kernel.exception.SystemException;
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public java.util.List<com.liferay.portal.model.Company> getCompanies(
258 boolean system)
259 throws com.liferay.portal.kernel.exception.SystemException;
260
261 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262 public int getCompaniesCount(boolean system)
263 throws com.liferay.portal.kernel.exception.SystemException;
264
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public com.liferay.portal.model.Company getCompanyById(long companyId)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException;
269
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException;
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException;
279
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public com.liferay.portal.model.Company getCompanyByVirtualHost(
282 java.lang.String virtualHostname)
283 throws com.liferay.portal.kernel.exception.PortalException,
284 com.liferay.portal.kernel.exception.SystemException;
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public com.liferay.portal.model.Company getCompanyByWebId(
288 java.lang.String webId)
289 throws com.liferay.portal.kernel.exception.PortalException,
290 com.liferay.portal.kernel.exception.SystemException;
291
292 public void removePreferences(long companyId, java.lang.String[] keys)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public com.liferay.portal.kernel.search.Hits search(long companyId,
297 long userId, java.lang.String keywords, int start, int end)
298 throws com.liferay.portal.kernel.exception.SystemException;
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public com.liferay.portal.kernel.search.Hits search(long companyId,
302 long userId, java.lang.String portletId, long groupId,
303 java.lang.String type, java.lang.String keywords, int start, int end)
304 throws com.liferay.portal.kernel.exception.SystemException;
305
306 public com.liferay.portal.model.Company updateCompany(long companyId,
307 java.lang.String virtualHostname, java.lang.String mx, int maxUsers)
308 throws com.liferay.portal.kernel.exception.PortalException,
309 com.liferay.portal.kernel.exception.SystemException;
310
311 public com.liferay.portal.model.Company updateCompany(long companyId,
312 java.lang.String virtualHostname, java.lang.String mx,
313 java.lang.String homeURL, java.lang.String name,
314 java.lang.String legalName, java.lang.String legalId,
315 java.lang.String legalType, java.lang.String sicCode,
316 java.lang.String tickerSymbol, java.lang.String industry,
317 java.lang.String type, java.lang.String size)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException;
320
321 public void updateDisplay(long companyId, java.lang.String languageId,
322 java.lang.String timeZoneId)
323 throws com.liferay.portal.kernel.exception.PortalException,
324 com.liferay.portal.kernel.exception.SystemException;
325
326 public void updateLogo(long companyId, byte[] bytes)
327 throws com.liferay.portal.kernel.exception.PortalException,
328 com.liferay.portal.kernel.exception.SystemException;
329
330 public void updateLogo(long companyId, java.io.File file)
331 throws com.liferay.portal.kernel.exception.PortalException,
332 com.liferay.portal.kernel.exception.SystemException;
333
334 public void updateLogo(long companyId, java.io.InputStream is)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException;
337
338 public void updatePreferences(long companyId,
339 com.liferay.portal.kernel.util.UnicodeProperties properties)
340 throws com.liferay.portal.kernel.exception.SystemException;
341
342 public void updateSecurity(long companyId, java.lang.String authType,
343 boolean autoLogin, boolean sendPassword, boolean strangers,
344 boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
345 throws com.liferay.portal.kernel.exception.SystemException;
346 }