com.liferay.portal.service
Class CompanyServiceUtil
java.lang.Object
com.liferay.portal.service.CompanyServiceUtil
public class CompanyServiceUtil
- extends Object
The utility for the company remote service. This utility wraps CompanyServiceImpl
and is the primary access point for service operations in application layer code running on a remote server.
Never modify this class directly. Add custom service methods to CompanyServiceImpl
and rerun ServiceBuilder to regenerate this class.
This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
- See Also:
CompanyService
,
CompanyServiceBaseImpl
,
CompanyServiceImpl
- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.
Method Summary |
static Company |
addCompany(String webId,
String virtualHost,
String mx,
String shardName,
boolean system,
int maxUsers)
|
static void |
deleteLogo(long companyId)
|
static Company |
getCompanyById(long companyId)
|
static Company |
getCompanyByLogoId(long logoId)
|
static Company |
getCompanyByMx(String mx)
|
static Company |
getCompanyByVirtualHost(String virtualHost)
|
static Company |
getCompanyByWebId(String webId)
|
static CompanyService |
getService()
|
static void |
removePreferences(long companyId,
String[] keys)
|
void |
setService(CompanyService service)
|
static Company |
updateCompany(long companyId,
String virtualHost,
String mx,
int maxUsers)
|
static Company |
updateCompany(long companyId,
String virtualHost,
String mx,
String homeURL,
String name,
String legalName,
String legalId,
String legalType,
String sicCode,
String tickerSymbol,
String industry,
String type,
String size)
|
static Company |
updateCompany(long companyId,
String virtualHost,
String mx,
String homeURL,
String name,
String legalName,
String legalId,
String legalType,
String sicCode,
String tickerSymbol,
String industry,
String type,
String size,
String languageId,
String timeZoneId,
List<Address> addresses,
List<EmailAddress> emailAddresses,
List<Phone> phones,
List<Website> websites,
UnicodeProperties properties)
|
static void |
updateDisplay(long companyId,
String languageId,
String timeZoneId)
|
static void |
updateLogo(long companyId,
File file)
|
static void |
updatePreferences(long companyId,
UnicodeProperties properties)
|
static void |
updateSecurity(long companyId,
String authType,
boolean autoLogin,
boolean sendPassword,
boolean strangers,
boolean strangersWithMx,
boolean strangersVerify,
boolean communityLogo)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompanyServiceUtil
public CompanyServiceUtil()
addCompany
public static Company addCompany(String webId,
String virtualHost,
String mx,
String shardName,
boolean system,
int maxUsers)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteLogo
public static void deleteLogo(long companyId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyById
public static Company getCompanyById(long companyId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyByLogoId
public static Company getCompanyByLogoId(long logoId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyByMx
public static Company getCompanyByMx(String mx)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyByVirtualHost
public static Company getCompanyByVirtualHost(String virtualHost)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyByWebId
public static Company getCompanyByWebId(String webId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
removePreferences
public static void removePreferences(long companyId,
String[] keys)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateCompany
public static Company updateCompany(long companyId,
String virtualHost,
String mx,
int maxUsers)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateCompany
public static Company updateCompany(long companyId,
String virtualHost,
String mx,
String homeURL,
String name,
String legalName,
String legalId,
String legalType,
String sicCode,
String tickerSymbol,
String industry,
String type,
String size)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateCompany
public static Company updateCompany(long companyId,
String virtualHost,
String mx,
String homeURL,
String name,
String legalName,
String legalId,
String legalType,
String sicCode,
String tickerSymbol,
String industry,
String type,
String size,
String languageId,
String timeZoneId,
List<Address> addresses,
List<EmailAddress> emailAddresses,
List<Phone> phones,
List<Website> websites,
UnicodeProperties properties)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateDisplay
public static void updateDisplay(long companyId,
String languageId,
String timeZoneId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateLogo
public static void updateLogo(long companyId,
File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updatePreferences
public static void updatePreferences(long companyId,
UnicodeProperties properties)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateSecurity
public static void updateSecurity(long companyId,
String authType,
boolean autoLogin,
boolean sendPassword,
boolean strangers,
boolean strangersWithMx,
boolean strangersVerify,
boolean communityLogo)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getService
public static CompanyService getService()
setService
public void setService(CompanyService service)