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 addCompany(
57 java.lang.String webId, java.lang.String virtualHost,
58 java.lang.String mx, java.lang.String shardName, boolean system)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException, java.rmi.RemoteException {
61 return getService().addCompany(webId, virtualHost, mx, shardName, system);
62 }
63
64 public static com.liferay.portal.model.Company updateCompany(
65 long companyId, java.lang.String virtualHost, java.lang.String mx)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException, java.rmi.RemoteException {
68 return getService().updateCompany(companyId, virtualHost, mx);
69 }
70
71 public static com.liferay.portal.model.Company updateCompany(
72 long companyId, java.lang.String virtualHost, java.lang.String mx,
73 java.lang.String name, java.lang.String legalName,
74 java.lang.String legalId, java.lang.String legalType,
75 java.lang.String sicCode, java.lang.String tickerSymbol,
76 java.lang.String industry, java.lang.String type, java.lang.String size)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException, java.rmi.RemoteException {
79 return getService()
80 .updateCompany(companyId, virtualHost, mx, name, legalName,
81 legalId, legalType, sicCode, tickerSymbol, industry, type, size);
82 }
83
84 public static void updateDisplay(long companyId,
85 java.lang.String languageId, java.lang.String timeZoneId)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException, java.rmi.RemoteException {
88 getService().updateDisplay(companyId, languageId, timeZoneId);
89 }
90
91 public static void updateLogo(long companyId, java.io.File file)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException, java.rmi.RemoteException {
94 getService().updateLogo(companyId, file);
95 }
96
97 public static void updateSecurity(long companyId,
98 java.lang.String authType, boolean autoLogin, boolean sendPassword,
99 boolean strangers, boolean strangersWithMx, boolean strangersVerify,
100 boolean communityLogo)
101 throws com.liferay.portal.PortalException,
102 com.liferay.portal.SystemException, java.rmi.RemoteException {
103 getService()
104 .updateSecurity(companyId, authType, autoLogin, sendPassword,
105 strangers, strangersWithMx, strangersVerify, communityLogo);
106 }
107
108 public static CompanyService getService() {
109 if (_service == null) {
110 throw new RuntimeException("CompanyService is not set");
111 }
112
113 return _service;
114 }
115
116 public void setService(CompanyService service) {
117 _service = service;
118 }
119
120 private static CompanyService _service;
121 }