001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service;
022:
023: /**
024: * <a href="CompanyServiceUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This class provides static methods for the
033: * <code>com.liferay.portal.service.CompanyService</code>
034: * bean. The static methods of this class calls the same methods of the bean
035: * instance. It's convenient to be able to just write one line to call a method
036: * on a bean instead of writing a lookup call and a method call.
037: * </p>
038: *
039: * <p>
040: * <code>com.liferay.portal.service.CompanyServiceFactory</code>
041: * is responsible for the lookup of the bean.
042: * </p>
043: *
044: * @author Brian Wing Shun Chan
045: *
046: * @see com.liferay.portal.service.CompanyService
047: * @see com.liferay.portal.service.CompanyServiceFactory
048: *
049: */
050: public class CompanyServiceUtil {
051: public static com.liferay.portal.model.Company addCompany(
052: java.lang.String webId, java.lang.String virtualHost,
053: java.lang.String mx)
054: throws com.liferay.portal.PortalException,
055: com.liferay.portal.SystemException,
056: java.rmi.RemoteException {
057: CompanyService companyService = CompanyServiceFactory
058: .getService();
059:
060: return companyService.addCompany(webId, virtualHost, mx);
061: }
062:
063: public static com.liferay.portal.model.Company updateCompany(
064: long companyId, java.lang.String virtualHost,
065: java.lang.String mx)
066: throws com.liferay.portal.PortalException,
067: com.liferay.portal.SystemException,
068: java.rmi.RemoteException {
069: CompanyService companyService = CompanyServiceFactory
070: .getService();
071:
072: return companyService.updateCompany(companyId, virtualHost, mx);
073: }
074:
075: public static com.liferay.portal.model.Company updateCompany(
076: long companyId, java.lang.String virtualHost,
077: java.lang.String mx, java.lang.String name,
078: java.lang.String legalName, java.lang.String legalId,
079: java.lang.String legalType, java.lang.String sicCode,
080: java.lang.String tickerSymbol, java.lang.String industry,
081: java.lang.String type, java.lang.String size)
082: throws com.liferay.portal.PortalException,
083: com.liferay.portal.SystemException,
084: java.rmi.RemoteException {
085: CompanyService companyService = CompanyServiceFactory
086: .getService();
087:
088: return companyService.updateCompany(companyId, virtualHost, mx,
089: name, legalName, legalId, legalType, sicCode,
090: tickerSymbol, industry, type, size);
091: }
092:
093: public static void updateDisplay(long companyId,
094: java.lang.String languageId, java.lang.String timeZoneId)
095: throws com.liferay.portal.PortalException,
096: com.liferay.portal.SystemException,
097: java.rmi.RemoteException {
098: CompanyService companyService = CompanyServiceFactory
099: .getService();
100:
101: companyService.updateDisplay(companyId, languageId, timeZoneId);
102: }
103:
104: public static void updateLogo(long companyId, java.io.File file)
105: throws com.liferay.portal.PortalException,
106: com.liferay.portal.SystemException,
107: java.rmi.RemoteException {
108: CompanyService companyService = CompanyServiceFactory
109: .getService();
110:
111: companyService.updateLogo(companyId, file);
112: }
113:
114: public static void updateSecurity(long companyId,
115: java.lang.String authType, boolean autoLogin,
116: boolean sendPassword, boolean strangers,
117: boolean strangersWithMx, boolean strangersVerify,
118: boolean communityLogo)
119: throws com.liferay.portal.PortalException,
120: com.liferay.portal.SystemException,
121: java.rmi.RemoteException {
122: CompanyService companyService = CompanyServiceFactory
123: .getService();
124:
125: companyService.updateSecurity(companyId, authType, autoLogin,
126: sendPassword, strangers, strangersWithMx,
127: strangersVerify, communityLogo);
128: }
129: }
|