001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.transaction.Isolation;
022    import com.liferay.portal.kernel.transaction.Propagation;
023    import com.liferay.portal.kernel.transaction.Transactional;
024    
025    /**
026     * Provides the local service interface for Company. Methods of this
027     * service will not have security checks based on the propagated JAAS
028     * credentials because this service can only be accessed from within the same
029     * VM.
030     *
031     * @author Brian Wing Shun Chan
032     * @see CompanyLocalServiceUtil
033     * @see com.liferay.portal.service.base.CompanyLocalServiceBaseImpl
034     * @see com.liferay.portal.service.impl.CompanyLocalServiceImpl
035     * @generated
036     */
037    @ProviderType
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface CompanyLocalService extends BaseLocalService,
041            PersistedModelLocalService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * Never modify or reference this interface directly. Always use {@link CompanyLocalServiceUtil} to access the company local service. Add custom service methods to {@link com.liferay.portal.service.impl.CompanyLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
046             */
047    
048            /**
049            * Adds the company to the database. Also notifies the appropriate model listeners.
050            *
051            * @param company the company
052            * @return the company that was added
053            * @throws SystemException if a system exception occurred
054            */
055            public com.liferay.portal.model.Company addCompany(
056                    com.liferay.portal.model.Company company)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            /**
060            * Creates a new company with the primary key. Does not add the company to the database.
061            *
062            * @param companyId the primary key for the new company
063            * @return the new company
064            */
065            public com.liferay.portal.model.Company createCompany(long companyId);
066    
067            /**
068            * Deletes the company with the primary key from the database. Also notifies the appropriate model listeners.
069            *
070            * @param companyId the primary key of the company
071            * @return the company that was removed
072            * @throws PortalException if a company with the primary key could not be found
073            * @throws SystemException if a system exception occurred
074            */
075            public com.liferay.portal.model.Company deleteCompany(long companyId)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException;
078    
079            /**
080            * Deletes the company from the database. Also notifies the appropriate model listeners.
081            *
082            * @param company the company
083            * @return the company that was removed
084            * @throws SystemException if a system exception occurred
085            */
086            public com.liferay.portal.model.Company deleteCompany(
087                    com.liferay.portal.model.Company company)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @SuppressWarnings("rawtypes")
100            public java.util.List dynamicQuery(
101                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            /**
105            * Performs a dynamic query on the database and returns a range of the matching rows.
106            *
107            * <p>
108            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.CompanyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
109            * </p>
110            *
111            * @param dynamicQuery the dynamic query
112            * @param start the lower bound of the range of model instances
113            * @param end the upper bound of the range of model instances (not inclusive)
114            * @return the range of matching rows
115            * @throws SystemException if a system exception occurred
116            */
117            @SuppressWarnings("rawtypes")
118            public java.util.List dynamicQuery(
119                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120                    int end) throws com.liferay.portal.kernel.exception.SystemException;
121    
122            /**
123            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
124            *
125            * <p>
126            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.CompanyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
127            * </p>
128            *
129            * @param dynamicQuery the dynamic query
130            * @param start the lower bound of the range of model instances
131            * @param end the upper bound of the range of model instances (not inclusive)
132            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
133            * @return the ordered range of matching rows
134            * @throws SystemException if a system exception occurred
135            */
136            @SuppressWarnings("rawtypes")
137            public java.util.List dynamicQuery(
138                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139                    int end,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            /**
144            * Returns the number of rows that match the dynamic query.
145            *
146            * @param dynamicQuery the dynamic query
147            * @return the number of rows that match the dynamic query
148            * @throws SystemException if a system exception occurred
149            */
150            public long dynamicQueryCount(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            /**
155            * Returns the number of rows that match the dynamic query.
156            *
157            * @param dynamicQuery the dynamic query
158            * @param projection the projection to apply to the query
159            * @return the number of rows that match the dynamic query
160            * @throws SystemException if a system exception occurred
161            */
162            public long dynamicQueryCount(
163                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
164                    com.liferay.portal.kernel.dao.orm.Projection projection)
165                    throws com.liferay.portal.kernel.exception.SystemException;
166    
167            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168            public com.liferay.portal.model.Company fetchCompany(long companyId)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns the company with the primary key.
173            *
174            * @param companyId the primary key of the company
175            * @return the company
176            * @throws PortalException if a company with the primary key could not be found
177            * @throws SystemException if a system exception occurred
178            */
179            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180            public com.liferay.portal.model.Company getCompany(long companyId)
181                    throws com.liferay.portal.kernel.exception.PortalException,
182                            com.liferay.portal.kernel.exception.SystemException;
183    
184            @Override
185            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186            public com.liferay.portal.model.PersistedModel getPersistedModel(
187                    java.io.Serializable primaryKeyObj)
188                    throws com.liferay.portal.kernel.exception.PortalException,
189                            com.liferay.portal.kernel.exception.SystemException;
190    
191            /**
192            * Returns a range of all the companies.
193            *
194            * <p>
195            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.CompanyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
196            * </p>
197            *
198            * @param start the lower bound of the range of companies
199            * @param end the upper bound of the range of companies (not inclusive)
200            * @return the range of companies
201            * @throws SystemException if a system exception occurred
202            */
203            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204            public java.util.List<com.liferay.portal.model.Company> getCompanies(
205                    int start, int end)
206                    throws com.liferay.portal.kernel.exception.SystemException;
207    
208            /**
209            * Returns the number of companies.
210            *
211            * @return the number of companies
212            * @throws SystemException if a system exception occurred
213            */
214            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215            public int getCompaniesCount()
216                    throws com.liferay.portal.kernel.exception.SystemException;
217    
218            /**
219            * Updates the company in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
220            *
221            * @param company the company
222            * @return the company that was updated
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portal.model.Company updateCompany(
226                    com.liferay.portal.model.Company company)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            /**
230            * Returns the Spring bean ID for this bean.
231            *
232            * @return the Spring bean ID for this bean
233            */
234            public java.lang.String getBeanIdentifier();
235    
236            /**
237            * Sets the Spring bean ID for this bean.
238            *
239            * @param beanIdentifier the Spring bean ID for this bean
240            */
241            public void setBeanIdentifier(java.lang.String beanIdentifier);
242    
243            /**
244            * Adds a company.
245            *
246            * @param webId the the company's web domain
247            * @param virtualHostname the company's virtual host name
248            * @param mx the company's mail domain
249            * @param shardName the company's shard
250            * @param system whether the company is the very first company (i.e., the
251            super company)
252            * @param maxUsers the max number of company users (optionally
253            <code>0</code>)
254            * @param active whether the company is active
255            * @return the company
256            * @throws PortalException if the web domain, virtual host name, or mail
257            domain was invalid
258            * @throws SystemException if a system exception occurred
259            */
260            public com.liferay.portal.model.Company addCompany(java.lang.String webId,
261                    java.lang.String virtualHostname, java.lang.String mx,
262                    java.lang.String shardName, boolean system, int maxUsers, boolean active)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException;
265    
266            /**
267            * Returns the company with the web domain.
268            *
269            * The method sets mail domain to the web domain, and the shard name to
270            * the default name set in portal.properties
271            *
272            * @param webId the company's web domain
273            * @return the company with the web domain
274            * @throws PortalException if a portal exception occurred
275            * @throws SystemException if a system exception occurred
276            */
277            public com.liferay.portal.model.Company checkCompany(java.lang.String webId)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException;
280    
281            /**
282            * Returns the company with the web domain, mail domain, and shard. If no
283            * such company exits, the method will create a new company.
284            *
285            * The method goes through a series of checks to ensure that the company
286            * contains default users, groups, etc.
287            *
288            * @param webId the company's web domain
289            * @param mx the company's mail domain
290            * @param shardName the company's shard
291            * @return the company with the web domain, mail domain, and shard
292            * @throws PortalException if a portal exception occurred
293            * @throws SystemException if a system exception occurred
294            */
295            public com.liferay.portal.model.Company checkCompany(
296                    java.lang.String webId, java.lang.String mx, java.lang.String shardName)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException;
299    
300            /**
301            * Checks if the company has an encryption key. It will create a key if one
302            * does not exist.
303            *
304            * @param companyId the primary key of the company
305            * @throws PortalException if a company with the primary key could not be
306            found
307            * @throws SystemException if a system exception occurred
308            */
309            public void checkCompanyKey(long companyId)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException;
312    
313            /**
314            * Deletes the company's logo.
315            *
316            * @param companyId the primary key of the company
317            * @throws PortalException if the company with the primary key could not be
318            found or if the company's logo could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public void deleteLogo(long companyId)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException;
324    
325            /**
326            * Returns the company with the primary key.
327            *
328            * @param companyId the primary key of the company
329            * @return the company with the primary key, <code>null</code> if a company
330            with the primary key could not be found
331            * @throws SystemException if a system exception occurred
332            */
333            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334            public com.liferay.portal.model.Company fetchCompanyById(long companyId)
335                    throws com.liferay.portal.kernel.exception.SystemException;
336    
337            /**
338            * Returns the company with the virtual host name.
339            *
340            * @param virtualHostname the virtual host name
341            * @return the company with the virtual host name, <code>null</code> if a
342            company with the virtual host could not be found
343            * @throws SystemException if a system exception occurred
344            */
345            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
346            public com.liferay.portal.model.Company fetchCompanyByVirtualHost(
347                    java.lang.String virtualHostname)
348                    throws com.liferay.portal.kernel.exception.SystemException;
349    
350            /**
351            * Returns all the companies.
352            *
353            * @return the companies
354            * @throws SystemException if a system exception occurred
355            */
356            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
357            public java.util.List<com.liferay.portal.model.Company> getCompanies()
358                    throws com.liferay.portal.kernel.exception.SystemException;
359    
360            /**
361            * Returns all the companies used by WSRP.
362            *
363            * @param system whether the company is the very first company (i.e., the
364            super company)
365            * @return the companies used by WSRP
366            * @throws SystemException if a system exception occurred
367            */
368            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369            public java.util.List<com.liferay.portal.model.Company> getCompanies(
370                    boolean system)
371                    throws com.liferay.portal.kernel.exception.SystemException;
372    
373            /**
374            * Returns the number of companies used by WSRP.
375            *
376            * @param system whether the company is the very first company (i.e., the
377            super company)
378            * @return the number of companies used by WSRP
379            * @throws SystemException if a system exception occurred
380            */
381            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
382            public int getCompaniesCount(boolean system)
383                    throws com.liferay.portal.kernel.exception.SystemException;
384    
385            /**
386            * Returns the company with the primary key.
387            *
388            * @param companyId the primary key of the company
389            * @return the company with the primary key
390            * @throws PortalException if a company with the primary key could not be
391            found
392            * @throws SystemException if a system exception occurred
393            */
394            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
395            public com.liferay.portal.model.Company getCompanyById(long companyId)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException;
398    
399            /**
400            * Returns the company with the logo.
401            *
402            * @param logoId the ID of the company's logo
403            * @return the company with the logo
404            * @throws PortalException if the company with the logo could not be found
405            * @throws SystemException if a system exception occurred
406            */
407            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408            public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
409                    throws com.liferay.portal.kernel.exception.PortalException,
410                            com.liferay.portal.kernel.exception.SystemException;
411    
412            /**
413            * Returns the company with the mail domain.
414            *
415            * @param mx the company's mail domain
416            * @return the company with the mail domain
417            * @throws PortalException if the company with the mail domain could not be
418            found
419            * @throws SystemException if a system exception occurred
420            */
421            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422            public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
423                    throws com.liferay.portal.kernel.exception.PortalException,
424                            com.liferay.portal.kernel.exception.SystemException;
425    
426            /**
427            * Returns the company with the virtual host name.
428            *
429            * @param virtualHostname the company's virtual host name
430            * @return the company with the virtual host name
431            * @throws PortalException if the company with the virtual host name could
432            not be found or if the virtual host was not associated with a
433            company
434            * @throws SystemException if a system exception occurred
435            */
436            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437            public com.liferay.portal.model.Company getCompanyByVirtualHost(
438                    java.lang.String virtualHostname)
439                    throws com.liferay.portal.kernel.exception.PortalException,
440                            com.liferay.portal.kernel.exception.SystemException;
441    
442            /**
443            * Returns the company with the web domain.
444            *
445            * @param webId the company's web domain
446            * @return the company with the web domain
447            * @throws PortalException if the company with the web domain could not be
448            found
449            * @throws SystemException if a system exception occurred
450            */
451            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
452            public com.liferay.portal.model.Company getCompanyByWebId(
453                    java.lang.String webId)
454                    throws com.liferay.portal.kernel.exception.PortalException,
455                            com.liferay.portal.kernel.exception.SystemException;
456    
457            /**
458            * Returns the user's company.
459            *
460            * @param userId the primary key of the user
461            * @return Returns the first company if there is only one company or the
462            user's company if there are more than one company; <code>0</code>
463            otherwise
464            * @throws Exception if a user with the primary key could not be found
465            */
466            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
467            public long getCompanyIdByUserId(long userId) throws java.lang.Exception;
468    
469            /**
470            * Removes the values that match the keys of the company's preferences.
471            *
472            * This method is called by {@link
473            * com.liferay.portlet.portalsettings.action.EditLDAPServerAction} remotely
474            * through {@link com.liferay.portal.service.CompanyService}.
475            *
476            * @param companyId the primary key of the company
477            * @param keys the company's preferences keys to be remove
478            * @throws SystemException if a system exception occurred
479            */
480            public void removePreferences(long companyId, java.lang.String[] keys)
481                    throws com.liferay.portal.kernel.exception.SystemException;
482    
483            /**
484            * Returns an ordered range of all assets that match the keywords in the
485            * company.
486            *
487            * The method is called in {@link
488            * com.liferay.portal.search.PortalOpenSearchImpl} which is not longer used
489            * by the Search portlet.
490            *
491            * @param companyId the primary key of the company
492            * @param userId the primary key of the user
493            * @param keywords the keywords (space separated),which may occur in assets
494            in the company (optionally <code>null</code>)
495            * @param start the lower bound of the range of assets to return
496            * @param end the upper bound of the range of assets to return (not
497            inclusive)
498            * @return the matching assets in the company
499            * @throws SystemException if a system exception occurred
500            */
501            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
502            public com.liferay.portal.kernel.search.Hits search(long companyId,
503                    long userId, java.lang.String keywords, int start, int end)
504                    throws com.liferay.portal.kernel.exception.SystemException;
505    
506            /**
507            * Returns an ordered range of all assets that match the keywords in the
508            * portlet within the company.
509            *
510            * @param companyId the primary key of the company
511            * @param userId the primary key of the user
512            * @param portletId the primary key of the portlet (optionally
513            <code>null</code>)
514            * @param groupId the primary key of the group (optionally <code>0</code>)
515            * @param type the mime type of assets to return(optionally
516            <code>null</code>)
517            * @param keywords the keywords (space separated), which may occur in any
518            assets in the portlet (optionally <code>null</code>)
519            * @param start the lower bound of the range of assets to return
520            * @param end the upper bound of the range of assets to return (not
521            inclusive)
522            * @return the matching assets in the portlet within the company
523            * @throws SystemException if a system exception occurred
524            */
525            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
526            public com.liferay.portal.kernel.search.Hits search(long companyId,
527                    long userId, java.lang.String portletId, long groupId,
528                    java.lang.String type, java.lang.String keywords, int start, int end)
529                    throws com.liferay.portal.kernel.exception.SystemException;
530    
531            /**
532            * Updates the company.
533            *
534            * @param companyId the primary key of the company
535            * @param virtualHostname the company's virtual host name
536            * @param mx the company's mail domain
537            * @param maxUsers the max number of company users (optionally
538            <code>0</code>)
539            * @param active whether the company is active
540            * @return the company with the primary key
541            * @throws PortalException if a company with primary key could not be found
542            or if the new information was invalid
543            * @throws SystemException if a system exception occurred
544            */
545            public com.liferay.portal.model.Company updateCompany(long companyId,
546                    java.lang.String virtualHostname, java.lang.String mx, int maxUsers,
547                    boolean active)
548                    throws com.liferay.portal.kernel.exception.PortalException,
549                            com.liferay.portal.kernel.exception.SystemException;
550    
551            /**
552            * Update the company with additional account information.
553            *
554            * @param companyId the primary key of the company
555            * @param virtualHostname the company's virtual host name
556            * @param mx the company's mail domain
557            * @param homeURL the company's home URL (optionally <code>null</code>)
558            * @param name the company's account name(optionally <code>null</code>)
559            * @param legalName the company's account legal name (optionally
560            <code>null</code>)
561            * @param legalId the company's account legal ID (optionally
562            <code>null</code>)
563            * @param legalType the company's account legal type (optionally
564            <code>null</code>)
565            * @param sicCode the company's account SIC code (optionally
566            <code>null</code>)
567            * @param tickerSymbol the company's account ticker symbol (optionally
568            <code>null</code>)
569            * @param industry the company's account industry (optionally
570            <code>null</code>)
571            * @param type the company's account type (optionally <code>null</code>)
572            * @param size the company's account size (optionally <code>null</code>)
573            * @return the company with the primary key
574            * @throws PortalException if a company with the primary key could not be
575            found or if the new information was invalid
576            * @throws SystemException if a system exception occurred
577            */
578            public com.liferay.portal.model.Company updateCompany(long companyId,
579                    java.lang.String virtualHostname, java.lang.String mx,
580                    java.lang.String homeURL, java.lang.String name,
581                    java.lang.String legalName, java.lang.String legalId,
582                    java.lang.String legalType, java.lang.String sicCode,
583                    java.lang.String tickerSymbol, java.lang.String industry,
584                    java.lang.String type, java.lang.String size)
585                    throws com.liferay.portal.kernel.exception.PortalException,
586                            com.liferay.portal.kernel.exception.SystemException;
587    
588            /**
589            * Update the company's display.
590            *
591            * @param companyId the primary key of the company
592            * @param languageId the ID of the company's default user's language
593            * @param timeZoneId the ID of the company's default user's time zone
594            * @throws PortalException if the company's default user could not be found
595            * @throws SystemException if a system exception occurred
596            */
597            public void updateDisplay(long companyId, java.lang.String languageId,
598                    java.lang.String timeZoneId)
599                    throws com.liferay.portal.kernel.exception.PortalException,
600                            com.liferay.portal.kernel.exception.SystemException;
601    
602            /**
603            * Updates the company's logo.
604            *
605            * @param companyId the primary key of the company
606            * @param bytes the bytes of the company's logo image
607            * @return the company with the primary key
608            * @throws PortalException if the company's logo ID could not be found or if
609            the logo's image was corrupted
610            * @throws SystemException if a system exception occurred
611            */
612            public com.liferay.portal.model.Company updateLogo(long companyId,
613                    byte[] bytes)
614                    throws com.liferay.portal.kernel.exception.PortalException,
615                            com.liferay.portal.kernel.exception.SystemException;
616    
617            /**
618            * Updates the company's logo.
619            *
620            * @param companyId the primary key of the company
621            * @param file the file of the company's logo image
622            * @return the company with the primary key
623            * @throws PortalException the company's logo ID could not be found or if
624            the logo's image was corrupted
625            * @throws SystemException if a system exception occurred
626            */
627            public com.liferay.portal.model.Company updateLogo(long companyId,
628                    java.io.File file)
629                    throws com.liferay.portal.kernel.exception.PortalException,
630                            com.liferay.portal.kernel.exception.SystemException;
631    
632            /**
633            * Update the company's logo.
634            *
635            * @param companyId the primary key of the company
636            * @param is the input stream of the company's logo image
637            * @return the company with the primary key
638            * @throws PortalException if the company's logo ID could not be found or if
639            the company's logo image was corrupted
640            * @throws SystemException if a system exception occurred
641            */
642            public com.liferay.portal.model.Company updateLogo(long companyId,
643                    java.io.InputStream is)
644                    throws com.liferay.portal.kernel.exception.PortalException,
645                            com.liferay.portal.kernel.exception.SystemException;
646    
647            /**
648            * Updates the company's preferences. The company's default properties are
649            * found in portal.properties.
650            *
651            * @param companyId the primary key of the company
652            * @param properties the company's properties. See {@link
653            com.liferay.portal.kernel.util.UnicodeProperties}
654            * @throws PortalException if the properties contained new locales that were
655            not supported
656            * @throws SystemException if a system exception occurred
657            */
658            public void updatePreferences(long companyId,
659                    com.liferay.portal.kernel.util.UnicodeProperties properties)
660                    throws com.liferay.portal.kernel.exception.PortalException,
661                            com.liferay.portal.kernel.exception.SystemException;
662    
663            /**
664            * Updates the company's security properties.
665            *
666            * @param companyId the primary key of the company
667            * @param authType the company's method of authenticating users
668            * @param autoLogin whether to allow users to select the "remember me"
669            feature
670            * @param sendPassword whether to allow users to ask the company to send
671            their password
672            * @param strangers whether to allow strangers to create accounts register
673            themselves in the company
674            * @param strangersWithMx whether to allow strangers to create accounts
675            with email addresses that match the company mail suffix
676            * @param strangersVerify whether to require strangers who create accounts
677            to be verified via email
678            * @param siteLogo whether to allow site administrators to use their own
679            logo instead of the enterprise logo
680            * @throws SystemException if a system exception occurred
681            */
682            public void updateSecurity(long companyId, java.lang.String authType,
683                    boolean autoLogin, boolean sendPassword, boolean strangers,
684                    boolean strangersWithMx, boolean strangersVerify, boolean siteLogo)
685                    throws com.liferay.portal.kernel.exception.SystemException;
686    }