1
22
23 package com.liferay.portal.service;
24
25
26
47 public class CompanyServiceUtil {
48 public static com.liferay.portal.model.Company addCompany(
49 java.lang.String webId, java.lang.String virtualHost,
50 java.lang.String mx)
51 throws com.liferay.portal.PortalException,
52 com.liferay.portal.SystemException, java.rmi.RemoteException {
53 return getService().addCompany(webId, virtualHost, mx);
54 }
55
56 public static com.liferay.portal.model.Company updateCompany(
57 long companyId, java.lang.String virtualHost, java.lang.String mx)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException, java.rmi.RemoteException {
60 return getService().updateCompany(companyId, virtualHost, mx);
61 }
62
63 public static com.liferay.portal.model.Company updateCompany(
64 long companyId, java.lang.String virtualHost, java.lang.String mx,
65 java.lang.String name, java.lang.String legalName,
66 java.lang.String legalId, java.lang.String legalType,
67 java.lang.String sicCode, java.lang.String tickerSymbol,
68 java.lang.String industry, java.lang.String type, java.lang.String size)
69 throws com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException, java.rmi.RemoteException {
71 return getService()
72 .updateCompany(companyId, virtualHost, mx, name, legalName,
73 legalId, legalType, sicCode, tickerSymbol, industry, type, size);
74 }
75
76 public static void updateDisplay(long companyId,
77 java.lang.String languageId, java.lang.String timeZoneId)
78 throws com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException, java.rmi.RemoteException {
80 getService().updateDisplay(companyId, languageId, timeZoneId);
81 }
82
83 public static void updateLogo(long companyId, java.io.File file)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException, java.rmi.RemoteException {
86 getService().updateLogo(companyId, file);
87 }
88
89 public static void updateSecurity(long companyId,
90 java.lang.String authType, boolean autoLogin, boolean sendPassword,
91 boolean strangers, boolean strangersWithMx, boolean strangersVerify,
92 boolean communityLogo)
93 throws com.liferay.portal.PortalException,
94 com.liferay.portal.SystemException, java.rmi.RemoteException {
95 getService()
96 .updateSecurity(companyId, authType, autoLogin, sendPassword,
97 strangers, strangersWithMx, strangersVerify, communityLogo);
98 }
99
100 public static CompanyService getService() {
101 if (_service == null) {
102 throw new RuntimeException("CompanyService is not set");
103 }
104
105 return _service;
106 }
107
108 public void setService(CompanyService service) {
109 _service = service;
110 }
111
112 private static CompanyService _service;
113 }