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