Class CompanyServiceHttp

Object
com.liferay.portal.service.http.CompanyServiceHttp

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.

Author:
Brian Wing Shun Chan
{$generated.description}
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.liferay.portal.kernel.model.Company
    addCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String webId, String virtualHost, String mx, int maxUsers, boolean active)
     
    static com.liferay.portal.kernel.model.Company
    addCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, Long companyId, String webId, String virtualHost, String mx, int maxUsers, boolean active, String defaultAdminPassword, String defaultAdminScreenName, String defaultAdminEmailAddress, String defaultAdminFirstName, String defaultAdminMiddleName, String defaultAdminLastName)
     
    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 void
    forEachCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.petra.function.UnsafeConsumer<com.liferay.portal.kernel.model.Company,Exception> unsafeConsumer)
     
    static List<com.liferay.portal.kernel.model.Company>
    getCompanies(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal)
     
    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 hasLogo, 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 hasLogo, 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 unicodeProperties)
     
    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 unicodeProperties)
     
    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 Details

    • CompanyServiceHttp

      public CompanyServiceHttp()
  • Method Details

    • addCompany

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

      public static com.liferay.portal.kernel.model.Company addCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, Long companyId, String webId, String virtualHost, String mx, int maxUsers, boolean active, String defaultAdminPassword, String defaultAdminScreenName, String defaultAdminEmailAddress, String defaultAdminFirstName, String defaultAdminMiddleName, String defaultAdminLastName) 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
    • forEachCompany

      public static void forEachCompany(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.petra.function.UnsafeConsumer<com.liferay.portal.kernel.model.Company,Exception> unsafeConsumer) throws Exception
      Throws:
      Exception
    • getCompanies

      public static List<com.liferay.portal.kernel.model.Company> getCompanies(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal)
    • 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 hasLogo, 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 hasLogo, 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 unicodeProperties) 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 unicodeProperties) 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