public class ContactServiceHttp
extends java.lang.Object
ContactServiceUtil 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.
ContactServiceSoap| Constructor and Description |
|---|
ContactServiceHttp() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<Contact> |
getCompanyContacts(HttpPrincipal httpPrincipal,
long companyId,
int start,
int end) |
static int |
getCompanyContactsCount(HttpPrincipal httpPrincipal,
long companyId) |
static Contact |
getContact(HttpPrincipal httpPrincipal,
long contactId) |
static java.util.List<Contact> |
getContacts(HttpPrincipal httpPrincipal,
long classNameId,
long classPK,
int start,
int end,
OrderByComparator<Contact> orderByComparator) |
static int |
getContactsCount(HttpPrincipal httpPrincipal,
long classNameId,
long classPK) |
public static java.util.List<Contact> getCompanyContacts(HttpPrincipal httpPrincipal, long companyId, int start, int end) throws PortalException
PortalExceptionpublic static int getCompanyContactsCount(HttpPrincipal httpPrincipal, long companyId)
public static Contact getContact(HttpPrincipal httpPrincipal, long contactId) throws PortalException
PortalExceptionpublic static java.util.List<Contact> getContacts(HttpPrincipal httpPrincipal, long classNameId, long classPK, int start, int end, OrderByComparator<Contact> orderByComparator) throws PortalException
PortalExceptionpublic static int getContactsCount(HttpPrincipal httpPrincipal, long classNameId, long classPK) throws PortalException
PortalException