com.liferay.portal.service.http
Class CompanyServiceHttp

java.lang.Object
  extended by com.liferay.portal.service.http.CompanyServiceHttp

public class CompanyServiceHttp
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class provides a HTTP utility for the com.liferay.portal.service.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 com.liferay.portal.security.auth.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.

Author:
Brian Wing Shun Chan
See Also:
HttpPrincipal, CompanyServiceUtil, CompanyServiceSoap

Constructor Summary
CompanyServiceHttp()
           
 
Method Summary
static com.liferay.portal.model.Company addCompany(HttpPrincipal httpPrincipal, java.lang.String webId, java.lang.String virtualHost, java.lang.String mx)
           
static com.liferay.portal.model.Company getCompanyById(HttpPrincipal httpPrincipal, long companyId)
           
static com.liferay.portal.model.Company getCompanyByLogoId(HttpPrincipal httpPrincipal, long logoId)
           
static com.liferay.portal.model.Company getCompanyByMx(HttpPrincipal httpPrincipal, java.lang.String mx)
           
static com.liferay.portal.model.Company getCompanyByVirtualHost(HttpPrincipal httpPrincipal, java.lang.String virtualHost)
           
static com.liferay.portal.model.Company getCompanyByWebId(HttpPrincipal httpPrincipal, java.lang.String webId)
           
static com.liferay.portal.model.Company updateCompany(HttpPrincipal httpPrincipal, long companyId, java.lang.String virtualHost, java.lang.String mx)
           
static com.liferay.portal.model.Company updateCompany(HttpPrincipal httpPrincipal, long companyId, java.lang.String virtualHost, java.lang.String mx, java.lang.String homeURL, java.lang.String name, java.lang.String legalName, java.lang.String legalId, java.lang.String legalType, java.lang.String sicCode, java.lang.String tickerSymbol, java.lang.String industry, java.lang.String type, java.lang.String size)
           
static void updateDisplay(HttpPrincipal httpPrincipal, long companyId, java.lang.String languageId, java.lang.String timeZoneId)
           
static void updateLogo(HttpPrincipal httpPrincipal, long companyId, java.io.File file)
           
static void updateSecurity(HttpPrincipal httpPrincipal, long companyId, java.lang.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
 

Constructor Detail

CompanyServiceHttp

public CompanyServiceHttp()
Method Detail

addCompany

public static com.liferay.portal.model.Company addCompany(HttpPrincipal httpPrincipal,
                                                          java.lang.String webId,
                                                          java.lang.String virtualHost,
                                                          java.lang.String mx)
                                                   throws com.liferay.portal.PortalException,
                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyById

public static com.liferay.portal.model.Company getCompanyById(HttpPrincipal httpPrincipal,
                                                              long companyId)
                                                       throws com.liferay.portal.PortalException,
                                                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyByLogoId

public static com.liferay.portal.model.Company getCompanyByLogoId(HttpPrincipal httpPrincipal,
                                                                  long logoId)
                                                           throws com.liferay.portal.PortalException,
                                                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyByMx

public static com.liferay.portal.model.Company getCompanyByMx(HttpPrincipal httpPrincipal,
                                                              java.lang.String mx)
                                                       throws com.liferay.portal.PortalException,
                                                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyByVirtualHost

public static com.liferay.portal.model.Company getCompanyByVirtualHost(HttpPrincipal httpPrincipal,
                                                                       java.lang.String virtualHost)
                                                                throws com.liferay.portal.PortalException,
                                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyByWebId

public static com.liferay.portal.model.Company getCompanyByWebId(HttpPrincipal httpPrincipal,
                                                                 java.lang.String webId)
                                                          throws com.liferay.portal.PortalException,
                                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateCompany

public static com.liferay.portal.model.Company updateCompany(HttpPrincipal httpPrincipal,
                                                             long companyId,
                                                             java.lang.String virtualHost,
                                                             java.lang.String mx)
                                                      throws com.liferay.portal.PortalException,
                                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateCompany

public static com.liferay.portal.model.Company updateCompany(HttpPrincipal httpPrincipal,
                                                             long companyId,
                                                             java.lang.String virtualHost,
                                                             java.lang.String mx,
                                                             java.lang.String homeURL,
                                                             java.lang.String name,
                                                             java.lang.String legalName,
                                                             java.lang.String legalId,
                                                             java.lang.String legalType,
                                                             java.lang.String sicCode,
                                                             java.lang.String tickerSymbol,
                                                             java.lang.String industry,
                                                             java.lang.String type,
                                                             java.lang.String size)
                                                      throws com.liferay.portal.PortalException,
                                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateDisplay

public static void updateDisplay(HttpPrincipal httpPrincipal,
                                 long companyId,
                                 java.lang.String languageId,
                                 java.lang.String timeZoneId)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLogo

public static void updateLogo(HttpPrincipal httpPrincipal,
                              long companyId,
                              java.io.File file)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateSecurity

public static void updateSecurity(HttpPrincipal httpPrincipal,
                                  long companyId,
                                  java.lang.String authType,
                                  boolean autoLogin,
                                  boolean sendPassword,
                                  boolean strangers,
                                  boolean strangersWithMx,
                                  boolean strangersVerify,
                                  boolean communityLogo)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException