Liferay 6.1.2-ce-ga3

com.liferay.portal.service.http
Class CompanyServiceHttp

java.lang.Object
  extended by 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 it is generated.

Constructor Summary
CompanyServiceHttp()
           
 
Method Summary
static Company addCompany(HttpPrincipal httpPrincipal, String webId, String virtualHost, String mx, String shardName, boolean system, int maxUsers, boolean active)
           
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, boolean active)
           
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 Company updateLogo(HttpPrincipal httpPrincipal, long companyId, InputStream inputStream)
           
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 siteLogo)
           
 
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 Company addCompany(HttpPrincipal httpPrincipal,
                                 String webId,
                                 String virtualHost,
                                 String mx,
                                 String shardName,
                                 boolean system,
                                 int maxUsers,
                                 boolean active)
                          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,
                                    boolean active)
                             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 Company updateLogo(HttpPrincipal httpPrincipal,
                                 long companyId,
                                 InputStream inputStream)
                          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 siteLogo)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

Liferay 6.1.2-ce-ga3