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