com.liferay.portal.service.http
Class CompanyServiceHttp
java.lang.Object
com.liferay.portal.service.http.CompanyServiceHttp
public class CompanyServiceHttp
- extends Object
This class provides a HTTP utility for the
CompanyServiceUtil
service utility. The
static methods of this class calls the same methods of the service utility.
However, the signatures are different because it requires an additional
HttpPrincipal
parameter.
The benefits of using the HTTP utility is that it is fast and allows for
tunneling without the cost of serializing to text. The drawback is that it
only works with Java.
Set the property tunnel.servlet.hosts.allowed in portal.properties to
configure security.
The HTTP utility is only generated for remote services.
- See Also:
CompanyServiceSoap
,
HttpPrincipal
,
CompanyServiceUtil
- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.
Method Summary |
static Company |
addCompany(HttpPrincipal httpPrincipal,
String webId,
String virtualHost,
String mx,
String shardName,
boolean system,
int maxUsers)
|
static void |
deleteLogo(HttpPrincipal httpPrincipal,
long companyId)
|
static Company |
getCompanyById(HttpPrincipal httpPrincipal,
long companyId)
|
static Company |
getCompanyByLogoId(HttpPrincipal httpPrincipal,
long logoId)
|
static Company |
getCompanyByMx(HttpPrincipal httpPrincipal,
String mx)
|
static Company |
getCompanyByVirtualHost(HttpPrincipal httpPrincipal,
String virtualHost)
|
static Company |
getCompanyByWebId(HttpPrincipal httpPrincipal,
String webId)
|
static void |
removePreferences(HttpPrincipal httpPrincipal,
long companyId,
String[] keys)
|
static Company |
updateCompany(HttpPrincipal httpPrincipal,
long companyId,
String virtualHost,
String mx,
int maxUsers)
|
static Company |
updateCompany(HttpPrincipal httpPrincipal,
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(HttpPrincipal httpPrincipal,
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(HttpPrincipal httpPrincipal,
long companyId,
String languageId,
String timeZoneId)
|
static void |
updateLogo(HttpPrincipal httpPrincipal,
long companyId,
File file)
|
static void |
updatePreferences(HttpPrincipal httpPrincipal,
long companyId,
UnicodeProperties properties)
|
static void |
updateSecurity(HttpPrincipal httpPrincipal,
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 |
CompanyServiceHttp
public CompanyServiceHttp()
addCompany
public static Company addCompany(HttpPrincipal httpPrincipal,
String webId,
String virtualHost,
String mx,
String shardName,
boolean system,
int maxUsers)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteLogo
public static void deleteLogo(HttpPrincipal httpPrincipal,
long companyId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyById
public static Company getCompanyById(HttpPrincipal httpPrincipal,
long companyId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyByLogoId
public static Company getCompanyByLogoId(HttpPrincipal httpPrincipal,
long logoId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyByMx
public static Company getCompanyByMx(HttpPrincipal httpPrincipal,
String mx)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyByVirtualHost
public static Company getCompanyByVirtualHost(HttpPrincipal httpPrincipal,
String virtualHost)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyByWebId
public static Company getCompanyByWebId(HttpPrincipal httpPrincipal,
String webId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
removePreferences
public static void removePreferences(HttpPrincipal httpPrincipal,
long companyId,
String[] keys)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateCompany
public static Company updateCompany(HttpPrincipal httpPrincipal,
long companyId,
String virtualHost,
String mx,
int maxUsers)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateCompany
public static Company updateCompany(HttpPrincipal httpPrincipal,
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(HttpPrincipal httpPrincipal,
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(HttpPrincipal httpPrincipal,
long companyId,
String languageId,
String timeZoneId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateLogo
public static void updateLogo(HttpPrincipal httpPrincipal,
long companyId,
File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updatePreferences
public static void updatePreferences(HttpPrincipal httpPrincipal,
long companyId,
UnicodeProperties properties)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateSecurity
public static void updateSecurity(HttpPrincipal httpPrincipal,
long companyId,
String authType,
boolean autoLogin,
boolean sendPassword,
boolean strangers,
boolean strangersWithMx,
boolean strangersVerify,
boolean communityLogo)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException