public class DDLRecordServiceHttp
extends java.lang.Object
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.
DDLRecordServiceSoap,
HttpPrincipal,
DDLRecordServiceUtil| Constructor and Description |
|---|
DDLRecordServiceHttp() |
| Modifier and Type | Method and Description |
|---|---|
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 void |
deleteRecord(HttpPrincipal httpPrincipal,
long recordId) |
static com.liferay.portlet.dynamicdatalists.model.DDLRecord |
deleteRecordLocale(HttpPrincipal httpPrincipal,
long recordId,
java.util.Locale locale,
com.liferay.portal.service.ServiceContext serviceContext) |
static com.liferay.portlet.dynamicdatalists.model.DDLRecord |
getRecord(HttpPrincipal httpPrincipal,
long recordId) |
static void |
revertRecordVersion(HttpPrincipal httpPrincipal,
long recordId,
java.lang.String version,
com.liferay.portal.service.ServiceContext serviceContext) |
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) |
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
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic 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
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void deleteRecord(HttpPrincipal httpPrincipal, long recordId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.dynamicdatalists.model.DDLRecord deleteRecordLocale(HttpPrincipal httpPrincipal, long recordId, java.util.Locale locale, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic 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
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void revertRecordVersion(HttpPrincipal httpPrincipal, long recordId, java.lang.String version, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic 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
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic 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
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException