@ProviderType
public class CompanyServiceHttp
extends Object
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.
CompanyServiceSoap
,
HttpPrincipal
,
CompanyServiceUtil
Constructor and Description |
---|
CompanyServiceHttp() |
Modifier and Type | Method and Description |
---|---|
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 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 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) |
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
public static void deleteLogo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Company> getCompanies(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal)
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
public static void removePreferences(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String[] keys) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException