com.liferay.portlet.expando.service.http
Class ExpandoValueServiceHttp
java.lang.Object
com.liferay.portlet.expando.service.http.ExpandoValueServiceHttp
public class ExpandoValueServiceHttp
- extends java.lang.Object
This class provides a HTTP utility for the
ExpandoValueServiceUtil 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
- See Also:
ExpandoValueServiceSoap,
HttpPrincipal,
ExpandoValueServiceUtil- Generated:
|
Method Summary |
static com.liferay.portlet.expando.model.ExpandoValue |
addValue(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String className,
java.lang.String tableName,
java.lang.String columnName,
long classPK,
java.lang.Object data)
|
static com.liferay.portlet.expando.model.ExpandoValue |
addValue(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String className,
java.lang.String tableName,
java.lang.String columnName,
long classPK,
java.lang.String data)
|
static void |
addValues(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String className,
java.lang.String tableName,
long classPK,
java.util.Map<java.lang.String,java.io.Serializable> attributeValues)
|
static java.util.Map<java.lang.String,java.io.Serializable> |
getData(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String className,
java.lang.String tableName,
java.util.Collection<java.lang.String> columnNames,
long classPK)
|
static java.io.Serializable |
getData(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String className,
java.lang.String tableName,
java.lang.String columnName,
long classPK)
|
static com.liferay.portal.kernel.json.JSONObject |
getJSONData(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String className,
java.lang.String tableName,
java.lang.String columnName,
long classPK)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpandoValueServiceHttp
public ExpandoValueServiceHttp()
addValue
public static com.liferay.portlet.expando.model.ExpandoValue addValue(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String className,
java.lang.String tableName,
java.lang.String columnName,
long classPK,
java.lang.Object data)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addValue
public static com.liferay.portlet.expando.model.ExpandoValue addValue(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String className,
java.lang.String tableName,
java.lang.String columnName,
long classPK,
java.lang.String data)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addValues
public static void addValues(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String className,
java.lang.String tableName,
long classPK,
java.util.Map<java.lang.String,java.io.Serializable> attributeValues)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getData
public static java.io.Serializable getData(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String className,
java.lang.String tableName,
java.lang.String columnName,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getData
public static java.util.Map<java.lang.String,java.io.Serializable> getData(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String className,
java.lang.String tableName,
java.util.Collection<java.lang.String> columnNames,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getJSONData
public static com.liferay.portal.kernel.json.JSONObject getJSONData(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String className,
java.lang.String tableName,
java.lang.String columnName,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException