com.liferay.portlet.dynamicdatalists.service.http
Class DDLRecordServiceHttp

java.lang.Object
  extended by com.liferay.portlet.dynamicdatalists.service.http.DDLRecordServiceHttp

public class DDLRecordServiceHttp
extends java.lang.Object

This class provides a HTTP utility for the DDLRecordServiceUtil 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:
DDLRecordServiceSoap, HttpPrincipal, DDLRecordServiceUtil
Generated:

Constructor Summary
DDLRecordServiceHttp()
           
 
Method Summary
static com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(HttpPrincipal httpPrincipal, long groupId, long recordSetId, int displayIndex, com.liferay.portlet.dynamicdatamapping.storage.Fields fields, com.liferay.portal.service.ServiceContext serviceContext)
           
static com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(HttpPrincipal httpPrincipal, long groupId, long recordSetId, int displayIndex, java.util.Map<java.lang.String,java.io.Serializable> fieldsMap, com.liferay.portal.service.ServiceContext serviceContext)
           
static com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(HttpPrincipal httpPrincipal, long recordId)
           
static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(HttpPrincipal httpPrincipal, long recordId, boolean majorVersion, int displayIndex, com.liferay.portlet.dynamicdatamapping.storage.Fields fields, boolean mergeFields, com.liferay.portal.service.ServiceContext serviceContext)
           
static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(HttpPrincipal httpPrincipal, long recordId, int displayIndex, java.util.Map<java.lang.String,java.io.Serializable> fieldsMap, boolean mergeFields, com.liferay.portal.service.ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDLRecordServiceHttp

public DDLRecordServiceHttp()
Method Detail

addRecord

public static com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(HttpPrincipal httpPrincipal,
                                                                             long groupId,
                                                                             long recordSetId,
                                                                             int displayIndex,
                                                                             com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
                                                                             com.liferay.portal.service.ServiceContext serviceContext)
                                                                      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

addRecord

public static com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(HttpPrincipal httpPrincipal,
                                                                             long groupId,
                                                                             long recordSetId,
                                                                             int displayIndex,
                                                                             java.util.Map<java.lang.String,java.io.Serializable> fieldsMap,
                                                                             com.liferay.portal.service.ServiceContext serviceContext)
                                                                      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

getRecord

public static com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(HttpPrincipal httpPrincipal,
                                                                             long recordId)
                                                                      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

updateRecord

public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(HttpPrincipal httpPrincipal,
                                                                                long recordId,
                                                                                boolean majorVersion,
                                                                                int displayIndex,
                                                                                com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
                                                                                boolean mergeFields,
                                                                                com.liferay.portal.service.ServiceContext serviceContext)
                                                                         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

updateRecord

public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(HttpPrincipal httpPrincipal,
                                                                                long recordId,
                                                                                int displayIndex,
                                                                                java.util.Map<java.lang.String,java.io.Serializable> fieldsMap,
                                                                                boolean mergeFields,
                                                                                com.liferay.portal.service.ServiceContext serviceContext)
                                                                         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