Liferay 7.0-ga1 portal-impl

com.liferay.portal.service.http
Class CompanyServiceHttp

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

@ProviderType
public class CompanyServiceHttp
extends Object

Provides the 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
{$generated.description}

Constructor Summary
CompanyServiceHttp()
           
 
Method Summary
static com.liferay.portal.kernel.model.Company addCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String webId, String virtualHost, String mx, boolean system, int maxUsers, boolean active)
           
static com.liferay.portal.kernel.model.Company deleteCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId)
           
static void deleteLogo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId)
           
static com.liferay.portal.kernel.model.Company getCompanyById(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId)
           
static com.liferay.portal.kernel.model.Company getCompanyByLogoId(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long logoId)
           
static com.liferay.portal.kernel.model.Company getCompanyByMx(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String mx)
           
static com.liferay.portal.kernel.model.Company getCompanyByVirtualHost(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String virtualHost)
           
static com.liferay.portal.kernel.model.Company getCompanyByWebId(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String webId)
           
static void removePreferences(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String[] keys)
           
static com.liferay.portal.kernel.model.Company updateCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String virtualHost, String mx, int maxUsers, boolean active)
           
static com.liferay.portal.kernel.model.Company updateCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String virtualHost, String mx, String homeURL, boolean logo, byte[] logoBytes, String name, String legalName, String legalId, String legalType, String sicCode, String tickerSymbol, String industry, String type, String size)
           
static com.liferay.portal.kernel.model.Company updateCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String virtualHost, String mx, String homeURL, boolean logo, byte[] logoBytes, String name, String legalName, String legalId, String legalType, String sicCode, String tickerSymbol, String industry, String type, String size, String languageId, String timeZoneId, List<com.liferay.portal.kernel.model.Address> addresses, List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses, List<com.liferay.portal.kernel.model.Phone> phones, List<com.liferay.portal.kernel.model.Website> websites, com.liferay.portal.kernel.util.UnicodeProperties properties)
           
static com.liferay.portal.kernel.model.Company updateCompany(com.liferay.portal.kernel.security.auth.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 com.liferay.portal.kernel.model.Company updateCompany(com.liferay.portal.kernel.security.auth.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<com.liferay.portal.kernel.model.Address> addresses, List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses, List<com.liferay.portal.kernel.model.Phone> phones, List<com.liferay.portal.kernel.model.Website> websites, com.liferay.portal.kernel.util.UnicodeProperties properties)
           
static void updateDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String languageId, String timeZoneId)
           
static com.liferay.portal.kernel.model.Company updateLogo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, byte[] bytes)
           
static com.liferay.portal.kernel.model.Company updateLogo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, InputStream inputStream)
           
static void updatePreferences(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, com.liferay.portal.kernel.util.UnicodeProperties properties)
           
static void updateSecurity(com.liferay.portal.kernel.security.auth.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 com.liferay.portal.kernel.model.Company addCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                 String webId,
                                                                 String virtualHost,
                                                                 String mx,
                                                                 boolean system,
                                                                 int maxUsers,
                                                                 boolean active)
                                                          throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

deleteCompany

public static com.liferay.portal.kernel.model.Company deleteCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                    long companyId)
                                                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

deleteLogo

public static void deleteLogo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                              long companyId)
                       throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getCompanyById

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

getCompanyByLogoId

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

getCompanyByMx

public static com.liferay.portal.kernel.model.Company getCompanyByMx(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                     String mx)
                                                              throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getCompanyByVirtualHost

public static com.liferay.portal.kernel.model.Company getCompanyByVirtualHost(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                              String virtualHost)
                                                                       throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getCompanyByWebId

public static com.liferay.portal.kernel.model.Company getCompanyByWebId(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                        String webId)
                                                                 throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

removePreferences

public static void removePreferences(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                     long companyId,
                                     String[] keys)
                              throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateCompany

public static com.liferay.portal.kernel.model.Company updateCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                    long companyId,
                                                                    String virtualHost,
                                                                    String mx,
                                                                    int maxUsers,
                                                                    boolean active)
                                                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateCompany

public static com.liferay.portal.kernel.model.Company updateCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                    long companyId,
                                                                    String virtualHost,
                                                                    String mx,
                                                                    String homeURL,
                                                                    boolean logo,
                                                                    byte[] logoBytes,
                                                                    String name,
                                                                    String legalName,
                                                                    String legalId,
                                                                    String legalType,
                                                                    String sicCode,
                                                                    String tickerSymbol,
                                                                    String industry,
                                                                    String type,
                                                                    String size)
                                                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateCompany

public static com.liferay.portal.kernel.model.Company updateCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                    long companyId,
                                                                    String virtualHost,
                                                                    String mx,
                                                                    String homeURL,
                                                                    boolean logo,
                                                                    byte[] logoBytes,
                                                                    String name,
                                                                    String legalName,
                                                                    String legalId,
                                                                    String legalType,
                                                                    String sicCode,
                                                                    String tickerSymbol,
                                                                    String industry,
                                                                    String type,
                                                                    String size,
                                                                    String languageId,
                                                                    String timeZoneId,
                                                                    List<com.liferay.portal.kernel.model.Address> addresses,
                                                                    List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
                                                                    List<com.liferay.portal.kernel.model.Phone> phones,
                                                                    List<com.liferay.portal.kernel.model.Website> websites,
                                                                    com.liferay.portal.kernel.util.UnicodeProperties properties)
                                                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateCompany

public static com.liferay.portal.kernel.model.Company updateCompany(com.liferay.portal.kernel.security.auth.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 com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateCompany

public static com.liferay.portal.kernel.model.Company updateCompany(com.liferay.portal.kernel.security.auth.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<com.liferay.portal.kernel.model.Address> addresses,
                                                                    List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
                                                                    List<com.liferay.portal.kernel.model.Phone> phones,
                                                                    List<com.liferay.portal.kernel.model.Website> websites,
                                                                    com.liferay.portal.kernel.util.UnicodeProperties properties)
                                                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateDisplay

public static void updateDisplay(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                 long companyId,
                                 String languageId,
                                 String timeZoneId)
                          throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateLogo

public static com.liferay.portal.kernel.model.Company updateLogo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                 long companyId,
                                                                 byte[] bytes)
                                                          throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateLogo

public static com.liferay.portal.kernel.model.Company updateLogo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                                                 long companyId,
                                                                 InputStream inputStream)
                                                          throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updatePreferences

public static void updatePreferences(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                     long companyId,
                                     com.liferay.portal.kernel.util.UnicodeProperties properties)
                              throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateSecurity

public static void updateSecurity(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
                                  long companyId,
                                  String authType,
                                  boolean autoLogin,
                                  boolean sendPassword,
                                  boolean strangers,
                                  boolean strangersWithMx,
                                  boolean strangersVerify,
                                  boolean siteLogo)
                           throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

Liferay 7.0-ga1 portal-impl