1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class CompanyServiceUtil {
40 public static com.liferay.portal.model.Company addCompany(
41 java.lang.String webId, java.lang.String virtualHost,
42 java.lang.String mx, java.lang.String shardName, boolean system)
43 throws com.liferay.portal.kernel.exception.PortalException,
44 com.liferay.portal.kernel.exception.SystemException {
45 return getService().addCompany(webId, virtualHost, mx, shardName, system);
46 }
47
48 public static void deleteLogo(long companyId)
49 throws com.liferay.portal.kernel.exception.PortalException,
50 com.liferay.portal.kernel.exception.SystemException {
51 getService().deleteLogo(companyId);
52 }
53
54 public static com.liferay.portal.model.Company getCompanyById(
55 long companyId)
56 throws com.liferay.portal.kernel.exception.PortalException,
57 com.liferay.portal.kernel.exception.SystemException {
58 return getService().getCompanyById(companyId);
59 }
60
61 public static com.liferay.portal.model.Company getCompanyByLogoId(
62 long logoId)
63 throws com.liferay.portal.kernel.exception.PortalException,
64 com.liferay.portal.kernel.exception.SystemException {
65 return getService().getCompanyByLogoId(logoId);
66 }
67
68 public static com.liferay.portal.model.Company getCompanyByMx(
69 java.lang.String mx)
70 throws com.liferay.portal.kernel.exception.PortalException,
71 com.liferay.portal.kernel.exception.SystemException {
72 return getService().getCompanyByMx(mx);
73 }
74
75 public static com.liferay.portal.model.Company getCompanyByVirtualHost(
76 java.lang.String virtualHost)
77 throws com.liferay.portal.kernel.exception.PortalException,
78 com.liferay.portal.kernel.exception.SystemException {
79 return getService().getCompanyByVirtualHost(virtualHost);
80 }
81
82 public static com.liferay.portal.model.Company getCompanyByWebId(
83 java.lang.String webId)
84 throws com.liferay.portal.kernel.exception.PortalException,
85 com.liferay.portal.kernel.exception.SystemException {
86 return getService().getCompanyByWebId(webId);
87 }
88
89 public static void removePreferences(long companyId, java.lang.String[] keys)
90 throws com.liferay.portal.kernel.exception.PortalException,
91 com.liferay.portal.kernel.exception.SystemException {
92 getService().removePreferences(companyId, keys);
93 }
94
95 public static com.liferay.portal.model.Company updateCompany(
96 long companyId, java.lang.String virtualHost, java.lang.String mx)
97 throws com.liferay.portal.kernel.exception.PortalException,
98 com.liferay.portal.kernel.exception.SystemException {
99 return getService().updateCompany(companyId, virtualHost, mx);
100 }
101
102 public static com.liferay.portal.model.Company updateCompany(
103 long companyId, java.lang.String virtualHost, java.lang.String mx,
104 java.lang.String homeURL, java.lang.String name,
105 java.lang.String legalName, java.lang.String legalId,
106 java.lang.String legalType, java.lang.String sicCode,
107 java.lang.String tickerSymbol, java.lang.String industry,
108 java.lang.String type, java.lang.String size)
109 throws com.liferay.portal.kernel.exception.PortalException,
110 com.liferay.portal.kernel.exception.SystemException {
111 return getService()
112 .updateCompany(companyId, virtualHost, mx, homeURL, name,
113 legalName, legalId, legalType, sicCode, tickerSymbol, industry,
114 type, size);
115 }
116
117 public static com.liferay.portal.model.Company updateCompany(
118 long companyId, java.lang.String virtualHost, java.lang.String mx,
119 java.lang.String homeURL, java.lang.String name,
120 java.lang.String legalName, java.lang.String legalId,
121 java.lang.String legalType, java.lang.String sicCode,
122 java.lang.String tickerSymbol, java.lang.String industry,
123 java.lang.String type, java.lang.String size,
124 java.lang.String languageId, java.lang.String timeZoneId,
125 java.util.List<com.liferay.portal.model.Address> addresses,
126 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
127 java.util.List<com.liferay.portal.model.Phone> phones,
128 java.util.List<com.liferay.portal.model.Website> websites,
129 com.liferay.portal.kernel.util.UnicodeProperties properties)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException {
132 return getService()
133 .updateCompany(companyId, virtualHost, mx, homeURL, name,
134 legalName, legalId, legalType, sicCode, tickerSymbol, industry,
135 type, size, languageId, timeZoneId, addresses, emailAddresses,
136 phones, websites, properties);
137 }
138
139 public static void updateDisplay(long companyId,
140 java.lang.String languageId, java.lang.String timeZoneId)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException {
143 getService().updateDisplay(companyId, languageId, timeZoneId);
144 }
145
146 public static void updateLogo(long companyId, java.io.File file)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException {
149 getService().updateLogo(companyId, file);
150 }
151
152 public static void updatePreferences(long companyId,
153 com.liferay.portal.kernel.util.UnicodeProperties properties)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException {
156 getService().updatePreferences(companyId, properties);
157 }
158
159 public static void updateSecurity(long companyId,
160 java.lang.String authType, boolean autoLogin, boolean sendPassword,
161 boolean strangers, boolean strangersWithMx, boolean strangersVerify,
162 boolean communityLogo)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException {
165 getService()
166 .updateSecurity(companyId, authType, autoLogin, sendPassword,
167 strangers, strangersWithMx, strangersVerify, communityLogo);
168 }
169
170 public static CompanyService getService() {
171 if (_service == null) {
172 _service = (CompanyService)PortalBeanLocatorUtil.locate(CompanyService.class.getName());
173 }
174
175 return _service;
176 }
177
178 public void setService(CompanyService service) {
179 _service = service;
180 }
181
182 private static CompanyService _service;
183 }